Two Analytics Code
-
Hi Moz Community!
I've been working with a client’s website and found it has 2 analytics code with same ID. I need to understand which one is correct before removing anyone of them, below are the both scripts.
First one
Second one
Any help would be appreciated!
Regards,
S
-
I understand, but my point is, while replacing the outdated analytics code, with same UA Id, is this going to affect eCommerce tracking?
-
Hi,
For e-commerce tracking two options are available - you could use the "normal" e-commerce tracking or the enhanced e-commerce tracking. Enhanced e-commerce is the newest & most advanced way of tracking.
Both would require some additional coding - you can find how to implement them on the links above - or check these articles (Understanding enhanced e-commerce tracking & Implementing enhanced e-commerce tracking).
Hope this helps,
Dirk
-
Thanks Dirk,
The code I am talking about is for E-commerce website, By changing the code, dose it effect on eCommerce tracking or Google tag manager?
-
Hi,
Both codes are outdated (the first one seems to miss a part) - it's better to use the universal tracking code which looks like this:
This script should be put just before closing the head tag.
You can check the implementation with the Analytics Chrome plugin to see if everything is ok: https://chrome.google.com/webstore/detail/page-analytics-by-google/fnbdnhhicmebfgdgglcdacdapkcihcoh
Rgds,
Dirk
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
-
Pandora in Google Analytics
Hi Mozers, in Google Analytics our ads are registering a 10 second page duration and a 90% bounce rate, which is pretty atrocious. My questions are: Organic page duration is 3:15 minutes, and Social + Referral are similar. Yet Pandora is bringing the average time on site way down, to less than a minute. Will those paid ad metrics be factored to the User Behavior and therefore negative affect our overall rankings? In other words does Google now see our page duration as less than a minute? The Pandora rep says that Google Analytics and Pandora have "systemic issues" such that GA is very inaccurate with Pandora metrics. I find that difficult to believe. Any insights here? Thanks all! Jane
Reporting & Analytics | | CalamityJane770 -
Clarification on Analytics Goals & Funnel Logic
I have a few questions about funnel flow and how my goals are tracked. 1. My goal is a user completing a contact form, form.html. Upon completion, user is redirected to thanks.html, ending the flow. Every page header contains a direct link to form.html. Does this mean every page on my site is considered a "step" leading the user to the contact form? If so, do I list each page containing the form link in the steps, or only form.html? 2. If the above isn't correct, how do I track how the user wound up completing my form. I'd love to know which pages are performing better and leading to more sign-ups (goal completions). Currently I think I'd only be setup to know when a user is on the form.html page and whether they complete it or leave, not how they got to form.html in the first place. 3. My .html pages are actually embedded via iFrame on WordPress pages. My form.html page is hosted on .com/quote and upon completion, form.html redirects to thanks.html within the iFrame (.com/quote remains the actual page). I'd assume this is going to throw off my stats since the physical .html pages don't have Analytics code embedded? 4. How would I track different CTAs on the same page which lead to the same goal? For example, header vs. footer CTA's to the same sign-up sheet. Let me know if you need anything clarified. Thanks a lot for the help.
Reporting & Analytics | | kirmeliux0 -
Conflicting data in Google Analytics
Hi Guys I've been looking at the data for a client in Google analytics and I was wondering if anyone knows why some of the data doesn't tally up. In my case its the following: Under Aquisition
Reporting & Analytics | | Relative
No of Sessions for a Keyword shown in Organic Search tab (compared to)
No of Clicks for a Query in the Search Engine Optimisation tab For example, for a brand term, Google are showing 17 Sessions in Organic Search.
For the same term Google are showing 90 Clicks in the Queries section of Search Engine Optimisation OK, we know that Google are a little cloak and dagger regarding keyword data but surely Sessions and Clicks for the same keyword should be identical unless I'm missing something.0 -
Google Analytics - Adding a sub-domain
Hi I have a google analytics query.
Reporting & Analytics | | Niki_1
I have a main site with a google analytics tag and I have 2 forms that sit on a subdomain with a different GA code. As I would like to measure end to end tracking, I would like the same GA code on the subdomain. What is the best way for me to implement this? Would I need to make some changes to the GA code that sits on the main site or can I add the the GA code from the main site onto the subdomain? Thanks0 -
Google Analytics Myth?
Dear Moz-members, I have read several discussions regarding not to implement Google analytics on your website. Reason: Google is tracking your website behavior, for example you have a high bounce rate it will affect your rankings negative. See it as we are opening the doors too much to Google so it can have a negative impact on your online business, especially when your site is new and you are still building your credit. Because of this i have not chosen to install GA. What is your experience with this? Most of the time if i read analytics posts at Seomoz, people do have GA installed. I am also in doubt whether to switch over at GA, but then again mine site is relative new and i am still working on the negative bounce rate/daily visitors. Would like to hear from you pro's whether this is a myth or not 🙂 Thanks!
Reporting & Analytics | | mcweb0 -
Google Analytics "Undetermined" Keyword
Google analytics is suddenly showing a new keyword "undetermined". Traffic Sources > Sources > All Traffic with the primary dimension set to Keyword. It's currently our 13th keyword and it is displayed without parentheses around that you see with (not provided) or (not set). Anyone have any idea what this is? Thanks!
Reporting & Analytics | | Morris770 -
Viewing stats for a single webpage in Analytics
I have Google Analytics and can't figure out how to generate stats for a single page on my site. I would like to know what websites are referring this page, time on site, unique views, etc.
Reporting & Analytics | | StreetwiseReports0 -
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