Edit me

Astronomer Clickstream makes it easy to send your data to Facebook Pixel. Once you follow the steps below, your data will be routed through our platform and pushed to Facebook Pixel in the appropriate format.

Note: Astronomer’s Facebook Pixel destination consolidates what was previously Facebook’s “Ads for Websites” suite, which consisted of both Facebook Custom Audiences and Facebook Conversion Tracking.

What is Facebook Pixel and how does it work?

Facebook Pixel is an Ad system designed for conversion optimization and lead tracking. It allows you to manage all of your ads from one platform and uses prospecting tools to target your ads to lookalike audiences. By providing this dynamic service, Facebook Pixel allows marketers to optimize cross-platform ads for custom conversions and see when users view content, search for a product, interact with their wishlist, or add payment info.

Facebook Pixel uses a JavaScript Tag API to track audiences and custom user events like page visibility and page length. In order to be used, this JavaScript library must be added to every page of your site. It has a standard set of natively-integrated events such as product views, adds to cart, and purchases. While extremely extensible, tracking dynamic data like sku, name, and price from your database will require that custom code be added to your site.

Why send data to Facebook Pixel using Astronomer Clickstream?

With Astronomer Clickstream, you can use Facebook Pixel without having to install their JavaScript library on every page of your site. We also eliminate the need to write custom code to track user event data. Once your Facebook Pixel is routed through Astronomer, our platform translates page views and events into corresponding Facebook Pixel events.

Getting Started with Facebook Pixel and Astronomer Clickstream

Facebook Pixel Side

To get started with this integration, you’ll first need to create a Facebook for Business account. Follow the instructions for creating a Pixel.

You’ll only create one pixel for your site (typically labeled with the name of your business). This pixel will replace all the functionality previously given to Facebook Audiences and Facebook Conversions (as well as allowing some additional features, such as custom conversions).

facebook-pixel1

Once that’s set up, identify your unique pixelId, a 15 digit number that uniquely identifies your site.

Astronomer Side

Put your Facebook Pixel ID into your Astronomer account and give your new connection a unique name.

With that, just click Save to activate your pipeline.

Additional Features

Standard Events

Facebook has nine Standard Events, which are predefined within the Facebook for Business platform.

To connect your events to these predefined ones within Facebook, just input the name of the Astronomer event and choose the appropriate Standard Facebook Event that corresponds to it.

facebook-pixel3

Conversion Pixel ID

If you are using the Facebook Pixel integration as a replacement for Conversion Pixels as well, put each Conversion Pixel ID into your Astronomer account next to the corresponding event in Astronomer that you’ve already set up. Make sure you include all capitals letters and spaces used in your event labels.

facebook-pixel4

Send all Events as Single Events

Enabling this will force FB Pixel events triggered by Astronomer to fire in trackSingle/trackSingleCustom mode to prevent them from going to other FB Pixels loaded on the page. This is helpful if there are different team managing their own pixel, or if you have installed analytics.js on a site with an existing pixel.

You can find out more about the specific use-case and benefits from this Facebook Developers article