GA Tracking Code for Ecommerce cross-domain tracking
-
I need help.
Scenario:
-
Microsite: www.example.com
-
Prospect clickc "buy" button and is taken to 3rd party ecommerce cart (e.g. shop.domain.com)
Questions:
- Will the Google Analytics Code sample below allow us to track what we need? We need to exact syntax code for the micro site.
- What is the specific code that needs to be added on the 3rd party shopping cart pages.
-
-
That looks similar to a setup we implemented recently and it worked fine (eventually).
We did have an issue in the beginning though because the original GA module the site had installed was not using the asynchronous GA code, so it wasn't passing it correctly. The older GA script uses different code to track across domains so check that if you run into problems.
We found the older version tracked conversions/goals fine but not the ecommerce stats.As Erica said, you might want to check the cart help forums - they usually have very clear troubleshooting instructions because this is an issue that comes up often.
-
What shopping cart are you using? I know that pinnaclecart ( my favorite eCommerce platform ) has a out of box solution. Maybe I can perform a search for you?
-
Thanks Erica,
I wish it was this easy. It's not an off-the-shelf cart. Unfortunately, NDA's prevent from providing additional details but we are working with a Google Certified Analytic consultant - and we're making a little progress.
Thank you
-
Adding the tracking code should track whatever you need to be tracked.
Most 3rd party shopping carts provide information on how to implement the tracking code, and since GA is one of the most popular, they may even have any easier solution (like "copy & paste your unique GA id here" solution) than you needing to copy & paste the code in.
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
-
Connect AMP to the same website GA property or not
Hi, Asking this on behalf of a client:"I know Google recommends setting up a separate GA property for AMP which they note in a few places:https://developers.google.com/analytics/devguides/collection/amp-analytics/https://support.google.com/analytics/answer/6343176?hl=en
Reporting & Analytics | | MediaCause
From what we can tell this is because the tracking for AMP will measure things differently than the current analytics.js library. I also think it's related to the GA cookie and how it's set differently for AMP pages.But won't this cause drop-off in user journey information? For example, if a user views an AMP blog article but then clicks to our site from a link within the article. I think we would then track this as two separate users and the pages/visit would be off. I found this article which explains a tech way to connect AMP to the same website GA property but it seems a little too much of a work-around:https://www.simoahava.com/analytics/google-analytics-client-id-amp-pages/ Do you think we should just do what Google recommends and set up AMP as a separate property in GA?" --> Does anyone know if there could be any issues with this workaround?Thanks,0 -
How to measure Seo Roi with GA?
Do you have any dashboard or suggestion to measure Seo Roi with GA? I want to create a report that makes visible these fields: Monthly increase in visits from Google Time spend on site Number of conversions Other things that can i add?
Reporting & Analytics | | markovald0 -
How do I get compete.com to track my data
Is there a tracking code for them? I cannot find a way to get them to track my site data. I know it seems trivial, but it is sadly a big tool in my industry so I need to get my data on their site
Reporting & Analytics | | Atomicx0 -
Will 301 redirects (Same Domain) show as referral traffic in Analytics?
For an eCommerce site we have 301'd legacy product pages to new product pages. Is all that traffic going to show up as referral traffic from our own domain in Google Analytics? If so, is there any way to preserve original source/medium info or will all the source/medium info be our own domain since there is a 301 redirect?
Reporting & Analytics | | bozzie3111 -
Domain Sub folder tracking from Google webmaster tool
I have created separate google webmaster access for this sub folder http://lineonebus.com/content/ Original domain http://lineonebus.com/ Search results in webmaster shows no search queries though this subfolder created in wordpress is ranking for some keywords.
Reporting & Analytics | | csfarnsworth1 -
Google Analytics Goal Tracking Not Working
I am trying to install goal tracking for a client to measure leads from SEO, and I'm running into problems with the Google Analytics goal tracking not working. The only thing that I can think of that is preventing goal tracking from working is that the URL confirming page request URI looks like "contact/#contact-form-4475" and perhaps the hashtag is causing problems. I wanted to ask the community if any of you have run into basic conversion tracking problems like this, where you need to track form fills on a website via a confirmation URL/destination URL goal, and what you did to solve it? I appreciate any input on how to get data on conversions either by fixing the goal in GA or using a different tracking tool. Thanks!
Reporting & Analytics | | williammarlow0 -
301 Tracking with Google Analytics hurts SEO?
Hey guys, I have an old-domain.com and a new-domain.com. old-domain.com has reputation and through a 301 redirect it's handling it over to new-domain.com. I want to know how many people still visit old-domain.com and track this with Google Analyitcs. I read the best solution for this would be a Google Campaign URL. My question: Does a URL like "http://www.new-domain.com /?utm_source=&utm_medium=redirect&utm_campaign=" hurt the effectiveness of the 301 redirect?
Reporting & Analytics | | optimiert-es0 -
How are 301s reported in GA?
Does anyone have any insight on exactly how on-site 301s are reported in Google Analytics? My direct traffic seems to climb at the same rate as my organic with absolutely no off-line promotion. I have a suspicion that the 301s that I have built to re-coupe traffic being sent to old pages are being reported as direct. Any validity to this?
Reporting & Analytics | | NextGenEDU0