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-powered search bar suddenly returning totally different results than usual - User Intent?
Our website has a Google powered search bar and for some popular keywords it has always returned the same results but for the past week it has been returning totally different and nonsensical results with the previous top 2 entries now on the 2nd and 4th pages of the results. It seems to be mixing up two separate keywords which the same user may search for but which both mean two very different things. Is this a User Intent issue do you think? Anyone know if there's anything we can do to stop it? I'm guessing not...
Conversion Rate Optimization | | missus0 -
Breadcrumbs for ecommerce site
We are doing a major overhaul on our site, and we have some questions about URLs, breadcrumbs and ecommerce. Currently, a product can reside in multiple categories, and can have multiple URLs based on how a user navigates to the page. We handle this via canonicals, but it's awful for SEO on many levels. O-U-C-H. The main issue is that a product can reside in multiple categories. At this point, Plan A for our overhaul is that a product URL is always going to be www.domain.com/product-name-sku.html/. Neat and clean, and avoids end-user confusion if they navigate to the product through a category that doesn't match the URL. Plan B: We can anchor a product to a category or subcategory, (www.domain.com/category-name/subcategory-name/product-name-sku.html) but we think that this cuts down on usability as users can navigate to a product through different categories, and the URL may not match the user's navigation. Based on how Google has devalued URLs for ranking purposes, I don't think that there is much of an SEO advantage to Plan B. Am I wrong? A product can show up in multiple categories - for example: www.domain.com/womens-clothing/ www.domain.com/womens-clothing/dresses/ www,domain.com/womens-clothing/dresses/maxidresses/ Category breadcrumbs take care of themselves. What is the best practice to handle the breadcrumb on the product page considering that there are multiple paths a user can take to a product? Options: 1. The breadcrumb on the product page dynamically changes based on how the user navigates to the page. The URL is always fixed as per above, but we change the breadcrumb based on the session. ex: Product: Black Ruffled MuuMuu Home > Womens Clothing > Black Ruffled MuuMuu Home > Womens Clothing > Dresses > Black Ruffled MuuMuu We would be showing Google different breadcrumbs based on how the bot navigates to the page. Are there any issues with this from an SEO perspective as it would seem to provide the better user experience? 2. The breadcrumb on a product page is always fixed. We anchor a product to a category or subcategory and the breadcrumb is always the same no matter how a user navigates to the product. This is simpler from a development perspective, and we are always showing the same breadcrumb to Google. IMHO, this is not as good for usability. ex: Breadcrumb is always: Home > Womens Clothing > Dresses > Black Ruffled MuuMuu regardless of how a user navigates to it. Which way would our ecommerce experts recommend?
Conversion Rate Optimization | | AMHC0 -
How can I track if a landing page assists a lead/goal to another page in Google Analytics?
For example, I'm running a PPC campaign for site.com/landing-page and it consists of different product pages like below: site.com/product-1 site.com/product-2 site.com/product-3 How to determine if /landing-page assists a lead/goal to a specific product page in Analytics? Example scenario: /landing-page -> /product-3 -> Lead TIA!
Conversion Rate Optimization | | zpm20140 -
Anything Good or Bad about Google Trusted Stores ?
We are looking to implement Google Trusted Stores. We don't use PPC but we think that the badge on our website will be helpful for us and our customers. Do you have any experience, positive or negative, with Google Trusted Stores as either a merchant or a customer? I am looking for moz member experience before we make a commitment. There have been some previous Q&A threads about Trusted Stores and a number of good articles on the web, including this one at SearchEngineLand. and this one at eConsultancy Thanks for anything that you care to share.
Conversion Rate Optimization | | EGOL1 -
Google Merchant/ Googlebase Images at top of SERPS
Hi We are based in the UK and the new merchant rules have recently been applied here. We offer free shipping but now most of our click throughs come from the images at the top of the SERPS that simply give an image and a price. The prices do not include shipping and there's no indication to the user that shipping is included. Hence our conversion rate from PPC is way down. Is there any way to counter this or do we just need to go back to charging for shipping? Thanks!
Conversion Rate Optimization | | Jonnygeeuk0 -
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 -
How do I get Google to rank the right page?
My site ranks #1 for Arabic Interpreting on Google UK. This great, but it's ranking my home page rather than the my specific Arabic Interpreting page. The home page shouldn't really rank for this term as it has very little connection with this exact term. This means that while the site ranks great, the conversion is pretty much zero. How can I get Google to rank the page I've optimised for this term? I know the ranking will no doubt slip but may the conversions will be better. Can you help please?
Conversion Rate Optimization | | GlobalLingo0 -
CRM, CRO and Google Analytics
Hi, I am making a paid marketing, and organic too, at the moment i am promoting a small product, peoples are signup every day, but i cannot meassure from which keyword which signup(CRO) do you know any software or something like that, to use together with google analytics and google adwords, and to monitor conversions and to know which keyword is bringing me sales and which not. Tell me any how to guide, a software to use for this etc.. help me if you are doing this job. THanks
Conversion Rate Optimization | | leadsprofi0