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 Trusted Stores Badge in the UK
Hi All Does anybody know when the Google Trusted Stores Program will be available in the UK ? Thanks Adam
Conversion Rate Optimization | | AMG1000 -
Use "Brand Name" or things like "Free Shipping" in Ecommerce Product Title Tags?
Given the current industry best practices and changes to Google algorithms, should I be using "Product name...Brand Name" or something like "Product Name...Free Shipping (or similar)" in my ecommerce title tags? Thanks!
Conversion Rate Optimization | | jeffbstratton0 -
Review Functionality Plugins for eCommerce. Which are the best and most cost effective?
Hi Mozzers! Let me give you a bit of background for my question. I currently look after two eCommerce sites and naturally I want to get them using reviews for products for customer interaction / content and rich snippets. I am basically looking for a cost effective plugin that can plugin to our CMS system that can give us review functionality and will be compatible with rich snippets. At the moment we use Disqus for the blog commenting system and i've heard this can be used for product reviews. Any ideas would be great. At the moment our client is holding back due to 'lack of funds' so the most cost effective measures would be appreciated. Cheers,
Conversion Rate Optimization | | SEOAndy0 -
Non-branded search before branded search in Google Analytics
A lot of organic search phrases contain branded terms. Does Google Analytics provide a possibility to track wheteher the first interactor with the website is due to a non-branded search term? Example: On monday someone search for 'online shoes' and on thursday this visitor search for 'shoestore.com'. Ist it possible in the Thursday report in Google Analytics to see that this visitor has first arrived on the site with the search term 'online shoes'? The same question can be asked for direct/none traffic. is it possible to see whether these visits ca be attributed to an organic search term?
Conversion Rate Optimization | | xicero0 -
Google adsense to make money banner ads or text ads for revenue
Hi i am trying to increase my revenue on my site, and i am working with google adsense at the moment and would like some much needed advice. I am not sure what are better, text ads or image ads I have put some links below to show you different sections of my site so people can help me work out for those sections what is better image ads or text ads. also i would really love to know where i am going wrong with the google adsene and would like to know if i am displaying them in the right places. I have good traffic, but low google adsense returns. here are the different sections. the below is travel articles and i am using text ads. http://www.in2town.co.uk/benidorm/benidorm-news/cheap-flights-airline-flybe-drop-credit-card-charges the below is a showbiz gossip article and i have used text ads http://www.in2town.co.uk/news/one-direction/simon-cowell-upsets-one-direction the following is another celebrity gossip article http://www.in2town.co.uk/news/gossip-celebrity/has-david-gest-put-liza-minnelli-off-marriage the below is a health article http://www.in2town.co.uk/news/health-for-women/beauty-expert-says-you-can-avoid-common-spring-skin-scares-for-sensitive-skin-sufferers I would really value your help with the above.
Conversion Rate Optimization | | ClaireH-1848860 -
Need help Tracking PPC vs Organic and respective ROI
So I have a client who uses PPC and Organic SEO to drive traffic. Once a user gets to the site, the most common action is to fill out a form. I have Auto Tagging enabled in Adwords so all PPC clicks have "gclid" in the url. I am also grabbing the Google Cookie and parsing it out to determine if the visitor is PPC or Organic. So I have an if statement in my form code to pass PPC vs organic through the form for tracking purposes: $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; if (false !== strpos($url,'gclid')) { ?> Essentially this is saying: If gclid is in the url, or if the cookie contains PPC
Conversion Rate Optimization | | tjsherrill
set the Web field as PPC Else
Set it as Organic. this is working about 80% of the time. I am trying to raise the accuracy. any ideas where I might be missing some data? thanks0 -
Google Adwords CPC Tips and Bid Managment
What is the best option for Bid Managment? Enhanced CPC or Conversion Optimizer? What should I be looking at in our Account to see where we are throwing money out the window? My goal is to have more ROI with much less expense.
Conversion Rate Optimization | | hfranz0