Overview
Integrating the Meta (Facebook) Pixel with Google Tag Manager (GTM) ensures accurate tracking of visitor activity on your website and Meritto widgets. This setup enables you to track key events such as page visits and lead submissions, helping you optimize Meta Ads campaigns with better data.
This guide covers how to add the Meta base pixel for tracking all pages and configure lead event tracking for Meritto widgets using GTM.
Adding base pixel of Meta for All Pages
- Log in to your Google Tag Manager account.
- Select your website's container and click Add a new tag.
- Click the Custom HTML tag and enter a name for your tag.
- Go to Meta Events Manager and select Add event.
- Select From a new website.
- Select Install code manually.
- Select Copy code to copy the entire Pixel base code.
- Return to Google Tag Manager and paste the code in the HTML container.
- Click the Advanced settings dropdown menu and select Once per page below Tag firing options.
- Below Fire on, select All pages.
- Click Create tag.