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
-
Any way to track an Email Href in Analytics ?
Moz, To help with our conversion tracking efforts is it possible to track contact Email Href clicks ? Preferably using Google Analytics so i can filter them into my reporting, Thank you, James
Conversion Rate Optimization | | Antony_Towle0 -
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 -
Help! Tracking Conversion Source of Specific Users: Possible? How?
Just as an example, let's say we generate a website lead from John Smith. Can we trace John Smith's activity back through AdWords or Analytics to see exactly where he came from and (with AdWords for example) what keyword he typed in before clicking our ad and converting? Thanks for the help!
Conversion Rate Optimization | | RickyShockley3 -
Analytics (Other Than Google) & A/B Testing Tools
Hey, I have Google Analytics on my website, like most people, but I was looking at some other analytics and testing tools like heat maps, click maps, A/B, etc. I was hoping that some of you could recommend a few that you use to see where pages are going wrong, track user behaviour and to how improve conversion rate. I have had a look at a few websites like: https://www.clicktale.com/
Conversion Rate Optimization | | JonathanRolande
https://www.optimizely.com/ It would also be interesting to know how acurate these tools actually are, they seem quite legit. Cheers0 -
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 -
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 -
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 -
How to you determine what a good CPA is on an ecommerce site?
Do you calculate shipping, warehouse cost, cost of goods into your CPA? Lets say my current CPA is $20 and average order is $100. Its 20% of each order cost goes to lets say ppc, seo, email or affiliate. Do I include cost of shipping lets say its $7.00 and cost of goods are $40.00 I end up with a profit of $33 and that doesn't include taxes, salary, warehouse cost ect. *this is all hypothetical, Im trying to see if my real CPA is inline or I should work on decreasing it. Any thoughts? Thanks
Conversion Rate Optimization | | perytestusr0