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
-
App Store Optimization - Google Play Console A/B Testing: Should I Optimize for Active Devices or Users
Can't seem to find any ASO type of communities to ask this question to and since the Moz community has been so helpful, I thought I'd try this out. I've been doing A/B Testing for featured graphics on the Google Play Store. There are segments of active devices and users and I've been keeping track daily for ~1.5 months. The data that I have written down displays that active devices shows a positive, however users show a negative. Google Play Console choose to display the scaled installs for active devices. When we do A/B Tests on Google Play Console, should we choose the winner based on the active devices or users?
Conversion Rate Optimization | | imjonny1230 -
PayPal Visits Increase in Referral Traffic in Google Analytics
We've noticed recently on an E-Commerce website that we manage that PayPal has recently shown a large increase in Referral Traffic on the website. Is anyone having an experience with this and how can we block it? It seems like its counting the traffic that leave to PayPal to complete a purchase and then return to the site as increased traffic. The increase started to occur around April 29, 2015 and I'm wondering if this has anything to do with any recent updates made by PayPal? Any insight or other experiences would be greatly appreciated. Thanks!
Conversion Rate Optimization | | SEO5Team0 -
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 -
Any tips and tricks to increase Conversion Rates on Google PLA?
I have recently organized my Adwords (Product Listing Ads) campaign according to this link: http://certifiedknowledge.org/blog/how-to-create-a-state-of-the-art-pla-campaign While I like the organization and control this provides, my fundamental concern is to increase conversions. I understand conversions are dependent on other factors such as landing pages etc. Are there any Google Adwords tips someone has had success with to increase CTR and increase conversion rates? Pating $10/day to Google Adwords while only getting a sporadic business every 3 days is getting a bit frustrating. Are there any tools in MOZ that can help find faults and generate simple reports on the Google Adwords campaign? Any help is much appreciated.
Conversion Rate Optimization | | amitramani1 -
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 -
Rel=author: inactive google+ better than no authorship?
some doubts about implementing rel=author: I have no google+ account so far and I have no intention to start activities in google+. Shall I still add rel=author and create a new empty google+ account (without google+ activity but using gmail) or would you recommend rather not to add rel=author in this case? I have 2 sites ranking in top10 SERP for my targeted keyword. One online shop and on another domain a non-commercial site with information on the topic. Would you rather associate same or different google+ accounts (from different people) with these two sites for both rel=author and rel=publisher? thanks.
Conversion Rate Optimization | | lcourse0 -
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 -
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