How many ways to use Event in Google Tag Manager for Event Tracking?
-
Hello Experts,
How many ways to use Event in Google Tag Manager for Event Tracking? As per me there are 5 ways given below are they correct? 2nd thing if yes can you please please tell me procedure of using all or which is the best one to use?
- HTML 5 Data Attributes
- Classic Google Analytics Example:
_gaq.push(['_trackPageview', '/downloads/pdfs/corporateBrief.pdf']);
3) Universal Analytics Example:ga(‘send’, ‘pageview’, ‘page path’);
-
query string?
-
or is it possible without any coding on website we can configure id's in google tag manager?
Thanks!
BK Mitesh
-
Hi BK! This is Beck. I'm a part of the analytics team here at Moz.
Thank you for reaching out to us. We'll try to answer your question the best we can.
The gaq.push option is a commonly used solution, as long as you are following through with the same methodology on your site setup. I am attaching a link below that may help you put the GA event tracking practice a little more in perspective. Having said that however, other options you mentioned are certainly plausible. Can you be a little bit more specific about your setup?
The GA event tracking how-to is the following: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
As far as your question on the tag manager setup, yes, tag manager can help you out with this as well, as long as your methodology is consistent throughout your site. I'm attaching another documentation that talks about tag management event tracking as well. If this doesn't help, can you be a little more specific on what you're trying to accomplish on this as well?
The tag management event tracking is the following: https://support.google.com/tagmanager/answer/3420054?hl=en
Thanks again for reaching out to us!
-Beck
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
-
Google search console
Checking our links to our site on GSC and we've dropped from 515 to 324 over night - is this normal?
Reporting & Analytics | | RayflexGroup0 -
Whats (Other) traffic in Google Analytics?
When I look through all our clients, a few are receiving the majority of their traffic from (other). [ Acquisition > Channels > (Other) ]. The only option in (other) is "website" or "offline", whatever that may be. And even weirder, the avg session duration is 0:00. Any idea what this may be?
Reporting & Analytics | | W2GITeam0 -
How is Google Analytics defining page depth?
We run two websites and as part of our KPIs we are treating those who visit 3 or more pages of our website as a client served. As a digital team we are not convinced that this is the best metric to use as the improvements we are making to the sites mean that people are able to find the information quicker. Additionally other organisations including forums etc link to us so those users will get the info they need in one click. What I would like to know is how Google calculates page depth in GA. Are they treating the landing page as ground zero and then when users clicks a link they go one page deep? Or is the landing page, page depth 1 . Is page depth a measure of how many clicks a user needs to find their information?
Reporting & Analytics | | MATOnlineServices0 -
Google Analytics subdomain ecommerce tracking flatlines :-(
Buongiorno from 19 degrees C wetherby UK 🙂 This website http://www.philpotts.co.uk/ contains a shop sub domian @ http://shop.philpotts.co.uk/. I configured the site Ga analytics code to include the subdomain (see below code). I had to do this as i was getting refferal data from the actuall subdomain. But after following the instructions on p117 of cutroni's ga book things have gone wrong, mainly now eCommerce data has dissapeared 😞 So my question is please: "Why has installing the GA code above caused eCommerce tracking to suddenly go dead?" Grazie tanto,
Reporting & Analytics | | Nightwing
David0 -
Google penalty
Hi, I've seen a steady improvement in my google search referrals since optimising my site and keeping an eye on SEO over the last few months. I'm only getting relatively small numbers of referrals, around 120-130 a day, but this has steadily increased from about 40 before Christmas. It's been a fairly consistent increase until 4 days ago when suddenly my referral numbers were cut in half. I'd be surprised if google was penalising me since I'm such a small site, but are there any obvious signs I should look out for? Oh, and my site is www.madegood.org should that be of help. Thanks! Will
Reporting & Analytics | | madegood0 -
Which one should I be using 301 redirects
Hiya guys, I have a little problem, not sure which one I should be using, for 301, be easy on me I've not dealt with this before. So we have http://www.talknightlife.co.uk and I've done redirects for http://talknightlife.co.uk to http://www.talknightlife.co.uk host http://www.talknightlife.sheffieldspeedcameras.co.uk to http://www.talknightlife.co.uk Because my website is purely a forum and in the canonical error from the optimisation tool is showing 301 canonical = http://www.talknightlife.co.uk/forum.php should I be redirecting that to http://www.talknightlife.co.uk or the other way round, or just leave it ? I'm a little confused Cheers in advanced for your help guys
Reporting & Analytics | | Lukescotty0 -
Cross domain tracking setup in Google Analytics
I really need help on this, I can't figure it out. I need to track a few subdomains and and couple of seperate domains in one profile in Google Analytics. So I have: www.maindomain.co.uk sub1.maindomain.co.uk sub2.maindomain.co.uk www.anotherdomain.co.uk So the code I have placed on all of these domains is as following: I have then set up seperate profiles which filter out the data by domain. E.g. for sub1.maindomain.co.uk, I have user the fitler: Custom filter > Include > Filter Field = Hostname > Filter Pattern = sub1.maindomain.co.uk For the www.anotherdomain.co.uk, I have used the same filter. Now this all seems to be tracking visits and unique visitors okay, but I always have a very low pageview count, less than visits and sometimes zero. Could anyone shed any light on what I am doing wrong? Thanks in advance mozzers.
Reporting & Analytics | | MirandaP0 -
Wordpress + Google Analytics = Pulling My Hair Out
Hey Mozzers, Quick question for you- I have analytics set-up for a personal site I run and I know, verifiably it's receiving traffic, however, whenever I access my Google Analytics dashboard, it says I've had zero visits. Interestingly, today I had a colleague check the site from a foreign country and I could see the page views (within 15 minutes), however, I could not get any information about the site viewer. I have verified that the Analytics profile is 'receiving data' (which it is) and my Google Webmaster Tools is not reporting any issues? Finally, I went ahead and updated my profile so that it is pulling from 'www.mydomain.com' instead of 'mydomain.com', I don't know if that'll make any difference, but likewise, I didn't want to go and create the 'little kid in the elevator' analogy, where I'm just pressing a bunch of buttons just because they're there. So the only changes I've made thus far were deactivating Yoast's SEO plug-in and manually placing the GA code in the header and updating the 'Website's URL' in the profile settings tab of GA from 'mydomain.com' to 'www.mydomain.com'. With that, I am stumped and praying another one of the esteemed Mozzers out there may be able to help me resolve this. Any thoughts?
Reporting & Analytics | | NiallSmith0