Image via istockphoto
Eric Gockel

Written by Eric Gockel

Share

If you’re getting started using Google Tag Manager, one of the first things you’ll probably want, or need, to do is add pixel tags to your website.

Whether you’re in marketing or on the tech side implementing, it can be not very clear if you’re not familiar with the GTM system, even if you have used Google Analytics.

Getting Started

Before you add tags, you’ll want to set up a variable for your Google Analytics ID so your GTM script can replace your existing Google Analytics tracking snippet.

  1. Click New in User-Defined Variables
  2. Give your variable a clear name like “acmeCo GA ID.”
  3. Select Google Analytics Settings as the Variable Type
  4. Enter your Tracking ID (which can be found in your Google Analytics account)
  5. Click Save
  6. You’re ready to swap your Google Analytics script out with your new GTM script. 

    CAUTION: If you have a complex website configuration, you’ll want to thoroughly test first, possibly setting up a testing Property within Google Analytics before pushing to production.

Setting Up Facebook Pixel

You’ll need to go to Facebook Ads Manager, pop open the menu, and go to Measure & Report > Events Manager > Pixels. From there:

  1. Click Create a Pixel
  2. Give your pixel a name and a URL.
  3. The next screen, Install Pixel, makes it easy with GTM. Just select Connect a Partner Platform and choose Google Tag Manager.
  4. Connect your FB ad account with your Google Account
  5. Select which Account and Container you’d like to add the pixel to
  6. And that’s it! A Custom HTML tag will have been generated for you in your account’s container.

Setting up Twitter Pixel

Setting up the Twitter pixel is pretty straightforward as well.

  1. Click New in the Tags section
  2. Select Twitter Universal Website Tag
  3. Grab your Twitter pixel ID from your Twitter Analytics site, More > Conversion Tracking. Click View code and installation instructions. You’ll see your ID buried in the line starting with “twq(‘init’, ‘xxxxx’);
  4. Set the tag event to PageView
  5. Set a Trigger on All Pages


Setting up LinkedIn Pixel

LinkedIn Insight tags are similar to Twitter:





  1. Click New in the Tags section
  2. Select LinkedIn Insight as the Tag Type
  3. Enter your Partner ID, which can be found in your LinkedIn advertising section Campaign Manager under Account Assets > Insight Tag, tucked into the second line of the script block at _linkedin_partner_id
  4. Set a Trigger on All Pages

Test and Submit

Once your tags have been entered and saved, you can switch to Preview mode. Next, you’ll need to download the Google Tag Assistant, which can help verify that your tags have been properly configured. Visit your site and click the Assistant icon in your browser to activate the testing panel. 

Facebook has its Pixel Helper that can also be used to check your tags and quickly access your stats.

Questions? Let us know in the comments!

Tags
Google Tag ManagerGTM