Set up conversion tracking in Google Tag Manager
In my previous two articles, we have learned how to implement Google Tag Manager and added Google and Facebook Pixel tracking code. If you have done it correctly data should be flowing into Google Analytics, showing us where our users are coming from, how much time they are spending on the site, etc. But we are still missing out on one of the most important trackings, that is conversion tracking.
What is conversion tracking
It is to measure how successfully and effectively your digital ads campaign is on your site. We can track specific action on your site such as
- Completing a purchase
- Signing up a form
- Submitting an e-mail address
- Arriving at a “goal page”
- Watch a video
- Sharing post on social media
- Any other event or action on your website
Today, I’m going to show you how to set up conversion trackings for Facebook and Google Ads.
Facebook conversion tracking
Before we start, you need to have a Facebook Ads Manager setup.
Note: Our scenario is, we have an e-commerce page and we want to track if a user has purchased our product and reaches the Thank-you page. (for this example, I will use the about page as the Thank-you page.)
- Let go to Facebook pixels in the event manager.
- On the right, you will see a “Set up” dropdown. Click it and select “Set Up New Events”.
- Click on “manually add event code”.
- A pop-up box will appear and scroll down and click on the purchase tab.
- We do not need the “Send event parameters”, you can uncheck it. Now scroll down and you will find the purchase code, copy that. After that, you can close the pop-up box.
- Now go back to your Google Tab Manager, click on “Tag on the right” and click on the “Facebook Pixel link”.
- Under “Advanced Settings”, set tag firing priority. This is to ensure that this code is triggered before the event – purchase code is. Click Save.
- Click the “New” button.
- Give your Tag a proper name, then click on “Tag Configuration”.
- Select “Custom HTML” tag.
- Paste the code from “Facebook” in the HTML container. Once done, click the “Triggering” section.
- Let’s add a new Trigger.
- Give the new trigger a proper name.
- Select “Page View”.
- Since we only want is trigger to fires on our thank-you page, select the “Some Page Views” radio button.
For the first dropdown box, select “Page URL”.
For the second dropdown box, select “contains”.
The last dropdown box, key in the “Thanks-you.html” URL. (In my case, I’m using about.html for this example. You should be filling your URL.)
- Click submit.
- Name your version and click Publish.
How to test the Facebook conversation tracking is working?
If you have Facebook pixel helper chrome extension install, you can see that the purchase tag is been trigger when I at the about.html page.
Else you can go back to your Facebook pixel page and click on the “Go to Test Events” button.
You can either key in the URL in the box, or simply refresh your thank-you page.
Your page will auto-refresh and the purchase event is displayed.
Google Conversion Tracking
Before we start, you need to have a Google AdWords account.
- Login to your account and on the top right, click the “Tools and Settings” icon. Under Measurement click conversions.
- Click the add icon.
- Select website.
- Let fill up some basic info.
For category, select Purchase.
Name it Purchase.
Under value, select the first radio button.
For count checked the first radio button.
Finally, click “create and continue”.
- Select “Use Google Tag Manager”.
- These are the two values we need for Google Tag Manager.
- Back to Google Tag Manager dashboard. Click on the Tag and New button.
- Give this new tag a proper name and click on the “Tag Configuration”.
- Select “Google Ads Conversion Tracking”.
- Key in the Conversion ID and Conversion Label and click Triggering section.
- Select the Trigger which we have created earlier.
- Click Save.
- Click Submit.
- Give a proper name and description to this version and click Publish.
How to check if the Google Ad conversion tracking is working?
Go to your Thank you page, and if you have your Google chrome Tag Assistant extension installed. You can see that the Google Ads Conversion Tracking is there.
This is a pretty long tutorial, hope you have learned something new out of this. The next article will be on event tracking.