How to Setup Facebook Pixels using GTM | Facebook Pixels setup Google ads
Setting up Facebook Pixels using Google Tag Manager (GTM) allows you to track user interactions on your website and send this data to Facebook for ad targeting, optimization, and analytics. Here are the steps to set up Facebook Pixels with GTM:
Facebook Ads Account: Ensure you have a Facebook Ads account and access to the Facebook Pixel you want to use.
Google Tag Manager Account: If you don’t have one, sign up for a Google Tag Manager account at https://tagmanager.google.com/.
Step 1: Create a Facebook Pixel-
- Log in to your Facebook Ads Manager account.
- Go to “Events Manager” and click on the “Data Sources” tab.
- Click on “Pixels.”
- Click “Create a Pixel.”
- Follow the on-screen instructions to set up your Pixel. Facebook will provide you with a Pixel ID.
Step 2: Install Google Tag Manager on Your Website
- Sign in to your Google Tag Manager account.
- Create a new container for your website if you haven’t already.
- In the container, navigate to “Admin” and select “Install Google Tag Manager.”
- Follow the instructions provided to add the GTM container code to your website. You may need to add this code to every page of your website.
- Publish the GTM container to your live website.
Step 3: Set Up a Facebook Pixel Tag in GTM-
- In your GTM container, click on “Tags.”
- Click on “New.”
- Name your tag (e.g., “Facebook Pixel”).
- Choose a tag type. Search for and select “Facebook Pixel” under “Tag Configuration.”
- Configure your Facebook Pixel tag:
- Enter your Pixel ID (obtained from Facebook Ads Manager).
- Choose the trigger(s) that specify when the Pixel should fire. Typically, you’d want it to fire on page view, so select a trigger that matches all pages or specific page views.
- Save the tag configuration.
Step 4: Create a Trigger for the Facebook Pixel-
- In your GTM container, click on “Triggers.”
- Click on “New.”
- Name your trigger (e.g., “All Pages”).
- Choose a trigger type. Select “Page View.”
- Configure the trigger to fire on “All Page Views.”
- Save the trigger.
Step 5: Associate the Trigger with the Facebook Pixel Tag-
- Go back to your Facebook Pixel tag (the one you created in Step 3).
- In the “Triggering” section, click on “Choose a trigger to make this tag fire…”
- Select the trigger you created in Step 4 (e.g., “All Pages”).
- Save the tag.
Step 6: Publish the Changes-
- In GTM, click “Submit” to publish the changes to your container.
- Follow the steps to review and submit your changes.
Step 7: Test the Facebook Pixel
- To ensure everything is working correctly, use Facebook’s Pixel Helper browser extension to check if the Pixel is firing correctly on your website.
- Open your website in a browser with the Pixel Helper extension installed.
- Verify that the Pixel Helper shows your Pixel firing and tracking events correctly.
That’s it! You’ve successfully set up Facebook Pixels using Google Tag Manager. The Pixel will now start collecting data from your website for use in your Facebook Ads campaigns. Remember to regularly test and monitor your Pixel to ensure accurate tracking.
#facebook #pixels #facebookpixels