Logo
  • Getting Started
  • Brands
  • Partners
Help Center
Help Center
Utilizing Facebook Pixels on Campaign

Utilizing Facebook Pixels on Campaign

Getting started

New to SquaredanceNew to SquaredanceGuidesGuidesFAQsFAQs

Brands

Brand Quick StartBrand Quick StartCampaignsCampaignsPartnershipsPartnershipsBrand ReportingBrand ReportingManaging CreativesManaging CreativesBillingBilling

Partners

Partner Quick StartPartner Quick StartTracking & IntegrationsTracking & IntegrationsPartner ReportingPartner ReportingSubmitting CreativesSubmitting CreativesPayoutsPayoutsReferralsReferrals

Technical Docs

Tracking ChangelogTracking Changelog

Utilizing 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”

image

Step 2

Select Manually add pixel code to website, and then copy the code to your clipboard.

image

Step 3

Paste that pixel into the Code box found when adding your pixel on the campaign.

image

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.

image

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.

image

Step 6

Once you’ve replaced the event codes with the Squaredance EVENT macro, hit Save.

image

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

.

image

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.

image

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.

image

Step 4

Add the pixel to the Campaign, label the pixel, and set it to fire at Purchase.

image

Step 5

Double-check your Purchase pixel to ensure the event parameters are correct and hit Save

image

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

Purchase Pixel

On this page

  • Utilizing Facebook Pixels on Campaign
  • Facebook Event Pixels
  • Step 1
  • Step 2
  • Step 3
  • Step 4
  • Step 5
  • Step 6
  • Facebook Purchase Pixels
  • Step 1
  • Step 2
  • Step 3
  • Step 4
  • Step 5
  • Example Facebook Pixel Code
  • Multi-Funnel Pixel
  • Purchase Pixel
@Squaredance
<!-- 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 -->
<!-- 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 -->