Universal Analytics Tracking code for Measuring Addition/Removal from Cart via GTM
-
Hello Experts,
Can you please tell me Universal Analytics Tracking code for Measuring Addition/Removal from Cart via GTM?
Any one tell me process and code?
Thanks!
-
Can anyone give me specific answer that i have done all the process and now i just want to know the firing rule in google tag manager for Addition/Removal from Cart?
-
You may be best understanding Google Tag Manager first https://developers.google.com/tag-manager/ then Adding Data Layers https://developers.google.com/tag-manager/devguide
-
You mean given below code i have to add on all add to cart page ? Rest in google tag manager what type of configuration i have to do? i mean what will be track type ? and what will be rule? anything else u suggest?
// Measure the removal of a product from a shopping cart. dataLayer.push({ 'event':'removeFromCart', 'ecommerce':{ 'remove':{ // 'remove' actionFieldObject measures. 'products':[{ // removing a product to a shopping cart. 'name':'Triblend Android T-Shirt', 'id':'12345', 'price':'15.25', 'brand':'Google', 'category':'Apparel', 'variant':'Gray', 'quantity':1 }] } } });
Thanks
-
Hi,
The code examples are here https://developers.google.com/tag-manager/enhanced-ecommerce along with explanations. How to integrate would depend on the shopping platform that you are using.
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
-
A couple of [daft] analytics questions
Hello Mozzers, I have a couple of anaytics questions I wanted to ask. What does 'Not Set' refer to? I assume it is when the user has switched off cookies, but was wondering if this is correct or if there were other circumstances that would trigger this? When I look at my reverse goal paths, the same page is in path 1, 2 and 3... Are the pages refreshing? Thanks! Amelia
Reporting & Analytics | | CommT0 -
Index.php and /
Hello, We have a php system and in the MOZ error report our index.php shows up as a duplicate for / (home page). I instituted a rel canonical on the index.php because the / gets better rank than the other. This said, the error report through MOZ still shows them as duplicates. Should I be using a 301 instead? Please help! Also, I would love a good technical SEO book (for bridging the gap between SEO and programmer) if someone can recommend one? Thanks in advance!
Reporting & Analytics | | lfrazer0 -
Analytics confusion
Hi all I am trying to see how many people visit the 'report a repair' pages of our website. It is on a separate domain to our main site. I have looked in our Google account for stats on it and now got confused. In our Google Analytics account, there is a property set up that says it is for spectrum-online (the domain I am after). However, it isn't collecting any data. It's admin info is: Tracking ID UA-7828548-8
Reporting & Analytics | | Houses
Property name
https://www.spectrum-online.co.uk There is another one there set up under the name 'Western Challenge' that does have data and mentions it is for spectrum-online: When I go into the Western Challenge property, the info is: Tracking ID
UA-7828548-3
Property name
http://www.westernchallenge.co.uk Western Challenge shouldn't exist now though. It was one of our old brand names and the site should be 301'd to the main www.spectrumhousing.co.uk site. I looked in this property at the top pages where people appeared to be landing. There are 9 of them, all with stats against them.Usually you can click the icon next to the URL and be taken to the live page. I however get taken to the Spectrum home page each time. All very odd. UA-7828548-3 is not the GA code used on our main site. I then tried clicking on a live spectrum-online page http://www.spectrum-online.co.uk/keyfax32/main.asp?co=KFRDROL_WCHA to see which Google UA number tracking code is being used but I can't see any GA code and it is a frame. Queries are:
Why is the Western Challenge property collecting any info?
Why is the spectrum-online property not collecting any info?
Is there any Analytics code on the Spectrum-online site and if so where? Apologies if I'm missing something obvious but your help would be appreciated. Thanks0 -
Google Analytics Content Experiments
Has anyone else found that Google Analytics Content Experiments seems to quite quickly favor the best performing variant in an experiment, and then show that variant many times more often than other/s - not split the traffic evenly? What is Google's thinking behind 'optimizing' during an experiment? It seems odd to me.
Reporting & Analytics | | David_ODonnell0 -
Why is GG analytics showing so much (not provided)?
is there a better analytics tool (preferably free) that will show the actual keywords that drive traffic to a website or are we doomed to deal with (not provided) as a result of the Big G's retarded privacy policy? - seems they cant make up their minds as to whether they are going to take care of site owners or advertisers - but they should really take a stand and stop putting out half-ass results if anyone has any helpful ideas that may ease my pain i would be forever in your debt.
Reporting & Analytics | | Ezpro90 -
Cookies/Tracking/Code developement
So. I have an online application form, on the website. It's maked with php, html and css. What i like to place on the email, is a cookie tracking system. For example, when someone search on the google for " web design ", and then see my result on google organic, comes the visitor to my site, charge the fields of application forms and click send. Than, me like an admin, i receive an email with informations of a customer, i see name/surname/etc.. but i like to integrate is for example, like to see a: IP from Visitors, who charged the fields Referrerr, if google, like to see which query he typed. How can i do this please?
Reporting & Analytics | | leadsprofi0 -
Google Analytics Campaigns
I need the help of a smart Mozzer. In Google Analytics: Traffic Sources>Sources>Campaigns all the results shown are from RSS. Can anyone help me with why RSS results would be displayed in Campaigns?
Reporting & Analytics | | waynekolenchuk0 -
Keyword tracking using Advanced Segment
I would like to see visits for only and only the following 2 keywords using advanced segment in GA. logo design india and logodesign Here's how i set up the Advancned Segment - Keyword > Matches Regular Expression > logo design india|logodesign The problem is that advanced segment report is also displaying visits for keyword thelogodesigns. Have i set it up correctly ?
Reporting & Analytics | | seoug_20050