Facebook Ads Pixel Tracking with Classic Embedded Checkout

  • Last updated on January 3, 2024 at 3:02 PM

Please note: This article is only for organizers who use the Facebook Ads platform.

Due to Apple’s iOS 14.5 privacy update and Facebook’s Aggregated Event Measurement in response, if you want to receive ticket purchase data inside your Facebook Ads account, you will need to implement ShowClix’s Classic Embedded Checkout.

Classic Embedded Checkout can pass the ticket purchase data it receives from Facebook over to your Ads account so you can continue to optimize for purchases. 


To switch your purchase flow to Embedded Checkout, please follow the steps below.


1. Log in to your ShowClix account

2. From the dashboard, click the Marketing tab, then click Embedded Checkout


3. Once on the Embedded Checkout page, click New Widget

4. Use our system templates to design your custom checkout widget

5. Once finished, click Save Changes at the bottom

6. Copy the embed script and place it on your website. It should look like:

<script src="//embed.showclix.com/event/embed-widget/xxxxxxxxxx.js"></script>



7. Add the following code to your website and replace PIXEL_ID with your Facebook pixel ID:

<script type="text/javascript">
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.
async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}
(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
fbq('init', ‘PIXEL_ID');
document.addEventListener("embeddedAnalytics", function (e) {
var data = null;
var action = '';
 var type = '';
if (e.provider == 'facebook') {
if (e.data.action) {
action = e.data.action;
}
if (e.data.type) {
type = e.data.type;
}
if (e.data.data) {
data = e.data.data;
}
fbq(action, type, data);
}
});
</script>

Was this article helpful?