October 26, 2021

SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

How to Set Up Google Tag Manager for Better PPC Tracking via @sejournal, @timothyjjensen

Share This :
, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Have you ever sent a tracking code to a development team, only to wait weeks for it to be installed?

When managing any PPC campaign, you must have proper conversion data flowing into ad platforms in order to do your job properly.

However, getting the right pixels in place can become far more complex than expected.

Google Tag Manager (GTM) helps save potential hours of time and back-and-forth communication, both for PPC managers and developers.

You just have to set up the GTM code across the site, and you can then deploy tracking codes without having to touch a line of code within the website.

You can also quickly update and edit tracking codes as needed, with a long list of options for trigger rules at your disposal to fire events at the right times.

In this column, you’ll find step-by-step instructions for installing GTM on your site and helpful tips for setting up tags from popular 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.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

First, enter the Account Name. Generally, you’ll want this to be your business name or a name that is otherwise clearly tied to your site.

The Account is the top-level “bucket” for holding your company’s GTM data.

Advertisement

Continue Reading Below

Next, within your account, you can create one or more containers. Generally, a container would be tied to a specific domain name or subdomain.

Enter a Container Name (usually, your website URL works well as a clear identifier here).

Select Web for a standard website setup, and click “Create” to go to the next step. You’ll need to say “Yes” to a service agreement to move forward.

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.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Note that if you use WordPress, you can also install GTM using this plugin.

Advertisement

Continue Reading Below

Some other CMS platforms have built-in GTM integration; check with your provider’s support team if you’re unsure where to set this up.

If you want to make sure your GTM container and contained tags are firing properly on your site, use the Preview option from within your GTM account.

Navigate to the main screen for your account and select “Preview” in the upper right.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Next, you’ll see a new tab open with an option to input the URL you’d like to test. Add the URL and click “Start” to go to the page.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

You’ll then be sent to the page in a separate tab, while a Tag Assistant tab will remain open, which shows you the tags that are being fired on the page.

Advertisement

Continue Reading Below

You’ll also see any errors that were flagged with the setup.

As you navigate through the site, Tag Assistant will update with any additional tags that are fired for each page.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Select Google Ads Conversion Tracking.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs Now, go to your Google Ads account in another tab or window to grab the Conversion ID and label.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Click the Tools icon on the top menu and select Conversions.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Next, either create a new conversion or click an existing one to edit.

Advertisement

Continue Reading Below

Under the Tag Setup section, select the option to Use Google Tag Manager.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

You’ll now see the Conversion ID and Conversion label.

Copy these and paste them into the respective fields in your GTM tag.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Next, add a trigger to determine where your conversion tag fires on the site.

Of course, what you define as conversion will vary from site to site, and the setup will be different for each.

Advertisement

Continue Reading Below

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.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Name the trigger based on the specific conversion point you’re wanting to track.

Advertisement

Continue Reading Below

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.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs Select Some page views so the trigger only fires on defined pages.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Save your trigger, and save your tag.

Advertisement

Continue Reading Below

For now, your edits exist only in your workspace within GTM and are not live. You can use the Preview option to ensure that the tag fires in the proper place.

To push your GTM updates live on your site, you’ll need to click Submit and then Publish in the upper right.

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.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Next. select Audience sources from the left menu.

Advertisement

Continue Reading Below

If your Google Ads tag has already been created, click Details; otherwise, you’ll see an option to create your tag.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

You’ll see a box appear with your Conversion ID, which you can then copy and paste into the corresponding GTM box.

Advertisement

Continue Reading Below

Note that you don’t need a Conversion Label for a remarketing tag.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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.

In most cases, you’d likely want the tag to fire across the site and then create audiences based on URL rules to segment them by page.

Advertisement

Continue Reading Below

You can also set up triggers to fire the code only on select pages if necessary.

For instance, you may be required for legal reasons to avoid retargeting people who access a backend login section of the site.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Finally, save your tag. Don’t forget to publish it live once ready!

2. Adding the Microsoft Advertising UET Tag

Now, we’ll cover setting up the Microsoft Advertising tag in GTM.

Advertisement

Continue Reading Below

Create a new tag and select Microsoft Advertising Universal Event Tracking as the tag type.

Next, go to your Microsoft Advertising account to obtain the UET ID. Navigate to Tools > UET Tag from the top toolbar.

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.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Paste the ID into the proper field in GTM.

Advertisement

Continue Reading Below

For the default setup, you won’t need to adjust any of the advanced settings.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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.”

Advertisement

Continue Reading Below

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.

However, GTM offers a Community Template Gallery, from which you can select templates that other users have created. There are pre-built templates for the Facebook Pixel here.

To access this template, create a new tag and navigate to choosing a tag type.

Click the top blue bar with the option to “Discover more tag types in the Community Template Gallery.”

A sidebar will open displaying a list of templates you can select. Search for “Facebook” to find a Facebook Pixel template (there are two options as of when this article published).

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

When you select your desired template, you’ll need to approve adding it to your workspace.

Advertisement

Continue Reading Below

Once approved, you’ll then see options to insert your Facebook Pixel ID, as well as selecting the events you’d like to fire.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

You can access your Pixel ID by navigating to Events Manager within Facebook Ads.

If you haven’t yet created your pixel, you’ll see a prompt to create it and will be provided with the code.

If any pixels have been created in the account, you’ll see them listed in the left-hand sidebar within the Data Sources section, with IDs under the names.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

Copy the ID for the desired pixel and then paste it into the Facebook Pixel ID field within GTM.

Advertisement

Continue Reading Below

You can then configure further details for what event you’re firing, as well as the necessary triggers.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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.

Advertisement

Continue Reading Below

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

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

You’ll now be prompted to set the tag up if you haven’t done so yet. If you have already set up the tag, select Manage Insight Tag and then See Tag from the dropdown that appears.

On the next page, click the option “I will use a tag manager” to see your LinkedIn partner ID.

Advertisement

Continue Reading Below

You can then copy and paste this into the partner ID field within GTM.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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.

Advertisement

Continue Reading Below

Next, you’ll need the pixel ID from your Twitter Ads account.

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

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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.

Advertisement

Continue Reading Below

Insert that string into the “Twitter pixel ID” field in your GTM tag.

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

, SEO, Wordpress Support & Insurance, Mortgage, Loans, Legal, Etc Blogs

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

Ready to start making your tracking processes easier? Install Google Tag Manager on your site and start setting up tags for the advertising and analytics platforms you manage.

Advertisement

Continue Reading Below

Your web developers will thank you for not having to email them every time you need a tag installed.

If you can’t find a built-in tag for the platform you’re trying to set up, you can either paste it into a Custom HTML tag or explore the Community Template Gallery to see if a user-created template for the tag exists.

Don’t forget to use Preview mode to test if your tracking setup is working properly.

So start tagging, start tracking, and thank Google for providing this solution to tag installation!

More Resources:


Image Credits

All screenshots taken by author, January 2019 & April 2021

Share This :