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
-
Phantom search results showing up in analytics
Hi, I'm getting these weird phantom search results showing up in my analytics account which is skewing my results. I have a wordpress site, and I do have some custom search results pages, but analytics is telling me these hits are coming from google- which I doubt. The end of the query string (&cat=plus-5-results) is not coming from a link created within my site. Anyone have any ideas? Failing that, would somebody be kind enough to explain how I can ignore these hits, but retain other, valid search result requests? Thanks reading! Will Screenshot%202019-05-16%20at%2022.32.10.jpg
Reporting & Analytics | | madegood0 -
Google analytics
hello there, While Adding My website in Google Analytics,It is not Showing India Country in list. What i can do to add My account in it?? Have requested Google, But Got No response.any body can help please . Thanx in advance,
Reporting & Analytics | | iepl5
Falguni0 -
How is Google Analytics defining page depth?
We run two websites and as part of our KPIs we are treating those who visit 3 or more pages of our website as a client served. As a digital team we are not convinced that this is the best metric to use as the improvements we are making to the sites mean that people are able to find the information quicker. Additionally other organisations including forums etc link to us so those users will get the info they need in one click. What I would like to know is how Google calculates page depth in GA. Are they treating the landing page as ground zero and then when users clicks a link they go one page deep? Or is the landing page, page depth 1 . Is page depth a measure of how many clicks a user needs to find their information?
Reporting & Analytics | | MATOnlineServices0 -
Google Analytics View Filters
Using the same GA property, I would like to set up three filtered views: 1. Tracking across one subdomain and one primary domain (example: shop.example.com & example.com) 2. Track only primary domain (example.com) 3. Track only subdomain (shop.example.com) Can this be achieved by using view filters? If so, how do they need to be set? Also, according to this article: https://moz.com/blog/cross-domain-subdomain-tracking-in-google-analytics, with cross domain tracking, I need to ignore self-referrals, which can only be done at the property level. If set up to ignore example.com referrals, will this cause problems with filter 2 and 3?
Reporting & Analytics | | Evan340 -
Track subdomain in analytics
Hi, Our jobs section has recently been moved on to a subdomain https://jobs.ourwebsite.co.uk/home.html which is handled by a third party. Our analytics for the jobs section was lost as no code was added to the pages. Previously it was part of the main site. How do I track it as a subdomain so that it appears to be part of our main site? We have the old GA and universal GA code on the site Thanks
Reporting & Analytics | | Houses0 -
Google Analytics Average Position
I'm looking at Google Analytics -> Acquisition -> Search Engine Optimization -> Queries reports. I'm looking at keywords and the average position. What Google reports and what I see in a Google incognito search is different (usually my search is much lower). For example, for one search term, Google reports 5.8 average position and every time I search it is 8. My local result is 4. Anyone know why this is? I'm wondering if Google is averaging the Local results into number?
Reporting & Analytics | | CalicoKitty20000 -
Goal in Analytics - mulitple sources for the destination?
Hello, guys. I am trying to find information without luck for my case - I have a contact form, which is placed on many inner pages (about 40). My question is - how do I make a Goal that has simultaneously all the different sources at once (as steps probably) - because there is a max limit of goals, and because analyzing them separately will take much time. When a form is submitted, a /thankyou//?recordid=0d53415b-3e6b-4a32-add7-1586a4737a89 (or similar URL) appears.My guess is that I use a regular expression of ^/thankyou as a Destination, but I do not know what to write in steps. Thank you all in advance, I hope I find a solutions of this annoying problem..
Reporting & Analytics | | petbiv0 -
Funnel Visualization in Google Analytics
Hello. I have a question about funnel visualization in Google Analytics where there is an eCommerce goal (i.e. add to cart, shipping, purchase) with the first step being mandatory. Issue:
Reporting & Analytics | | Unity
The amount of completed purchases reported in GA doesn't match the actual transaction figure via the eCommerce platform. Question:
I was wondering if anyone knows why this occurs? I have a few ideas on why however I haven't been able to locate any supporting evidence. So I was hoping to generate a few ideas from the SEOMoz community to help me investigate further. Any ideas welcome! Much thanks,
Davinia0