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
-
Filter staff IP address in Analytics
Hi, I'm trying to filter staff visits from Analytics on a new view. IT have given me an IP address range and I have found the following advice: "For an IP address range, you’ll have to select Custom Filters, then choose Exclude, and IP Address from the dropdown list. Then, enter a regular expression for the IP Address" If this is correct, how do I write the IP address range 1xx.xxx.xxx.160 - 1xx.xxx.xxx.223 in RegEx? Thanks
Reporting & Analytics | | Houses0 -
How would I create this type of report in Google Analytics?
I work for an e-commerce site. I would like to run a weekly report to see what every category pages increase and decrease for pageviews would be. How would I do that?
Reporting & Analytics | | EcommerceSite0 -
Google Analytics and Webmaster Tools Setup for Agencies
Hi, As agencies, what are people finding to be the best practices for allowing multiple members of the agency's team to access client WMT and GA data? Have a generic "analytics@myagency.com" account that's used for the shares, that anyone in the agency can use as needed (limited, of course, not admin). Have the individual person at the company use their company email for the share for each particular client? employee@agency.com. Yet what happens when we need someone else to check the GA or WMT data? Any advice is much appreciated.
Reporting & Analytics | | Titan552
Thank you!0 -
Cant find eCommerce in Google Analytics
Ciao from Wetherby UK, Ok ive done this a zilion times but since Google analytics upgraded I cant find how to upgarde the tracking code to ecoomerce tracking. Before i would just tick a box and Boomshanka the code would change. Whats got me worried the tracking codes has not modified to ecoomerce is because it looks like this: Heres the tracking dashboard with no sign of ecomm tracking customisations:
Reporting & Analytics | | Nightwing
http://i216.photobucket.com/albums/cc53/zymurgy_bucket/wheres-ecom-tracking_zps0ef4b8c6.jpg And i cant see any means to modify it for ecoomerce tracking 😞 Any insights welcome!
Grazie tanto,
David0 -
Transferring of analytic data
Hey SEOMoz community, Question, we just purchased a business and while we didn't keep their website content we acquired their URLs and will be rebuilding the site. We've asked for and been denied any historical analytic data e.g. they wont transfer admin rights over to us. Is there anyway to access historical data without being made an admin? or do we start from ground zero. One of the reasons we're being given for not being allowed access is that "Google analytics and the associated keywords are the vendor's intellectual property" - given that we brought the brand doesn't that IP transfer over to us anyways? Thanks, PC
Reporting & Analytics | | PC-QSG
(Long time forum stalker, first time poster)0 -
Google Analytics traffic hijacking?
Ran into something interesting a week ago - the same Google Analytics code was installed on two different sites by accident. The account was reporting traffic from both domains. Haven't found a definitive answer on how to stop this yet if it were to be used maliciously?
Reporting & Analytics | | khemistry0 -
Google Analytics Report throws up Google as a referrer
Good morning from Wet & Windy 12 degrees C wetherby UK... Using Google analytics I've noticed in the traffic sources refferer subsection some traffic is categorized as originating from Google. Whats puzzling me is.... I know a huge amount of traddic stems from Google but as the below screenshot illustrates only 21 visitors come from Google: http://i216.photobucket.com/albums/cc53/zymurgy_bucket/google-refferal-sources-top-levelcopy.jpg And when i drill down some are coming from Google mobile 😞 http://i216.photobucket.com/albums/cc53/zymurgy_bucket/google-referral-sourcescopy.jpg Is traffic categorised as Google referrer down to Google hiding searches via ssl as explained here: http://i216.photobucket.com/albums/cc53/zymurgy_bucket/google-referral-sourcescopy.jpg Any insights welcome 🙂
Reporting & Analytics | | Nightwing0 -
Google Analytics and backlinking
Let say I have my main site and my secondary site that is optimized for a slightly different set of keywords (nonetheless still relevant to my main site). I have several links from a secondary site to my main site. Secondary site is on a different C-block. Do you ladies and gentlemen think that if I put both websites under the same google analytics account, Google is going to penalize me or remove some of the juice that is flowing from secondary site to the main site because it would detect through GA that both sites belong to the same entity?
Reporting & Analytics | | SirMax0