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
-
Google showing in snippets last individual rating instead of aggregate rating
the product pages of my ecommerce site contain schema markup.
Conversion Rate Optimization | | lcourse
according to rich snippet tool from google all looks fine and properly formatted
however in the SERP google shows the last rating in the snippet instead of the aggregate rating. any idea how to show the aggregate ratings? URL: https://www.humidordiscount.co.uk/adorini-triest-deluxe-rosewood-humidor below extract of schema code as recognized by the rich snippet tool: Product name:adorini Triest Deluxe Rosewood Humidor image:https://www.humidordiscount.co.uk/952-large_atch/adorini-triest-deluxe-rosewood-humidor.jpg description:High-quality multiple ..... brand [Organization]: name:Adorini offers [Offer]: price:141 priceCurrency:GBP availability:http://schema.org/InStock aggregateRating [AggregateRating]: worstRating:1 ratingValue:4.5 bestRating:5 ratingCount:460 review [Review]: description:It 's my first .... reviewRating [Rating]: ratingValue:4 worstRating:1 bestRating:5 author [Thing]: name:Alessandro M review [Review]: description:excellent ... reviewRating [Rating]: ratingValue:5 worstRating:1 bestRating:50 -
Google Product Ads - Improving our Cost Per Conversion?
Hi all, We have been running Google Product Ads (paid for) ever since it began in the UK. We are still struggling to get to grips with the best way to make it worthwhile for us. Our data for the last 14 days:
Conversion Rate Optimization | | complete_outdoors
Clicks: 1827
Impressions: 65789
CTR: 2.78%
Average CPC: £0.22
Cost Per Conversion: £15.13 We've added some auto targets for our most popular brands, with a higher CPC than "all products". We've also added negative keywords so we only come up with relevant searches. Basically, what we'd like to know is: how we can best set-up our product ads to reduce our Cost Per Conversion (I guess everyone would like to do that!), as it is barely worth us using it currently. If you require any further data to help answer my question, please ask. Any help would be much appreciated. Thanks.0 -
Analytics : Goal tracking for multiple payment methods
ello! I don't know if anyone else has come across this problem, but our ecommerce site offers two payment methods during checkout. I've set up goals and they successfully record the total number of transactions. Our site offers two payment methods (credit card and purchase order) and once you hit the 'select your payment' page, you're directed to different pages to make payment and end up on the thank you page. I created two goals, a credit card one that has "funnel" turned on and lists every page a 'credit card' customer would undertake, and a 'purchase order' goal listing all the pages a customer who undertake when making a "purchase order" payment. Google is however recording figures for both. Say I had 10 credit card orders and 5 purchase order, my Goals report 15 for both. Anyone come across this?
Conversion Rate Optimization | | Bio-RadAbs0 -
Question regarding eCommerce sites, relative URLs and secuirty certificates
We recently installed a new SSL certificate on an ecommerce site. Our IT Director is insisting that all pages on the site must be coded in such a way so that the address bar maintains a green background when a visitor is navigating the site after navigating to a secure page or logging in. I have worked on many ecommerce sites and never has this been an issue. Amazon does not use the green bar....but they are Amazon. In order for this to work, he is insisting that all internal URLs be coded as relative instead of absolute. How bad is this for SEO or does it really not matter that much? How crucial is it for trust and security? Opinions welcome!
Conversion Rate Optimization | | danatanseo0 -
Tracking Adwords Conversions for eCommerce ROI
I'm working with a rather large eCommerce customer who needs to be able to track their Adwords conversions for the purpose of determining the ROI of their Adwords campaigns. I've installed code from Google Adwords Conversions on their eCommerce page, but it doesn't seem to be calculating values correctly. Also, where would setting goals in Analytics come in to play if I'm trying to track the conversions of specific Adwords conversions?
Conversion Rate Optimization | | SmokewagonKen0 -
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 -
Is it advisable to use meta refresh for Google Website Optimiser?
We'd like to track conversions using Google's Website Optimiser, but the conversion page is hosted on a different sub domain so Google won't allow us to use this as the conversion page. The plan was then to add a blank page on the original domain that contains Google tracking code and a meta refresh to the page on the sub domain. We would then block this page in the robots file so Google doesn't try to index the page with the meta refresh. Does anyone see any harm that may come of this? Or any other way around the issue? Thanks in advance
Conversion Rate Optimization | | heatherrobinson0 -
Can I track user journeys from a particular source?
We want to track users from a particular campaign to see what they do when they get to the site. The site generates revenue from clicks out so we want to be able to see whether visitors from a particular source click on multiple deals. i.e. enters from the source and then clicks on 3 different deals that take the user to other sites. Using GA, can I track this by implementing UTM on both the campaign links and outgoing links? Can I see exactly how many deals the average user is clicking on? As far as I know I can: Track visitors from the campaign Track overall clicks on deals Divide click outs by visitors But I can't track how many deals the visitors from campaign A clicked on... or can I?
Conversion Rate Optimization | | Red_Mud_Rookie0