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
-
Tracking Product Codes
Hey Mozzers, We are improving our B2B site by adding product codes to headings & meta information etc to gain some traction ranking for our own products and those supplied by others when searched for by product code. Almost immediately we are hitting the top half of the first page for most of these and seeing some nice results. We would like to track our placement for these product codes in google but feel this would be a waste of our Moz Keyword limit and we really dont need to check them once a week, just one a month or so. Has anybody got any methods of tracking our ranking for a a big list of keywords say once a month which isn't too labour intensive? Many Thanks
Reporting & Analytics | | ATP0 -
Google Analytics goals by source report?
Hello everybody. Is there way in Google analytics to create report on what goals have been completed per each source? Example: Lets say I have 3 goals: Subscription, Purchase, Quote. How can I get report, saying something like this: google / organic - Subscription - 5 conversions
Reporting & Analytics | | DmitriiK
Purchase - 3 conversions
Quote - 10 conversions and so on. P.S. Basically, I want the reverse of standard Google Analytics goal completions report, where you can click on goal and see which sources/mediums completions came from. I'd like to do the opposite - "click" on source/medium and see which goals have been completed. Thanks0 -
Universal Analytics - is it awarding traffic incorrectly ?
A few days ago deployed a new site. A funny thing happened within one day. Google Analytics commenced reporting Organic traffic as lifting by 25%. At the same time Google Analytics commenced reporting that direct traffic dropped by 25%. All other traffic sources remained at the same level. This is all being reported through GA Universal. Has anyone experienced this before? Any advice is appreciated. Also noted that with Google Webmaster is reporting, since the day of the new site deployment, a 40% drop in impressions and click. Reported referrals on this deployment day also went through the roof. All of the Google tools I am depending on are not supporting my discovery of a solution to this. If anyone has been through this on universal analytics or traditional analytics please help! Offering lots of good karma points in return. Cheers.
Reporting & Analytics | | Oxfordcomma0 -
Re-classifying a Traffic Source in Google Analytics
Hey All, I think it's inside of the Admin section of Google Analytics, right now I have a traffic source from the domain of indeed.ca that is being classified as Organic traffic when it should be classified as referring traffic, how can I tell Google Analytics that all traffic from this source should be classified as referral traffic and not organic traffic? Furthermore, after I make this change, will Google Analytics re-classify my past data so I can do a proper analysis? I can't remember how to do this and any help would be appreciated! Thanks!
Reporting & Analytics | | EvansHunt1 -
Google analytic conversion code in a single wordpress page
Hello How can I add/place the Google analytic conversion code in a single wordpress page? Example: http://www.newsmilecostarica.com/thank-you/ Thank you so much Andy
Reporting & Analytics | | newsmile0 -
Transfer Google Analytics data from one user to another?
Long story short, two weeks of analytics data are stored on a different profile from the rest of the year's data. Is there a way to export all data from a date range, and then import it to another account? Thanks for your help.
Reporting & Analytics | | AmericanOutlets0 -
Impressions in Google Analytics
I am trying to compare SERP impressions in Google Analtyics between two different time periods. I want to compare the last two months, with the previous two months. Now this works fine when I go to Traffic Sources > SEO > Queries. Our analytics has been set up since early last year, so I cannot understand why, for a couple of weeks at the start of the previous two months, it is showing that I have less than 10 impressions per day, then in one day, it jumps to 22,000 impressions, and starts to show 'real' information after that... Very frustrating when I am trying to show how effective my work has been. Can anyone shed any light on this?
Reporting & Analytics | | MirandaP0 -
Individual or Separate Google Analytics Accounts for Each Country Location?
We have 3 websites. USA, Germany and UK. Currently our analytics account is set up with 1 account with each domain as a Profile. I am wondering if I would see more accurate results if I have them set up individually, under the same Google account, but different Analytic accounts. The reason I wonder is because I noticed when I was going through setting this up, it asked for each Country Time Zone for each domain. I was not sure if this was for me to see the times, or if this was to provide more accurate data. Maybe this is just a personal preference topic?
Reporting & Analytics | | hfranz0