Using the Facebook pixel with Ensighten
30/11/2019
If you're using Ensighten to manage tags for your website and want to install the Facebook pixel, follow these steps:
Before you begin
- Make sure that you have access to your website's Ensighten account.
Install the Facebook pixel
- Log in to Ensighten.
- Click Apps in your Ensighten dashboard.
- Search for the Facebook app.
- Hover over Facebook Custom Audience and click Configure.
- Click Base Tag.
- Go to the Pixels page in Facebook Ads Manager.
- Copy your pixel ID.
- Back in Ensighten, paste your pixel ID in the Pixel ID container.
- Select your Locale, then click Next.
- Your Conditions will show up and default to Global. Leave this as is because the base code should be on every page of your website. Then click Next.
- Your Deployments will show up next. Name it, select your space, fill in the optional fields, then click Next.
- Click Generated Tag Code to check your code. Click Save to proceed.
- You can now test the pixel in your Deployments and then publish to your website.
Assign events:
- Find the Facebook Custom Audience app and select the Event Tracking Tag.
- Select your event type, then fill in attributes from your website. Besides using data layers, you can select JavaScript or Text Value to configure your attributes.
- Click Next.
- Set conditions for each event. While Global makes sense for the base code, it isn't appropriate for your Purchase page. Once you've selected the appropriate conditions for you website, click Next.
- Name your deployment, then click Next.
- Click Generated Tag Code to check your code. Click Save to proceed.
You can now test the pixel in your Deployments and then publish to your website. Repeat this process for each of the events you want to track and optimise for.
Check if your pixel is working
Once you've uploaded all your events, you should check if your pixel is firing correctly. To check that your pixel is working properly on your live site:
- Go to the page where the pixel has been placed. If it's working, the pixel will send information back to Facebook and you'll be able to see activity on the Pixels page in Ads Manager. Your pixel's status will also be set to Active. Note: The activity column reports all conversion events, regardless of whether or not they're associated with an ad.
- If this page says No activity, then take a look at the Facebook Pixel Helper troubleshooting guide.
* Nguồn: Facebook