Collecting data using tools like Google Analytics is critical for expanding your businessâ€™s online reach, converting leads into customers, and optimizing a digital marketing strategy to create stronger relationships with your audience.
However, collecting data is easier said than done. Google Analytics and other similar analytics tools aid the process, but they work more effectively with the addition of tags.
For marketers, necessary tag information typically includes how long users visit a page on your site, form submissions, how they arrived on your site, which links they clicked, or even what products they removed from their shopping cart.
Each tag tracks something different. For instance, you might create a tag just to see how many people fill out the form on your â€œContact Usâ€� page. That tag can then send more precise information to Google Analytics, or AdWords, or another third party.
Unfortunately, manually coding tags can be a tedious and difficult process for marketers without much development or coding experience, and itâ€™s time-consuming to fill out tickets for the IT department.
With Google Tag Manager, your whole tagging process becomes much easier. All you do is embed a code into your site pages once, and then each time you want to create a tag, Google Tag Manager codes it and embeds it for you.
What is Google Tag Manager?
Google Tag Manager is a tag management system that allows you to create and monitor tags on a user interface, without writing new code each time you want to construct a tag. You simply embed the Google Tag Manager code into each page of your website. This eliminates the manual process of creating tags, making your marketing process more efficient and precise.
Google Tag Manager does a few things: first, it allows your developers and IT department to focus on bigger-picture tasks by eliminating the burden of coding each individual marketing tag.
Second, since Google Tag Manager codes the tags for you, it significantly reduces the possibility of human error.
And third, Google Tag Manager enables your marketing department to take complete control over the tags they create and monitor. Giving your marketers full reign over their tags increases efficiency. Plus, using tags improves the accuracy of your analytics system, guaranteeing higher-quality reports and a better sense of your true online audience.
With all that said, itâ€™s still a tool you might want to try for yourself before deciding if itâ€™s a perfect fit — perhaps you already have a tagging system in place, or you donâ€™t feel you need that level of organization, since your website doesnâ€™t usually need new tags.
Google Tag Manager is free, so you can try it out virtually risk-free. Here, weâ€™ll show you how to set up an account, how to create a new tag, how to use Google Tag Manager with your Google Analytics account, and how to embed the tool in WordPress.
After that, you can decide for yourself if itâ€™s the right system for your business.
Google Tag Manager Tutorial: Set Up an Account
Setting up a free account is an easy two-step process, but itâ€™s separate from any of your other Google Analytics or Gmail accounts. To ensure a painless set-up for you, weâ€™ve recorded our process for setting up an account.
Hereâ€™s what you do:
1. Go to https://www.google.com/analytics/tag-manager and click the green â€œSign Up for Freeâ€� button. It will ask you to input your account name (company), country, and website URL, as well as where you want to use Google Tag (web, iOS, android, AMP). When youâ€™re finished, click the blue â€œCreateâ€� button.
2. Next, youâ€™ll be given codes and instructions to include one code high in the <head> of your page, and the other after the opening <body> tag. You can do this now, or apply the codes to your site later (they are accessible in your dashboard). Once youâ€™re done, click â€œOkâ€�.
Google Tag Manager Tutorial: Set Up a Tag
Once you have a Google Tag Manager account, the first thing youâ€™re going to want to learn is how to set up a tag.
You can create unlimited configurations of tags in Google Tag Manager.
This is helpful for creating in-depth reports on your audienceâ€™s behavior, but it can become inefficient if you donâ€™t organize your tags properly.
Google recommends using the following naming convention: tag type – name of app – detail.
Perhaps you name one tagging configuration, â€œAdWords conversions – iOS – 2018-02 campaignâ€� and then another, â€œGoogle Analytics – CTA – About Us pageâ€�.
This way, you can correctly identify and collect data related to specific campaigns or pages.
For instance, the second tag, â€œGoogle Analytics – CTA – About Us page,â€� tells you how well your About Us call-to-action button is performing. That information is valuable, and might be lost if you named your tags more generally, like, â€œCTA buttonâ€�.
Now that weâ€™ve cleared that up, letâ€™s check out how to set up a tag:
1. Within your Google Tag Manager dashboard, click the â€œAdd a New Tagâ€� button, circled below in red.
2. Title your tag, and then click anywhere in the top â€œTag Configurationâ€� box, to choose a tag type.
3. There are dozens of tag types (they are not all displayed here, and you can also customize a tag type). I chose â€œClassic Google Analyticsâ€�.
4. If you want your tag tracked in Google Analytics, the next step will be to input your Web Property ID, found in your Google Analytics account. Then, select a â€œTrack Typeâ€�. I chose â€œPage Viewâ€�, but there are plenty of other options.
5. Next, choose a trigger (a trigger means when you want the tag recorded, i.e. â€œevery time someone visits the pageâ€�). I chose â€œAll Pagesâ€�, to get insights every time someone views any of my web pages, but this varies depending on your purposes.
6. When youâ€™re happy with the information in the â€œTag Configurationâ€� and â€œTriggeringâ€� boxes, click the blue â€œSaveâ€� button.
7. Next, click the blue â€œSubmitâ€� button. Your tag wonâ€™t work until you do so.
8. When you click â€œSubmitâ€�, youâ€™ll be taken to this â€œSubmission Configurationâ€� page. There are two options: â€œPublish and Create Versionâ€� or â€œCreate Versionâ€�. Since Iâ€™m ready to push the tag onto all my site pages, I selected â€œPublish and Create Versionâ€�, and then I pressed the blue â€œPublishâ€� button in the top right.
9. Finally, youâ€™ll be shown this â€œContainer Version Descriptionâ€�. To keep your tags organized, add a name and description to understand what youâ€™re trying to record with this tag.
10. Ensure your tag appears in your â€œVersion Summaryâ€� report.
Now, youâ€™ve successfully created your first tag.
Google Tag Manager and Google Analytics
If you want to use Google Tag Manager in conjunction with Google Analytics, there are a couple steps you need to take. However, itâ€™s a worthwhile endeavor — embedding tags in your site will increase the precision of your Analytics reports.
First off, youâ€™ll need to remove your GA code from your site pages. Youâ€™ll only need your Google Tag Manager tag code embedded — if you use both, itâ€™ll just report everything twice and mess up your data.
Second, youâ€™ll probably want to create a variable for your Google Analytics Tracking ID. A variable is a Google Tag Manager tool meant to increase your efficiency by saving additional (optional) data you provide.
If you save your GA Tracking ID as a variable, you wonâ€™t have to look it up every time you create a new tag for Google Analytics (which makes the lazy-person in me very happy).
How to Create a Variable in Google Tag Manager
1. Click â€œVariablesâ€� on your Google Tag Manager homepage.
2. Under â€œUser-Defined Variablesâ€�, click â€œNewâ€�.
3. Name your variable — I named it â€œGA Tracking IDâ€� so Iâ€™d remember. Then, click the â€œVariable Configurationâ€� box.
4. Choose â€œConstantâ€� as your variable type, since you donâ€™t want the ID to change for different tags.
5. Now, input your Google Analytics Tracking ID number into the â€œValueâ€� box, and then select â€œSaveâ€� in the top right.
Next, letâ€™s edit our â€œTestTag1â€� that we created earlier in this post, and include the new variable you just created.
How to Edit a Tag and Change its Value
1. Back on your homepage, select â€œTagsâ€� from your side bar. Click on the tag you want to edit (I clicked â€œTestTag1â€�).
2. Click the grey â€œ+â€� icon beside the â€œWeb Property IDâ€� box.
3. A â€œChoose a variableâ€� box will pop up, and the first option, â€œGA Tracking IDâ€�, is the variable we just created. Select that.
4. Now, your tagâ€™s â€œWeb Property IDâ€� should say (or whatever you named your variable). Click save, and your tag is updated.
Google Tag Manager for WordPress
If your business uses WordPress to host its website, thereâ€™s an easy two-step process to integrate Google Tag Manager into WordPress.
There are plug-ins available if youâ€™ve paid for a business version of WordPress, such as DuracellTomi’s Google Tag Manager.
However, if youâ€™d rather do it manually, itâ€™s relatively simple to do. It will only get tedious if you have a ton of different pages of your site and want to use tags on all of them — youâ€™ll have to copy and paste a code below the <body> tag on each page.
Hereâ€™s what you do:
1. Copy the Google Tag Manager code you are given during the set-up process. If youâ€™ve already set up your account, click the blue â€œGoogle Tag Managerâ€� code beside â€œWorkspace Changesâ€� on your Google Tag Manager homepage (circled below in red). That blue code will also supply you with your specific Google Tag Manager code.
2. Now, paste that code below the <body> tag of each page on your WordPress site.
Images courtesy of WordPress.org
Now, your WordPress site is prepped for any tags you want to create within Google Tag Manager. Google Tag Manager will automatically code future tags and embed them in whichever page youâ€™ve selected.
Source: New feed