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
-
UX and/or Conversion Help for Ecommerce
Good Morning, We recently revamped and relaunched our ecommerce website and we believe we have built a great site that is easy to navigate, find what you're looking for, get all details, and purchase. We were hoping to get some of the Moz community to take a look at the site and let us know if you have any suggestions on usability or conversion techniques that we could implement to improve user experience and amount of orders placed. You can view our site here Looking forward to your feedback. Thanks in advance
Conversion Rate Optimization | | Prime850 -
Does anybody know of a reliable website phone call lead tracking service that integrates with Google Analytics?
We are trying to get more detailed data about where direct website phone calls are coming from (not just Adwords call extensions). We know there are a few services available that do this. However are there any recommendations for a reliable one? We would like to show our clients Google Analytics conversion metrics that shows incoming phone calls from different campaigns.
Conversion Rate Optimization | | RosemaryB1 -
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 -
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 -
Google Remarketing Conversions - Possible Issue
Hi All, When it comes to Google Adwords, when considering conversions, Google assigns each conversion back to the click that originally drove that visitor on the day they clicked. so, even if someone converts today, Google would show that conversion as occurring two weeks ago when the visitor originally clicked on a paid search ad and came to my site. fine...whatever. My question now is if we use a remarketing campaign through the Display Network, and someone converts, will that conversion be shown under their new visit or back on their original click where they did not originally convert, causing them to be included in our remarketing audience? Cant seem to find a straight answer anywhere and hoping someone out there has some guidance.
Conversion Rate Optimization | | dsinger0 -
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 -
Is it possible to set a Goal conversion tracking from a subdomain to a root domain?
Hi Mozzers, Here is an issue I am going through: I have a root domain(www.example.com) that is the core website where you are able to schedule a service I have a subdomain (sub.example.om) that is part of content strategy offering free tips and follows a different branding strategy. There are internal links from sub to root domain I have a GA subdomain tracking code installed on every page for both domains I would love to set goal tracking on GA for visitors coming to my subdomain, then going to root domain and then schedule a sevices? Is this possible? If it is, can someone show me a How To because I tried it anddidn't work? Thanks mozzers!
Conversion Rate Optimization | | Ideas-Money-Art0 -
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