How to Set up Google Tag Manager for Better PPC Tracking

February 7, 2019 Jay

Proper tracking is crucial to the success of any PPC campaign.

If you aren’t tracking conversions correctly, you won’t have the right data flowing into ad accounts to make informed decisions about keywords, ad copy, and audiences.

Unfortunately, implementation can be a barrier for accounts of all sizes. An overworked developer or a bureaucratic IT department can take weeks to add a simple Google Ads conversion code.

Thankfully, Google Tag Manager provides a solution to save time and back-and-forth communication when implementing tracking codes. Once a single code has been installed on the site, PPC marketers can then have full access to add as many ad platform tags as they need.

This article will walk you through how to set up Google Tag Manager (GTM) and deploy tags for major ad platforms.

Setting Up Google Tag Manager

If you haven’t yet created a GTM account, start here. The interface will walk you through setting up a new account.

Set up Google Tag Manager account

Within your account, you’ll also need to create a container for your site. Generally, you’ll want to name this the domain name where the GTM container will be used.

Select Web and click Create to start your account.

Set up Google Tag Manager container

Next, you’ll see a box appear containing the code to add to your site. You’ll need to add the first snippet of code toward the top portion of the site and the second snippet right after the opening tag.

Install Google Tag Manager

Note that if you use WordPress, you can also install GTM using this plugin. Some other CMS platforms have built-in GTM integration; check with your provider’s support if you’re unsure where to go.

Checking Tag Installation

To double-check that GTM is installed properly, install the Google Tag Assistant extension in Chrome.

Now, navigate to the page you wish to check and click the extensions’ icon in your browser bar.

Google Tag Assistant

You should now see Google Tag Manager listed, along with any other active tags for Google products.

  • A green “smiley face” indicates the code is functional.
  • Blue indicates potential issues (such as placement in a non-standard section of the code).
  • Red indicates an error in installation.

You can click on the tag to see more details about errors for troubleshooting.

1. Implementing Google Ads Tags

For Google Ads, you can deploy both conversion and remarketing tags through GTM.

First, we’ll implement a conversion tag.

Adding a Google Ads Conversion Tag

Navigate to your desired GTM account and container. On the overview screen, select Add a New Tag.

Add New Tag in Google Tag Manager

In the window that appears, click in the Tag Configuration to choose a tag type.

Choose Tag Type

Select Google Ads Conversion Tracking.

Choose Tag Type

Now, go to your Google Ads account in another tab or window to grab the Conversion ID and label. Click the Tools icon on the top menu and select Conversions.

Set Up Google Ads Conversion

Next, either create a new conversion or click an existing one to edit. Under the Tag Setup section, select the option to Use Google Tag Manager.

Google Ads Conversion ID

You’ll now see the Conversion ID and Conversion label. Copy these and paste into the respective fields in your GTM tag.

Google Ads Conversion Tag

Next, add a trigger to determine where your conversion tag fires on the site. Of course, what you define as a conversion will vary from site to site, and the setup will be different for each.

In this instance, we’ll set up a conversion to fire on a “Thank You” page, assuming that a user sees this page after submitting a form.

Click within the Triggering section to begin setting up your trigger. Within the window that appears, click the Plus (+) button in the upper right to add a new trigger.

Add Google Tag Manager Trigger

Name the trigger based on the specific conversion point you’re wanting to track. Click within Trigger Configuration to select the type of trigger. For this example, we’ll select Page View to track all hits to a certain URL.

Choose Trigger Type

Select Some page views so the trigger only fires on defined pages. Next, use the section below to define where the trigger will fire. We’ll set up a rule for a Page Path that contains /thank-you.

Thank You Page Trigger

Save your trigger, and save your tag. For now, your edits will live in your workspace within GTM. Note that to push any GTM edit live on your site, you’ll need to click Submit and then Publish.

Next, we’ll add a remarketing tag.

Adding a Google Ads Remarketing Tag

Create a new tag in GTM and select a tag type of Google Ads Remarketing. Now, you’ll need to find your remarketing tag in your Google Ads account (or enable it if you haven’t done so).

Navigate to Tools > Audience Manager from the top menu.

Access Audience Manager

Next. select Audience sources from the left menu. If your Google Ads tag is already active, click Details; otherwise, you’ll see an option to create your tag.

Google Ads Audience Sources

On the Details page, scroll to the bottom Tag setup section and click it to expand. Next, click Use Tag Manager at the bottom of that section.

Google Ads Global Site Tag

You’ll see a box appear with your Conversion ID, which you can then copy and paste into the corresponding GTM box. Note that you don’t need a Conversion Label for a remarketing tag.

GTM Google Ads Remarketing Tag

Next, click the “Triggering” section to choose where your remarketing tag should fire. If you simply want to include the tag across your entire site, choose All Pages. You can also set up triggers to fire the code only on select pages if necessary.

See Anyone’s Analytics Account, in Real Time.
You can literally see real-time sales and conversion data for any website, and which campaigns drove that traffic. Start your free trial today.

ADVERTISEMENT

Google Tag Manager Trigger

Finally, save your tag, and don’t forget to publish it live once ready!

2. Adding the Bing UET Tag

Now, we’ll cover setting up the Bing Ads tag in GTM. Create a new tag and select Bing Ads Universal Event Tracking as the tag type.

Next, go to your Bing Ads account to obtain the UET ID. Navigate to Conversion Tracking > UET tags from the left column.

If you haven’t yet created the tag, you’ll see a prompt to walk through setting it up. If the tag was previously set up, you can copy the Tag ID from the table.

Accessing Bing UET Tag

Paste the ID into the proper field in GTM. For the default setup, you won’t need to adjust any of the advanced settings.

Bing Ads UET Setup in Google Tag Manager

Next, choose a trigger for where you want the tag to appear. Since the Bing UET tag is a global tag, you’ll most likely want to fire this on all pages.

Once the global tag is in place, you can also add additional tags for event-based conversions. Use the same Tag ID, and select an Event Type of “custom.” Then, you can define parameters based on what you’ve set up in Bing for your custom conversion.

To check the setup of the UET tag, you can use Bing’s UET helper Chrome extension.

3. Adding the Facebook Pixel

While the previous two platforms we covered have built-in GTM templates, Facebook Ads does not.

Thankfully, GTM includes a Custom HTML tag as an alternative option, and Facebook offers a direct integration to make the setup process simple.

To access your pixel from your Facebook Ads account, mouse over the menu from the top bar and select Pixels. If you haven’t yet set up a pixel, you’ll be prompted to do so.

Accessing Facebook Pixel

Otherwise, click Details on the proper pixel and Set up.

Set up Facebook Pixel

Now, you’ll see a box with options to select a setup method.

Click Use an Integration or Tag Manager and then select Google Tag Manager from the options that appear.

Use Tag Manager Integration

You’ll now see a series of steps walking you through logging into your account, selecting the proper GTM container, and finalizing setup.

Connect Tag Manager and Facebook

To check the setup of the Facebook Pixel, you can use the Facebook Pixel Helper Chrome Extension.

4. Adding the LinkedIn Insights Tag

To add LinkedIn’s tag in GTM, create a new tag and select LinkedIn Insight as the tag type. You’ll now need to grab the Partner ID from your LinkedIn Ads account.

From within your account, go to the Account Assets dropdown on the top bar and select Insight Tag.

Access LinkedIn Insight Tag

You’ll now see the code for your tag, or be prompted to set the tag up if you haven’t done so yet.

LinkedIn Insight Tag Code

Look for the second line of code, which should look like the following (the number will vary):

_linkedin_partner_id = “12345”;

The number within the quotes is your Partner ID, so add that to the field in GTM.

LinkedIn Insight Tag in Google Tag Manager
Now, add a trigger for all pages (or define any specific criteria necessary for where the tag appears or doesn’t appear on your site) and publish the tag live on your site.

5. Adding the Twitter Universal Website Tag

To add the Twitter Ads tag to your site, create a new tag and choose Twitter Universal Website Tag as the tag type. Next, you’ll need the pixel ID from your Twitter Ads account.

From the top menu in Twitter Ads, navigate to Tools > Conversion Tracking.

Access Conversion Tracking in Twitter Ads

On the page that appears, click “View code and installation instructions.”

View Twitter Ads Universal Website Tag

Now, you’ll see the code in a text box.

Set up Twitter Ads Universal Website Tag

Find the line of code that looks like the following (the final string in quotes will vary):

twq(‘init’,’12345’);

You’ll want to copy the string of characters within the second pair of quotes. Insert that string into the “Twitter pixel ID” field in your GTM tag.

LinkedIn Insight Google Tag Manager

For the global pixel deployment, you shouldn’t need to customize any additional settings. Add a trigger for All Pages (or whatever pages you want the pixel to appear on) and publish it live.

Conclusion

Google Tag Manager can help to majorly simplify tracking tag deployment for organizations of all sizes. With the ability to add tags more efficiently, you can reduce unnecessary communication and save time for other priority tasks.

If you haven’t yet worked with Google Tag Manager, start an account for free and begin setting up some tags for your ad accounts.

If you’ve started with GTM but haven’t dug in very far, try out some new templates and set up some custom HTML tags.

You’ll likely find using a tag management platform an improvement on previous methods of tag implementation.

This article was originally posted at Search Engine Journal by Tim Jensen on January 28, 2019.

QUESTIONS? READY TO START?

Let's discuss your upcoming web or print project, existing website improvement, expanding your social outreach or branding needs. Contact us to get started.