Using Google Tag Manager

November 29, 2019 |
  • Facebook
  • Twitter
  • LinkedIn

Have you ever needed to add some code to your website, but don’t understand complex HTML code, or even where you would add it within a WordPress theme?

Embedding HTML Code snippets on your website is often required when needing to track traffic between websites – for things like Google Analytics, Google Ads, Facebook Pixel and so forth…

Using Google Tag Manager simplifies this whole process, so regardless of what website you are running, as long as you have Google Tag Manager either installed or embedded by your website designer, you can easily add these embed codes to your site.

  • Facebook
  • Twitter
  • LinkedIn
  • Facebook
  • Twitter
  • LinkedIn

Adding Facebook Pixel

In this example we’ll demonstrate how to add the Facebook Pixel to Google Tag Manager.

From the screenshot above, you can see that we don’t have this setup yet – so let’s begin!

Firstly, run through the steps to create the Facebook Pixel on your Facebook account then select the ‘Install base code on website’ option.

This will give you a whole chunk of code that can look quite confusing! But don’t fret – just copy all of this funky code by highlighting it all, right click and copy.

Next, head over to Google Tag Manager and if you haven’t already, add your website.

Then it’s a simple case of clicking ‘New’, give it a name at the top, then click Tag Configuration

  • Facebook
  • Twitter
  • LinkedIn

From here, select ‘Custom HTML’.

Almost there!

Now just paste in the funky HTML Code which you copied in the step above then click on Triggering (below).

From here, you can select when to trigger the code to load. For Facebook Pixel, then you’ll likely want to just choose All Pages to ensure the Facebook Pixel loads on every page of your site.

Hit Save.

And you’re done!

Repeat the same thing for any other integrations that you need to get onto your website.

  • Facebook
  • Twitter
  • LinkedIn
  • Facebook
  • Twitter
  • LinkedIn

What can you do with it?

From the screenshot above, you can see what some of the items we have used ours for…

  • Call Tracking – so we can track visitors who come from our PPC ad campaigns
  • Google Ads Remarketing tag, so we can display ads to visitors as they browse other websites after visiting ours.
  • Google custom markup schema that we’re hoping will improve our local SEO and rankings for Google My Business.
  • Subscriber notifications – which is what gives you the pop up box when you first visit our website to subscribe to notifications.
  • Google Analytics
  • And of course – Facebook Pixel!

Let me know if there is anything cool you are using Google Tag Manager for, it would be interesting to see if anybody has come up with a really creative use for it!