Many websites lose reporting from one of their marketing or analytics platforms. The culprit is usually the removal of tags during updates to the sites.
Tags are critical for ecommerce merchants. For example, Google Analytics has page tags and ecommerce tags. Google AdWords has conversion tags. Facebook has engagement and conversion tags. All of the tags are required to report website engagement.
And they add clutter to websites.
Google Tag Manager
It also includes many third-party tags.
Adding a Tag
As an example, I’ll explain how to replace your current Google Analytics tag so that it fires in GTM.
1. Ensure the GTM snippet is on all pages of the website. Find instructions in GTM by clicking on the container ID in the top-right, which starts with “GTM.”
The instructions will display after clicking on the container ID.
2. Go to the “Variables” section on the left side of GTM.
Add the new variable to GTM by clicking User Defined Variables > New.
Select “Google Analytics Settings” as the variable type and enter your Google Analytics property ID. Click “Enable Display Advertising features” if appropriate.
You may have additional settings to add or configure as you add more tracking capabilities. I’ve not included more to keep this example simple.
3. Go to the “Tags” section on the left side of GTM.
Add the Google Analytics tag to GTM by clicking on “New.”
- Name the tag “GA Page Tag” or whatever you wish.
- Select “Universal Analytics” as the tag type.
- Select “Page View” as the Track Type.
- Select “Google Analytics Settings”(or whatever you named it) as the settings variable.
- Under “Triggering” select “All Pages,” which means the tag will fire on all of the pages for which the GTM container is present.
4. Publish your work by clicking on “Submit” in the top-right of the page.
5. Use Google Analytics Real-Time to confirm GTM is functioning. A quick glance at the Real-Time report in Google Analytics will show visits on your site, which confirms that GTM is firing your Universal Analytics Page View tag. You may want to click on many pages of your site and then go to Content reporting in Real-Time to make sure your activity is reporting.
If you include page view tracking in Google Tag Manager, make sure that ecommerce tracking is not impacted. Some shopping cart platforms include ecommerce tracking in the page view tracking code. If in doubt, create a new property in Google Analytics to test fire the page view tracking in GTM.
GTM can enhance Google Analytics reporting beyond sessions, page views, and transactions. GTM itself will not report advanced data, but it can send the data to Google Analytics via Event tracking and other reporting. Consider these examples.
- Clicks on home page promotions. Identify which promotions get the most clicks and how well they drive conversions.
- Video plays. Use the built-in YouTube video tracking tags in GTM
- Reporting errors from submitting forms, such as logging in and newsletter signups.
- Reporting errors from checking out, such as credit card entry forms.
Using Google Tag Manager can involve a steep learning curve. But there are resources available to help. First, try Google’s documentation on Tag Manager via the help menu in the three-dot icon at the top right.post was originally published here