LOG IN OR SIGN UP
Log in to your account
Sign up

Set Up Your Social Ad Tracking With GTM

03 November 2017 | 0 comments | Posted by Che Kohler in nichemarket Advice

How to set up social ad tracking

If you’re looking to step up your social media game and enter the dark post realm of social media advertising, you will need to install some third party tracking supplied by these networks.

These scripts help align your site with that of the ads you push out on social and improve the accuracy or targetting, tracking and performance. Installing 3rd party tracking on your own can be a daunting task for many especially when it comes to editing source code on your site and risk bringing the entire site down. I can only say this because I’ve done it myself so tread carefully if you do take that route.

While that can be a dangerous path for some, for others CMS’s it can be a pain you can’t endure, and you’ll have to enlist the help of a developer.

Social tags with GTM

If the situations I described above are familiar to you then firstly I feel your pain, and secondly, I want to let you know it doesn’t have to be that way. Running GTM makes 3rd party tracking oh so easy, you don’t even have to be a techy to do it. So let’s dive into how to get these tracking codes up and running.

How to install the Facebook tracking pixel with GTM

Setting up your Facebook tracking code

  • Open up your business.facebook.com dashboard
  • Click on the burger menu in the top right-hand corner
  • Select all tools
  • Navigate to measure and report
  • Click on pixels
  • Click Add Data Source
  • Click Add Pixel
  • Give the Pixel a name
  • Click on integration or GTM as installation
  • Select your GTM
  • Select manual install
  • Copy pixel base code

Installing up your Facebook tracking code

Now that you have the code its time to install it on your site

  • Open up your Google Tag manager
  • Click new tag
  • Give the tag a name - IE Facebook Pixel
  • Select tag type custom HTML
  • Paste the code facebook gave you in the setup process
  • Select a trigger
  • Select to fire on all pages
  • Save your tag
  • Click submit

And you're done! It's important to note that this is just the base code, if you want to set up tracking on user actions like sign-ups, add to carts, purchases and more you will have to create separate tags and create event triggers provided by Facebook.

How to install the Twitter tracking pixel with GTM

Setting up your Twitter tracking code

  • Open up your ads.twitter.com dashboard
  • Login with your Twitter account
  • Select your country and time zone
  • Click on your profile and add new payment method
  • Confrirm your payment information
  • Then go back to the main dashboard and click tools
  • Click conversion tracking
  • You should be presented with a script
  • Find your twittwer pixel ID in the script

Installing up your Twitter tracking code Now that you have the code its time to install it on your site

  • Open up your Google Tag manager
  • Click new tag
  • Give the tag a name - IE Twitter Pixel
  • Select tag type Twitter universal website tag
  • Paste in the twitter pixel ID
  • Select a trigger
  • Select to fire on all pages
  • Save your tag
  • Click submit

And you're done! If you want to add custom conversion tracking you can do so from within the Twitter Ads platform

How to install the LinkedIn tracking pixel with GTM

Setting up your Linked tracking code

  • Open up your ads.linkedin.com dashboard
  • Click on the your account
  • Select account assets on the top menu
  • Select insight tag
  • You will be presented with a script but all you will need is the partner id

Installing up your Linkedin tracking code

Now that you have the code its time to install it on your site

  • Open up your Google Tag manager
  • Click new tag
  • Give the tag a name - IE Linkedin Pixel
  • Select tag type linkedin Insight tag
  • Add the Partner ID
  • Select a trigger
  • Select to fire on all pages
  • Save your tag
  • Click submit

And you're done! If you want to add custom conversion tracking you can do so from within the LinkedIn Ads platform

Testing your implementation 

There are a number of tools you can install on your browser to check if your pixels are running correctly

  • Facebook pixel helper
  • Chrome developer tools
  • Ghostery
  • Google Tag Manager Debugger

Personally, I prefer using Ghostery since its the easiest and I'm pretty lazy when it comes to debugging things.

Pixel tracking made easy

GTM is an absolute delight when it comes to installing marketing tech from 3rd party sites, and social tracking is no different. Not only does it make setting up the base code easy, but once you're ready to do more comprehensive monitoring and sending more user data to your social Ad accounts, GTM makes it a painless exercise with the ability to set up and test on the fly.

Contact us

If you want to know more about Google Tag Manager, don’t be shy we’re happy to assist. Simply contact us here

Tags: facebook, google tag manager, linkedin, Social Media, Twitter

Previous: {{ previousBlog.sTitle }}

Posted {{ previousBlog.dtDatePosting }}

Next: {{ nextBlog.sTitle }}

Posted {{ nextBlog.dtDatePosting }}

You might also like

Google includes SMS business prompt in knowledge graph

SMS Businesses From Their Google Knowledge Graph

29 November 2016

Posted by Che Kohler in nichemarket Advice


Google has decided to test out the viability of including an SMS a business prompt in their knowledge graph when searching for businesses & service p...

Read more
A beginners guide to retargeting

A Beginner’s Guide to Retargeting

20 April 2018

Posted by Zanthe Martinuzzi in Industry Experts


Ever wondered why ads keep following you online? It's most likely that a website is using retargeting to capture and keep your attention

Read more

Leave us a comment


{{comment.sUserName}}

{{comment.iDayLastEdit}} day ago

{{comment.iDayLastEdit}} days ago

{{comment.sComment}}

Sign up for our newsletter