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
-
How to uncover GA "Not Provided" organic keywords?
Hello, Google Analytics has a lot of keywords which are tagged as "Not Provided" So how can i uncover what these are? Otherwise how do i know which organic keywords are doing well or not?
Reporting & Analytics | | Riz_Khan0 -
Domain Change Post Mortem
Hello, my company changed our domain 2 weeks ago and we are just starting to see traffic level back out, except for Organic. The site is on shopify so it made switching the domain pretty easy, as well as the 301 redirects (no url structure changes). We've taken all the proper steps with google/bing webmaster tools as well as monitoring 404's and 301 testing and don't see any red flags. Does anyone roughly know how long it takes for 301's to re-index and domain authority to start building back up for our new domain? Our old domain was about 13 years old and the new one was parked for quite awhile. p.s. I also noticed a lot of our traffic ending up as referral from our old url. I was able to wipe the sessions from analytics which cut it down, but will this persist for the foreseeable future? Thanks!
Reporting & Analytics | | SchoolhouseElectric0 -
E Commerce and cross domain tracking on universal analytics?
Hi Mozzers, I am running into an issue where my client's website ( can refer to domain.com) uses a third party checkout site called rezovation that we can refer to checkout.rezovation.com: I went through this doc here https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain and https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce (for universal analytics) and I still find it confusing so here are my questions: According to my understanding I need a customized GATC to link both domains checkout.rezovation.com and domain.com? If yes(above), do we setup one customized GATC for cross domain tracking on all pages from checkout.rezovation.com and domain.com? if it is the case can someone provide detail steps on how to set it up ( I am not a coder so the easier the guideline, the better) Once cross domain tracking is set up, e commerce tracking code should be only on thank you page should be looking like the image below? Should i add manually all the extra code for the ecommerce tracking code or I can get it done via a third party website? Thank you guys! oPgn8P4.png
Reporting & Analytics | | Ideas-Money-Art0 -
Google Analytics Goals - Different Domain
Hi, We currently need to setup a goal that involves a different domain. Any guidance would be greatly appreciated. more info: the checkout process is redirected to a secure.domain Just let me know if I can provide any additional info that may helpful.
Reporting & Analytics | | opusvo0 -
What's the problem with this code for Google Analytics
Hello, I'm using this code in my thank you page to track ecommerce sales in GA. The problem that I'm having is that in the google event the _trackPageview doesn't register the proper page but puts the url of the ecommerce website. The transaction is properly tracked. Any ideas of what could be the issue looking at this code? Maybe there could be other code could be causing the problem? Thanks a lot.
Reporting & Analytics | | nagar0 -
What is domain authority?
Hi, I am very new to SEOMoz and just getting to know the terms in the thrown up in the results. Can you tell me what domain authority actually is and how can I increase it? thank you louandel15
Reporting & Analytics | | louandel150 -
Linking domains vs Inbound Links
Hello, Whats the diference between Linking domains and Inbound links in Open Site Explorer? And also with is most important to analyze? Tks in advance! Pedro Pereira
Reporting & Analytics | | PedroM18 -
Editing Google Analytics eCommerce Javascript for Volusion
Does anyone know how to edit the ecommerce javascript with Volusion dynamic variables? I thought I did it correctly but none of the information got recorded in GA. It recorded that there was a transaction made but not info on the purchase price, order #, etc. This is the current code I am using: NOTE: In Volusions customer support center they provided this information: Where Order-Specific Information is Generated Order-specific information can be generated by JavaScript on the OrderFinished.asp page within Volusion. On this page, two JavaScript arrays will be initialized that advanced users may need to be aware of. The arrays and their contents are as follow:
Reporting & Analytics | | jhooley
Order Array Contents Order[0] = Order ID
Order[1] = Unused
Order[2] = Payment Amount
Order[3] = Affiliate Commisionable Value
Order[4] = Sales Tax
Order[5] = Total Shipping Cost
Order[6] = Billing City
Order[7] = Billing State
Order[8] = Billing Country OrderDetails Array Contents OrderDetails[X][0] = Order ID
OrderDetails[X][1] = Order Detail ID
OrderDetails[X][2] = Product Code
OrderDetails[X][3] = Product Name
OrderDetails[X][4] = (unused)
OrderDetails[X][5] = Product Price
OrderDetails[X][6] = Quantity Note that in the above example, X refers to a line item number (beginning from zero). Note that there can be multiple Order Details arrays - one for each item contained within an order. I'm a newbie at Analytics installation and could really use any help. Thanks!1