You can track website visitor activity for movie ad campaigns by setting up conversion tracking for the following standard events.
The Pixel's base code must already be installed on every page where you will to tracking the standard events below.
You must track the following standard events and include a parameter object that contains the specified object properties.
Track the following ViewContent standard event on your movie ad campaign's landing page. This should be the first page that Meta ad-driven visitors reach when clicking your ad.
<script type="text/javascript">
fbq(
'track',
'ViewContent',
{
content_ids: ['partner_movie_id|partner_theater_id|showtime'], // your content ID values go here
movieref: 'fb_movies' // or an empty string
}
);
</script>Track the following InitiateCheckout standard event on your movie ad campaign's payment page:
<script type="text/javascript">
fbq(
'track',
'InitiateCheckout',
{
content_ids: ['partner_movie_id|partner_theater_id|showtime'], // your content ID values go here
movieref: 'fb_movies', // or an empty string
num_items: 2 // your number of tickets to be purchased value goes here
}
);
</script>Track the following Purchase standard event on your movie ad campaign's payment confirmation page:
<script type="text/javascript">
fbq(
'track',
'Purchase',
{
content_ids: ['partner_movie_id|partner_theater_id|showtime'], // your content ID values go here
currency: 'USD', // your currency string value goes here
movieref: 'fb_movies', // or an empty string
num_items: 2, // your number of tickets purchased value goes here
value: 30.60 // your total transaction value goes here
}
);
</script>Track the following PageView standard event on any pages of your movie ad campaign's checkout flow, other than your landing page, payment page, or payment confirmation page:
<script type="text/javascript">
fbq(
'track',
'PageView',
{
movieref:'fb_movies' // or an empty string
}
);
</script>| Property | Value Type | Description |
|---|---|---|
| String | IDs, separated by pipe symbols ( |
| String | The currency's 3 letter ISO code. |
| String | If the referrer URL contains |
| Integer | The number of tickets the visitor is purchasing. |
| Integer | Total price. |