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 -
Track bounce rate per PPC keyword
Hi all Wondering if anyone could give me a nudge in the right direction with this please. When running an adwords campaign is there a way in which one can track the bounce rate on the landing page per keyword sending paid traffic? I've had a play about in adwords and GA and couldn't find the right option. The site I am sending traffic to is not a ecommerce site so cannot set up conversion tracking so we are going to monitor the bounce rates of different keywords and drop the ones which are bouncing much higher than others as it seems better to invest the budget in those words which are keeping people on the page for longer. Many thanks Carl
Conversion Rate Optimization | | carl_daedricdigital0 -
Which eCommerce Platform?
Dear MOZ community members We currently run a custom built IIS/ASP/SQL Server system that is starting to fall apart and needs major overhaul. I'm currently evaluating a number of open source eCommerce platforms (Magneto, OpenCart) and would welcome any advice that some of you may have. We are not a major brand, but we have a good name in our field which we wish to maintain and we ranking very well for our top phrases despite not having SEO-friendly URLs amongst other things. I've downloaded Magneto and installed it on a LAMP could server and got it up and running. It looks very flexible, albeit a little bloated and I can concerned that it's a sledgehammer to crack a nut. Do any other small businesses have experience with Magneto? Thanks for your time! andy www.prendas.co.uk
Conversion Rate Optimization | | andystorey1 -
Adwords Tracking
Hi, With Adwords conversion tracking is it worth allow Analytics data in as well? Does that confuse the adwords tracking data? Does it only include Analytics data that has been set up for conversion tracking? I hope i am asking the right questions 🙂
Conversion Rate Optimization | | wood1e19680 -
Have Google Shopping show site listings instead of Amazon and eBay listings
An e-commerce site I'm currently working with also has storefronts on eBay and Amazon. When searching Google Shopping, their Amazon and eBay product listings come up but NOT their primary site's listings. Can anyone shed some light on how to a) feed the main site's products to Google Shopping and subsequently b) have Google remove the eBay and Amazon listings? Obviously, this would be a boon to business and hey wouldn't have to pay the Amazon and eBay fees associated with each sale. Thanks for any help!
Conversion Rate Optimization | | Nobody15330770827561 -
Testing Google Tag Manager
Is there a way to test if the Google Tag Manager is set up correctly? Am I right in thinking that the only code that will be output on the page will be the actual embed code, eg: SCRIPT REMOVED Cant work out if there is an issue with what has been set in the account of if there is a problem with how the code has been added to the page..
Conversion Rate Optimization | | edwardlewis0 -
How to track PPC conversions?
I use both adwords and Microsoft Adcenter. I am looking to be able to track my conversions from each PPC site. I do not have a "Thank You" or "Check Out" page that I can tag because any sales that I make are through clicks on a link that goes offsite to an affiliate company that I receive commission from. However, the link on my site is a "Buy Now" button, so to get some idea of which source is giving me better conversions I'd like to know whether adcenter or adwords is sending more people that end up clicking this link. Canb anyone suggest a way or a program to set up in this manner? Thanks in advance for your help!
Conversion Rate Optimization | | VictorVC0 -
Google adsense what is the best way to display the ads
Hi. I am using google adsense and trying to find the best way to have them on my pages but being knew i am not sure the best way to lay them out. I am playing around with the pages and would love to see some good examples of adsense pages that work. If anyone can give me advice on the following page and let me know what is wrong or right with this page to help me understand where i am going wrong, then that would be great. I am trying to sort it out so each page is set out the same. http://www.cheapflightsgatwick.com/news/easyjet-news/easyjet-tell-disabled-man-to-get-off-plane
Conversion Rate Optimization | | ClaireH-1848860