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
-
Tracking Facebook Mobile Visits to Desktop Conversions?
Hi. If I set an ad in Facebook, I can obviously track visits, conversions and so on from that ad and see if they where mobile or desktop. However, how do I, if possible track a mobile visitor who the converts on a desktop? Eg. I go on XXX Facebook Ad on my mobile whilst in work, look around. Like what I see. Then I go home from work, open my laptopn and go on XXX website and send an email enquiry form in. Is this possible to track? Thanks
Conversion Rate Optimization | | YNWA0 -
Has anyone ever used Adwords' Forwarding Numbers as a Call Tracking Service?
Hi, I was taking over a client's Adwords account from a previous agency. It appears the former agency added the Google Forwarding Number (for call tracking on call extensions) and added it to the client's website. Therefore, if anyone calls that number from the website, it would register within Adwords (just not as a conversion but as a click under "call extensions") The problem: you can't filter by phone number (the same number calling +1 would indicate spam) you can filter by device (so tablet / computer) can be considered spam generally. Questions: Anyone ever used this before? Your thoughts? Does anyone know if there is spam coming from mobile devices now-a-days? Please tell me what I'm missing. Any advice / anyone else seen this / done this? Thanks Moz Community, Cole
Conversion Rate Optimization | | ColeLusby0 -
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 -
Track bounce rate per PPC keyword
Hi all Wondering if anyone could give me a nudge in the right direction with this please. When running an adwords campaign is there a way in which one can track the bounce rate on the landing page per keyword sending paid traffic? I've had a play about in adwords and GA and couldn't find the right option. The site I am sending traffic to is not a ecommerce site so cannot set up conversion tracking so we are going to monitor the bounce rates of different keywords and drop the ones which are bouncing much higher than others as it seems better to invest the budget in those words which are keeping people on the page for longer. Many thanks Carl
Conversion Rate Optimization | | carl_daedricdigital0 -
Tracking homepage visits
Hi Mozzers, I run a website that has some buttons on the homepage. These URL's are not unique as they are accessible from the nav bar at the top of the page. I want to see the conversion rate of the homepage buttons. Is this possible? I currently use Crazy Egg to see how many people are clicking on the buttons but I want more information as I'm sure whether they are converting. Thanks, Karl
Conversion Rate Optimization | | KarlBantleman0 -
Goals and funnels in Google Analytics
I have an e-commerce site and I'm trying to set up goals and funnels in Google Analytics. I've set the goal URL to my thank you page and am now setting up the funnel steps from home page through category page - product page - shopping cart - checkout. I seem to have set it up wrong though because according to the funnel 100% of the of the people coming in to the home page exists from there too, even though I can see that they have moved on to a category page. I have obviously several categories and product pages. Is there a way to set it up to include all category pages in one funnel step and all product pages in another? The way the website is set up is like this: Categories:
Conversion Rate Optimization | | Livet
domainname.com/category/category-name/ Products:
domainname.com/product/product-name How would you guys recommend i set up my goals and funnel steps in Google Analytics?0 -
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 -
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