Meta / Facebook
How to setup and use Meta to track key events across your guides experience.
Overview
The following guide will outline the steps required to set up Meta for use with Different Breed.
1. Create A Tracking Source Within Different Breed
You can find the location to define measurement tracking on Different Breed by accessing the following from your guides landing page: Metrics > Tracking. Once loaded, click Create Source, select Meta as the provider and follow the next steps.
2. Create a new Data Source within Meta Events Manager.
Within Meta Events Manager:
Click "Connect Data Sources" in the sidebar menu and then click Web.
Provide the data set a name e.g "My Event Name".
Click connect manually > Meta pixel and Conversions API.
Copy the dataset id from the bottom of the modal. e.g. 1014278576603089 into the field Measurement ID on Different Breed.
Click Next
A Modal will show, Select "See Instructions" under Conversions API.
Close the modal when the manual implementation window shows.
3. Configure Your Conversion Events
Now we need to set up the conversions API:
Click continue to select your events.
Drop down additional events and select the following:
View Content
Once selected navigate through each selected event and tick the following events:
Value
Event ID
Contents
Currency
Phone Number
Email Address
Once all events are configured, click continue then confirm setup.
Finally click "Open implementation guide" from the final page and click Finish.
4. Create Your Measurement Protocol Secret
Navigate to the implementation guide opened in the previous step and action the following:
Scroll to "Generate an access token"
Click Generate Access Token
Copy the generated value into the Measurement Secret field on Different Breed.
Scroll to the bottom and click "Finish".
5. Select Events To Track
On the Different Breed Tracking Source form you are presented with a number of events and page views you can track. While the majority of these are standard events and do not require additional set up, a few will require custom events to be created to get the most of our your reports.
Standard Events
View Content
ViewContent
Tracks a customer landing on a desired page during the guides experience.
Custom Events
Custom events will be sent without needing to be configured. For some events you may see a warning pop up within the Meta UI requesting that you allow the events to be collected for legitimate purposes, Simply review this message and click approve on each event.
Campaign
Campaign
Tracks a traditional UTM style campaign.
Filters Applied
GuideFiltersApplied
Tracks when a user applies filters to the guide.
Share Clicked
GuideShareClicked
Tracks when a user clicks to share the guide.
Print Clicked
GuidePrintClicked
Tracks when a user clicks to print the guide.
Feedback Initiated
GuideFeedbackInitiated
Tracks when a user clicks to provide feedback.
Feedback Submitted
GuideFeedbackSubmitted
Tracks when a user clicks to submit feedback.
Guide Search Clicked
GuideSearchClicked
Tracks when opens the in page search feature.
Guide Search Terms
GuideSearchTerms
Tracks the users entered search terms.
6. Save Your Tracking Source
Once you have selected your desired events, simply save the source and the tracking events will begin to fire.
Test Your Tracking Pixel
To test your tracking, navigate to the "Test Events" tab within meta. Within this view you will see a Test id formatted like so: TEST1234
, Copy this ID and paste it within the Different Breed tracking source form to enable debug mode.
Once enabled you will be able to see test events logged within meta. Please note these may take up to a minute to start showing.
Breakdown Of Events We Send
User Data
All the events we send will contain the following user data.
em
array
Array of encrypted email addresses.
ph
array
Array of encrypted phone numbers. (This will always be blank).
client_ip_address
string
The IP address of the client making the request, used to identify the geographic location of the user.
client_user_agent
string
The User-Agent string of the user's browser, which provides information about the browser type, version, and operating system.
fbc
string
Facebook click id if provided in URL.
fbp
string
Facebook browser id. We generate this once per user and retain across sessions.
Event Structure
All the events we send to Meta contain the following structure and properties:
event_name
string
Name of the event
event_id
string(uuid)
Unique id for the event.
event_time
number
The date in unix when the event occurred.
event_source_url
string
The page url the event was fired on.
action_source
string
The location of the event. This will always be "website".
custom_data
Array
An array of items to be processed.
page_title
string
The title of the page sending the event.
page_location
string
The url of the page sending the event.
db_guide_id
string
The id of the guide you have created within Different Breed.
View Content / Page View
Tracks a customer landing on a desired page during the selling experience. The following pages are supported:
Guide Filters
Guide Content
For each page view you enable we will send the following data structure to Meta:
page_location
string
The url of the page sending the event.
page_title
string
The title of the page sending the event.
db_guide_id
string (uuid)
The id of the guide you have created within Different Breed.
Campaign
Tracks a traditional utm style campaign. To track this effectively your URL parameters should be formatted in the following way:
Google have a useful tool to help with this: https://ga-dev-tools.google/ga4/campaign-url-builder/
This will enable us to send the following data structure to Meta Analytics:
campaign_id
string
The provided campaign id from the url.
campaign
string
The provided campaign from the url.
source
string
The provided source from the url.
medium
string
The provided medium from the url.
term
string
The provided term from the url.
content
string
The provided content from the url.
Filters Applied
Tracks when a user applies filters to the guide.
ticket_puchased
boolean
Indicates if the user has purchased a ticket.
visual_impairments
boolean
Indicates the user has filtered for visual impairments.
hearing_impairments
boolean
Indicates the user has filtered for hearing impairments.
mobility_physical_disabilities
boolean
Indicates the user has filtered for mobility impairments.
chronic_illnesses_fatigue
boolean
Indicates the user has filtered for chronic illness needs.
mental_health_emotional
boolean
Indicates the user has filtered for mental health needs.
speech_communication
boolean
Indicates the user has filtered for speech impairments.
neurodivergent_sensory
boolean
Indicates the user has filtered for neurodiverse needs.
cognitive_disabilities
boolean
Indicates the user has filtered for cognative disabilities.
Share Clicked
Tracks when a customer clicks to share the guide.
page_location
string
The url of the page sending the event.
page_title
string
The title of the page sending the event.
db_guide_id
string (uuid)
The id of the guide you have created within Different Breed.
Print Clicked
Tracks when a customer clicks to print the guide.
page_location
string
The url of the page sending the event.
page_title
string
The title of the page sending the event.
db_guide_id
string (uuid)
The id of the guide you have created within Different Breed.
Feedback Initiated
Tracks when the customer opens the feedback modal.
page_location
string
The url of the page sending the event.
page_title
string
The title of the page sending the event.
db_guide_id
string (uuid)
The id of the guide you have created within Different Breed.
Feedback Submitted
Tracks when the customer submits their feedback.
page_location
string
The url of the page sending the event.
page_title
string
The title of the page sending the event.
db_guide_id
string (uuid)
The id of the guide you have created within Different Breed.
Search Clicked
Tracks when the customer opens the search feature.
page_location
string
The url of the page sending the event.
page_title
string
The title of the page sending the event.
db_guide_id
string (uuid)
The id of the guide you have created within Different Breed.
Search Terms
Tracks when a customer enters a search query within the guide.
page_location
string
The url of the page sending the event.
page_title
string
The title of the page sending the event.
db_guide_id
string (uuid)
The id of the guide you have created within Different Breed.
search_terms
string[]
The terms entered for the search. i.e ['test', 'term']
Last updated