Google Analytics Goals - Button Tracking
-
Does anyone know if there is a really easy way to track a button in Google Analytics yourself?
It seems that most button click goal setups involve some use of tricky code and I'm wondering if there is a much easier way to do this that will allow us to simply setup and track certain button clicks as goal conversions in Analytics.
Your help here is much appreciated!
-
Hi,
If you use GTM to do it its a piece of cake. Really. I use that regularly. A click on a button its normally the same as clicking on a link. Here is the GTM help to set that up: https://support.google.com/analytics/answer/6164470?hl=en
By using GTM to set up conversion tracking goals you gain a lot of flexibility and speed. The first time you use GTM it might take some time to learn it, but its definitely worth the time investment. By the way its the method of choice for conversion tracking if you use it regularly.
I use to track all kind of conversions, A/B testing, add all kind of scripts, etc. with GTM for ourselves and all my clients.
You have to set up the GTM container on your website only once then you can add conversions, scripts, etc. without having to touch your websites code anymore, just by using the GTM backend, its as easy as publishing new versions of a website on Wordpress.
Hope this helps.
Cheers,
Cesare
-
Hi,
As Zee said, GTM is great once set up.
<address>This video was useful when I was setting up auto event tracking in GTM Auto-Event Tracking with Google Tag Manager | Lesson 5 - GTM for Beginners and his other posts are good for learning other bits of GTM if you are new to it.</address>
-
I've never used Autotrack, but that sounds really interesting! GTM has a similar "auto event tracking" function.
I second mememax's answer (from a DIY, "right-now" standpoint). However, you might want to consider implementing Google Tag Manager (GTM): GTM has a great interface that's easy to use to set up new events, so regardless of what you add to your site (new campaign, landing page, content, form, etc.), you can just log into your GTM to set this up without needing to code.
-
It requires a bit more knowledge on coding, but if you want to make things easier over time for a small site and a small team you might want to look into using Autotrack, a feature that the Google team build to make tracking certain interactions easier: https://github.com/googleanalytics/autotrack/
-
well it's easy to explain it here without reading a full article.
you have to use Javascript onclick event tracking, which is essentially a way to say to GA to register data overtime your event is triggered.
on the button action code you can add the following onclick event:
ga('send','event','category','action','opt_label', opt_value,{'nonInteraction':1})
You have to change the category, action, opt_label and opt_value as you wish, considering that the last two are optional. For example you want something like this:
ga('send','event','form sent','click','[URL]', 5)
more info here on the official GA site: https://developers.google.com/analytics/devguides/collection/analyticsjs/events it's really clear, if it is not, it means you may want to double check with your dev, or further study Ga documentation about events 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
-
What Analytics Do You Use To Track IOS and Android?
We have about 600k downloads of our app and would like to know what cost effective analytics tool you use to gain insight into what your app users are doing? Thanks! Best... Mike
Reporting & Analytics | | 945011 -
No Search Data in Google Search Console (Search Analytics)
Wondering if anyone has experienced 0 data in their Google Search Console (Search Analytics) and found possible solutions to retrieve data? We have a few clients who, prior to the update to Google Search Console, were getting data regularly in terms of the Search Queries report, but ever since the update to Google Search Console, they are no longer receiving data. As an FYI, both the www and non-www versions of the website are verified in Search Console and the XML Sitemaps and Robots.txt files are clean, tested and working fine. Any insights or experience of sites showing 0 data in Search Analytics? Any possible solutions would be greatly appreciated. Thanks!
Reporting & Analytics | | SEO5Team0 -
Is there a way to apply the same google analytics filter to multiple properties?
I manage WordPress multiple sites for my clients. Some of these clients are SEO customers. One issue I have with the analytics reports is the occurrence of spam and ghost spam. I know how to create filters to block however there are always more and more. Is there away to export the filter and import it to all the other properties i manage? Or do they just have to be done manually every time i need to block spam?
Reporting & Analytics | | donsilvernail1 -
Google Analytics Code
We have a quick question about our Google Analytics code: We recently updated to a re-marketing Analytics code, and some of our traffic numbers seem to be off by a bit. I used the Google Tag Assistant Chrome Extension today, and noticed that it's finding our old Analytics code on our pages, but it's coming up as an error due to "no HTTP Response". I am attempting to remove this code from the website, but it is nowhere to be found in the HTML coding. Only the current one is there. So I'm wondering if this second Analytics code is effecting our traffic and reporting, even if the code is currently non-functional? and if it is, how could I go about removing it if it's not currently in our HTML? Thanks!
Reporting & Analytics | | PlanetDISH0 -
I have just found that Google Analytics are suggesting everyone upgrade to their new Universal Analytics, will this affect my MOZ account? should I do it now or wait till they default the updgrade?
Here is the link from google developers https://developers.google.com/analytics/devguides/collection/upgrade/guide#overview
Reporting & Analytics | | Jacquie_AegisSafety0 -
Google Analytics
How can you see the conversion rates for the referral traffic? For example I want to see if any of the facebook visits to my site resulted in a purchase.
Reporting & Analytics | | EcomLkwd0 -
Google Analytics - Not provided info
Morning all, i am using Google analytics for some time now, One of the issues that i don't have a clear answer for is, when i am looking at Traffic Source --> overview In the Keyword column, that is a line (not provided) What we think here is that we cant see the keywords if someone arrived to our website but was logged-in to Google account Is this correct? is there a way to find the keywords behind this (not provided)? - i have many visits for this line (17.3% of all visits) and i don't know which keywords people used. Thank you SeoWise
Reporting & Analytics | | iivgi0 -
Google Analytics set up for non-canonicalized domains
Our client's website is non-canonicalized (www.example.com & example.com load the same thing). Google seems to have made a preference for the www, but canonicalizing to www breaks their Flash website. All we're really trying to do at this time is install Google Analytics for them. What's the smartest way to make sure that both www.example.com and example.com are treated exactly the same by Google Analytics? Google Developers: Domains & Directories states that by default visit data will be separately collected between the two domains, although I found no references to the common www/naked domain issue. In stackoverflow: Does google analytics combine naked domains with the www subdomain? Török Gábor says, "Yes, users will be tracked, but the same visitor coming from www.datalookups.com and datalookups.com will be counted as two different visitors." On the same page, Open SEO says, "This is completely false: www.domain.tld and domain.tld are treaded just the same, and get the same value for the HASH code (the number at the start of each __utm cookie). This an exception: every other subdomain.domain.tld will be handeld as a distinct web site". Can any Analytics experts help me sort this out? Thanks!
Reporting & Analytics | | GOODSIR0