Facebook & LinkedIn pixel integration through GTM

Integrate Facebook Pixel

To integrate Facebook Pixel through Google Tag Manager, follow these steps:

  1. In the Google Tag Manager dashboard, click on "Add a new tag".
  2. Enter a descriptive name for the tag, e.g., "Facebook Pixel".
  3. Click on "Tag Configuration" and select "Custom HTML" option.
  4. Past the code below in html and replace the YOUR_FACEBOOK_PIXEL_ID with correct fb pixel id.

<!-- 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_FACEBOOK_PIXEL_ID');

fbq('track', 'PageView');

</script>

<noscript><img height="1" width="1" style="display:none"

src="https://www.facebook.com/tr?id=YOUR_FACEBOOK_PIXEL_ID&ev=PageView&noscript=1></noscript>

 

Integrate Linkedin Pixel:

To integrate the LinkedIn pixel through Google Tag Manager, follow these steps:

  1. Sign in to your Google Tag Manager account.
  2. Create a new container or select an existing container to work with.
  3. Go to "Tags" in the left sidebar menu and click on "New".
  4. In the "Tag Configuration" section, click on "Tag Type" and search for "LinkedIn Insight Tag" template.
  5. Select the "LinkedIn Insight Tag" template from the search results.
  6. In the "LinkedIn Insight Tag Configuration" section, enter your LinkedIn Insight Tag ID. This ID can be obtained from your LinkedIn Campaign Manager account.
  7. Optionally, you can configure advanced settings such as firing rules and trigger options based on your specific requirements.
  8. Click on "Triggering" in the upper right corner of the screen to set the trigger for the LinkedIn Insight Tag.
  9. Select the appropriate trigger options based on when and where you want the LinkedIn Insight Tag to fire. For example, you can choose to fire the tag on all pages or only on specific pages.
  1. Click on "Save" to save the LinkedIn Insight Tag configuration.
  2. Click on "Submit" in the upper right corner of the screen to publish the changes to your Google Tag Manager container.
  3. Review and confirm the changes in the "Review Container Changes" screen.
  4. Click on "Publish" to publish the changes.
  5. You have successfully integrated the LinkedIn pixel through Google Tag Manager. The LinkedIn Insight Tag will now be fired on the specified pages based on your trigger configuration.

Note: Make sure to test the integration to ensure that the LinkedIn Insight Tag is firing correctly and capturing the desired data.

 

To integrate Facebook Pixel and Linkedin Pixel through Google Tag Manager using template, follow these step-by-step instructions:

  1. Log in to your Google Tag Manager account.
  2. Navigate to the container where you want to add the Facebook Pixel and Linkedin Pixel.
  3. Click on "Tags" in the left menu.
  4. Click on the "New" button to create a new tag.
  5. Name the tag appropriately, such as "Facebook Pixel" or "Linkedin Pixel."
  6. In the tag configuration section, click on the tag type selection box and choose the "Facebook Pixel" template.
  7. Paste the Facebook Pixel code into the appropriate field. To obtain the Facebook Pixel code, go to your Facebook Ads Manager account, navigate to the "Pixels" section, and select the pixel you want to integrate. Copy the entire code provided.
  8. Configure any necessary triggers and variables. Triggers determine when the tag should be fired, while variables contain dynamically generated information. Follow these guidelines for configuring triggers and variables:
  1. Triggers:
  • Click on "Triggering" in the tag configuration section.
  • Create a new trigger or select an existing one based on your requirements. For example, you can trigger the tag on all pages, specific page URLs, or specific events like form submissions.
  • Ensure the trigger is properly set up to capture the desired events for the Facebook Pixel and Linkedin Pixel.
  1. Variables:
  • Click on "Variables" in the tag configuration section.
  • Create a new variable or select an existing one based on your needs.
  • Variables may include information such as page URLs, referral sources, or user IDs.
  • Configure the variables to provide accurate and relevant information to the Facebook Pixel and Linkedin Pixel.
  1. Once you have completed configuring the tag, click on the "Save" button to save your changes.
  2. Click on the "Submit" button in the upper-right corner to publish your changes to the container.
  3. Test the integration by visiting your website and performing the desired events that should trigger the Facebook Pixel and Linkedin Pixel. Use the appropriate browser extensions or debugging tools to verify that the pixels are firing correctly.
  4. Monitor the Facebook Ads Manager and Linkedin Campaign Manager to ensure the pixel data is being tracked accurately.

By following these steps, you will successfully integrate Facebook Pixel and Linkedin Pixel through Google Tag Manager. Remember to adjust the instructions based on your specific requirements and any changes in the user interface of Google Tag.