Tag Manager & Universal Analytics Code - Do you need both?
-
Hi Mozzers
I've created a container for a domain in Google Tag Manager. Within that container I've created a tag for universal analytics with track type "Page view" and the firing rule "all pages".
Can I then replace the Universal Analytics code with the tag manager code? Would it still track all the normal data in Google Analytics?
There are no events setup up yet so that's not a concern but there are goals setup tracking which are triggered by a page view. Would they be affected?
Thanks
Anthony
-
Yeh that's the same tag I create
-
I'm not sure I just know from experience. The first tag I create when I make a container for a new site:
Name: Page Views
Tag Type: Universal AnalyticsThen i set the tracking id there.
It gets the all pages firing rule and then since I use WP for a platform I also create blocking rules to eliminate admin and login views./e I should be more clear and say that it does not replace but the two tags will both be present it's just that the tag manager code snippet you maybe pasted right over the old analytics one now inserts any required analytics code for you.
-
Thanks Mark - appreciate that answer.
The firing rules are set to all pages.
I'm amazed that I couldn't find this simple answer in the Google documentation. Unless I've missed it and you can direct me to where it says tag manager code replaces the universal analytics code?
-
Yes you can remove the original Ga code in exchange for the tag manager container code and it will handle the rest.
Your goals will not be affected as long as you have your firing rules correct in tag manager.
Highly recommend the Chrome Extension Google Tag Assistant to make sure you get things the way you would like.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Different statistics in Google Analytics
Hi! A client of mine is having some trouble on his Google Analytics overview. When he checks the yearly report with number of visitors, new visitors, returning, ... he gets statistics that doesn't match mine. Also, he gets a notation from Google that no hits were fired, although the script is still there. On the other hand, I (logged in with another account) am seeing all statistics correctly. FYI: no filters were installed, nor segments, ... Why does the client see different and incorrect statistics? There should be a setting or something I'm overseeing. Hope you guys can help.
Reporting & Analytics | | conversal0 -
Huge Analytics discrepancy when I turned off Analytics Module & Turned on GA via GTM
Hello, I was running universal GA via a GA Drupal module. We setup Google Tag Manager and setup a GA tag to run through GTM. When we pushed the GTM container live our Real Time was at around 1900 and when we turned off the Drupal module the Real Time was reporting around 1100. After 24 hours the sessions for that day were about 100k lower than what they usually are. Any ideas Why the larger discrepancy? Any places that are obvious to look? *I didn't setup the original Drupal GA module, nor do I know who did. Thanks
Reporting & Analytics | | JJLWeber0 -
How drop off works in google analytic for enhance ecommerce?
Hello Guys, I have implemented enhance ecommerce ( i.e. - https://developers.google.com/tag-manager/enhanced-ecommerce ) Now i have query how drops off actually works? Like i visited the my site, then product page then checkout step 1 page after that i close the checkout step 1 page that means checkout step 1 drop off will appear in google analytic? right? John
Reporting & Analytics | | varo0 -
Goal Totals in Google Analytics
How do I get a cumulative tally of all the goals reached in google analytics? I've been using the percentages currently, but I was wondering if there was an easier way. Thanks
Reporting & Analytics | | OOMDODigital0 -
Subdomains and SEO - Analytics & Webmaster Tools Setup Help
Any advice on the following greatly appreciated: How to get multiple subdomain data into 1 Google Analytics profile? Can we get multiple subdomain data into Google Webmaster Tools (and if so how?) or do we need to set GWT up per subdomain?
Reporting & Analytics | | AndyMacLean0 -
How to compare Goals in Analytics
I setup LivePerson web chat on my site. In doing so I integrated it with Google Analytics as a conversion goal so I can track the visitors that engaged in chat. I want to see the affect these chats have on my other conversion goal, a completed lead. How do I figure out the conversion % of new leads for people who have enaged in web chat vs. those who haven't?
Reporting & Analytics | | TheDude0 -
Analytics giving crazy impossible data?
When I look at my Analytics using any of my segments, they don't work. It shows zero visits for the segment until April 30th, then the visitors for the segment shoots up to above the number for all visits! Anyone else experiencing this bizarre data?
Reporting & Analytics | | mascotmike0 -
Mobile and Google Analytics
As my mobile numbers are going up in Google Analytics I'm trying to figure out what phone runs what browser. I see that 93% of mobile users have Safari which I believe is iPhone, iPad and iPods. There is a 6% usage of "Mozilla Compatible Agent". What cell phone would this be?
Reporting & Analytics | | LabadieAuto0