Google Ecommerce Tracking
-
Hey all,
I have GTM set up on a site and I am trying to enable the Ecommerce tracking functionality.
My problem is this, I have access to the basket variables all they way through the checkout funnel to the payment page, but they are then lost on the payment completed page. Does anyone know how I can pass the value of the basket across to the payment completed page so I can mark the transaction completed with an actual value present. I cannot post hidden input fields or change the url get variables as the third party system that us used fails.
I have thought maybe javascript calls, but not managed to get to work as yet. Can the Google session pass and hold them in the cookies that are set?
Any help greatly appreciated.
Cheers
Tim
-
Hi Tim,
I am happy I could be of help. I ran into a similar issue and that was the fix it was good timing.
Let me know if there's anything else I can do.
All the best,
Tom
-
Cheers Tom, this does look like what I am after - will feedback if I get it going
-
Cheers Guys, i've looked into the methods before, just always struggled integrating into the sites poor architecture. Will try again. Much appreciated.
Tim
-
Hi there.
It seems like you need to look into Enhance Ecommerce tracking from GA.
Here is the link: https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce
Hope it helps.
-
Your transactional tag needs to fire on {{event}} equals transactionComplete. This way you’ll be 100 % certain that the data is in
dataLayer
by the time the tag fires, because the trigger event is pushed at the same times as the transactional data!dataLayer.push({
'ecommerce': {
'currencyCode': 'EUR', // Local currency, type string
'impressions': [
{
'name': 'Triblend Android T-Shirt', // Name, type string
'id': '12345', // ID, type string
'price': '15.25', // Price, type string
'brand': 'Google', // Brand, type string
'category': 'Apparel', // Category, type string
'variant': 'Gray', // Variant, type string
'list': 'Search Results', // List, type string
'position': 1 // Position, type number
...https://www.savio.no/analytics/easier-enhanced-ecommerce-product-promo-tracking
dataLayer.push({
'ecommerce' : {
'purchase' : {
'actionField' : , // WRONG! This key requires a value
...
});
dataLayer.push({
'ecommerce' : {
'purchase' : {
'actionField' : '', // BETTER!
...
});For example, if you’re using a Custom HTML Tag to build your eCommerce
dataLayer
, add an ‘event’ push in there, which you’ll then use as the firing rule for your transactional tags:case 'cart': // Track Add to Cart clicks
dataLayer.push({'event':'addToCart',
'ecommerce':{
'add':{'actionField':{'list':pid.list},
'products': [{
'name':pid.name,
....code................
'dimension1':pid.dimension1, // Discount in percent
'metric1':pid.discount // Discount amount
}]}}});
..........more code......................http://www.simoahava.com/analytics/track-content-enhanced-ecommerce/
http://www.simoahava.com/analytics/enhanced-ecommerce-tips-and-learnings/
https://www.savio.no/analytics/easier-enhanced-ecommerce-product-promo-tracking
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
-
Better use Google Analytics? This is for Conversion Rate Optimization purposes
Hi Moz-ers, I've had much help from the Moz community and hoping you can help me out on this one too. I would like to track everyone who visits our town listing pages. We operate much like ratings and reviews websites like tripadvisor and booking.com. What is the best way to track visitors coming to our listings pages only (for example tripadvisor shows top 10 hotels in London.) I would like Google Analytics on London and all other towns including Birmingham, Southampton ect... Is it possible to set up Google analytics to track this? These are our highest volume pages so having an idea of the traffic behaviour is crucial for SEO and Conversion Rate Optimization. As usual, looking forward to the advice we receive! Thanks,
Conversion Rate Optimization | | Eric_S
Eric0 -
UX and/or Conversion Help for Ecommerce
Good Morning, We recently revamped and relaunched our ecommerce website and we believe we have built a great site that is easy to navigate, find what you're looking for, get all details, and purchase. We were hoping to get some of the Moz community to take a look at the site and let us know if you have any suggestions on usability or conversion techniques that we could implement to improve user experience and amount of orders placed. You can view our site here Looking forward to your feedback. Thanks in advance
Conversion Rate Optimization | | Prime850 -
Tracking Facebook Mobile Visits to Desktop Conversions?
Hi. If I set an ad in Facebook, I can obviously track visits, conversions and so on from that ad and see if they where mobile or desktop. However, how do I, if possible track a mobile visitor who the converts on a desktop? Eg. I go on XXX Facebook Ad on my mobile whilst in work, look around. Like what I see. Then I go home from work, open my laptopn and go on XXX website and send an email enquiry form in. Is this possible to track? Thanks
Conversion Rate Optimization | | YNWA0 -
Event Tracking or Goal Tracking?
Hi guys, What do I need to implement if I want to track sign-ups (and where this successful transaction/goal came from) and email inquiries (from a contact form)? Event Tracking or Goal Tracking? If you can share some of your guides or blogs/articles you found online, that would be great. Thanks in advance! 🙂
Conversion Rate Optimization | | esiow20130 -
Can using the Google Keywords tool and/or SEOmoz cause problems for my company's IP address?
I just started with a company a few weeks back, working on-site doing SEO work. I've been using SEOmoz as well as Google Adwords' Keywords tool. I just got a message from one of our reps saying that people at the office (and this is a huge office) have reported tons of CAPTCHAs being thrown up frequently. I told them I had been running searches with Google Keywords tool and SEOmoz, but would that really cause that much of a problem? Is there anything I can do in order to fix this, some keyword finders that won't get me in trouble, etc.?
Conversion Rate Optimization | | SmokewagonKen0 -
Google Analytics e-commerce tracking on multiple pages
Hi, I work in the airline industry and we are trying to implement Google analytics on our site. We are at the stage of getting e-commerce tracking setup. The problem we face is that we have multiple receipt pages (booking confirmation pages in our case) instead of just one as most carts would have. These are completely independent of each other. My question is can I use the same e-commerce tracking code on each page or do I need to setup multiple trackers. I reviewed the documentation here: https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#multitracker however I'm unsure if multiple trackers are needed when using it on multiple pages or is this just for multiple trackers on the same booking confirmation page. any help on this would be greatly appreciated
Conversion Rate Optimization | | aerlingus0 -
How can I track the traffic source/keyword of form submissions?
I'm using Google Analytics on www.nhfinehomes.com and would like to track the source of leads submitted via form submissions. Ideally, I could track if the lead originated from organic search (and what keyword phrase), PPC, referral links, etc. Is this possible with Google Analytics and if so, can anyone point to some documentation on how to do this or better yet someone who can help me set this up? This site is running ASP.NET and uses JQuery so there is not a 'traditional' thank you page that I can reference. I'm not a programmer and do not pretend to be one! Thanks in advance. Link
Conversion Rate Optimization | | LinkMoser0 -
Tracking Sales to Sources
We're trying to set up a commission system for the different people who contribute to our site. We just want to see a list of transactions and the path back to source for all of them. We haven't been able to figure it out and know other ecommerce sites have had to have figured this out.We have GA Ecommerce tracking on. How can we find last months sales: source / medium / keyword / landing page / revenue / etc Sorry if this is an obvious question. We have spent a lot of time trying to figure it out.
Conversion Rate Optimization | | chrishansen0