Getting started
New to SquaredanceGuidesFAQsBrands
Brand Quick StartCampaignsPartnershipsBrand ReportingManaging CreativesBillingPartners
Partner Quick StartTracking & IntegrationsPartner ReportingSubmitting CreativesPayoutsReferralsTechnical Docs
Tracking ChangelogUtilizing Facebook Pixels on Campaign
Follow these steps to generate your tracking pixel on Facebook and correctly configure it on Squaredance’s platform. The instructions are similar to those on placing a generic pixel on a campaign. We recommend using a text editor like Notepad on Windows and TextEditor on Mac when managing JavaScript pixels to avoid syntax errors.
Facebook Event Pixels
Step 1
Generate your pixel code by clicking this link:
https://www.facebook.com/events_manager/pixel/
and click “Set Up Pixel”
Step 2
Select Manually add pixel code to website, and then copy the code to your clipboard.
Step 3
Paste that pixel into the Code box found when adding your pixel on the campaign.
Step 4
Label the pixel with a name and set it to fire at the specific event or to fire for Funnel Events. This allows the pixel to fire across all events except for purchase; that will be added again later.
Step 5
Make a slight modification to the event code in the pixel to fire for the event you wish to track. Since we’re firing for all events, you can change the pixel to use the EVENT macro.
Step 6
Once you’ve replaced the event codes with the Squaredance EVENT macro, hit Save.
Facebook Purchase Pixels
Take the same steps as above except, depending on what you need to track, you can set event parameters to the Purchase pixel.
Step 1
Grab the base pixel code from Facebook and select the next step to add an event code by clicking
Manually add event code
.
Step 2
You’ll see the Purchase event name on the list. Open the submenu and add the conversion value (you can add the payout amount or use the PAYOUT macro “xxpayoutxx”) and set the currency.
Step 3
Copy the script and add it to the Facebook Base Code. We also recommend changing the event value in the
<noscript>
tag to Purchase.
Step 4
Add the pixel to the Campaign, label the pixel, and set it to fire at Purchase.
Step 5
Double-check your Purchase pixel to ensure the event parameters are correct and hit Save
We recommend that you fire your Facebook pixels using your own domain to increase the accuracy of tracking. You can do that by using the BYOD feature and verifying your domain name.
Example Facebook Pixel Code
Multi-Funnel Pixel
<!-- Facebook Pixel Code -->
<script>
!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',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '{your-pixel-id-goes-here}');
fbq('track', 'xxeventxx');
</script>
<noscript>
<img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id={your-pixel-id-goes-here}&ev=xxeventxx&noscript=1"/>
</noscript>
<!-- End Facebook Pixel Code -->
Purchase Pixel
<!-- Facebook Pixel Code -->
<script>
!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',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '{your-pixel-id-goes-here}');
fbq('track', 'Purchase', {value: 'xxpayoutxx', currency:'USD'});
</script>
<!-- End Facebook Pixel Code -->