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
-
How do I track a primary domain and a subdomain as single site in Google Analytics?
Our website consists of a primary domain (marketing focused) and subdomain (ecommerce platform). The two sites look and function as one site even though they are using different technology. I would like to track the primary domain (example.com) and the subdomain (shop.example.com) as a single site in Google Analytics. The subdomain will be set up with GA ecommerce tracking as well. Can someone provide an example of the GA snippet that each would need?
Reporting & Analytics | | Evan340 -
How can I track my rankings on Google Images?
I noticed a small amount of traffic coming from a particular very generic keyword. Being pleasantly surprised that we are ranking for this, and after some digging, I found that we are actually ranking in Google images, rather than in the web results. How can I track whether other keywords are ranking in Google images? I use Rank Checker to track keywords in the main web results, but this doesn't have a function for Google Images. Help please - thanks.
Reporting & Analytics | | TheJewelleryEd0 -
Best top 5 actionable insights from Google Analytics
Buongiorno from 14 degrees C cloudy wetherby UK 🙂 With a whole gamut of books out there are written around the topic of "Actionable Web analytics" where you have to wade through chapters of how to suck eggs and how to get analytics part of your business culture (whatever! most clients who look after their websites are entry level Marketing Execs who pay the digital agencies to do the thinking for them) I'd like to cut to the chase and list out say a top 5 of actionable insights a client would actually give the time of day for so heres my top five, whats yours? 1. Landing page bounce - showing them the £5k landing page designed with no conversion thinking is turning off customers
Reporting & Analytics | | Nightwing
2. Synching up PPC campaigns to analytics and showing them how much money they are waisting
3. Goal funnels - Showing them there 20 step shopping conversion funnel gets abandoned at step 3
4. Non brand keyword traffic (although a stack of this gets blocked by "not provided" Big groan...)
5. Event tracking on there 10 page carousel anner showing them no one clicks on banners 2 - 10 So under the strict label of "Actionable data only" from Google analytics whats your best insights you share with clients in the hope that they may actually give data reports the time of day! Grazie tanto,
David1 -
Google Analytics Not Working
I added the code before tag but still google not showing it is installed. Status: Tracking Not Installed Last checked: Mar 15, 2013 10:38:10 PM PDT Can someone check my domain - www.plugnbuy.com
Reporting & Analytics | | chandubaba0 -
What's the final word on Image Search tracking in Google Analytics?
Sorry if this has been answered but I can't seem to get a straight answer to my questions by searching around. How is traffic referred by Google Images counted in Google Analytics? I know it used to be referral traffic from google.com/imgres. A lot of things I have read say that it should all be under google/organic now, but my site still gets referral traffic from google.com/imgres, so that can't be. However I also get traffic as google/organic that I am pretty sure is from image search, because we don't rank for the keyword normally, but we do for image search. What's the deal? How is traffic from an embedded image in a regular result page counted? How can I segment my image search traffic better? It would be great to see image search traffic as it's own medium. I found a script here -- http://jrom.net/google-images-in-google-analytics -- that looks promising, has anyone used it or can recommend another way? I haven't used the GA API very much so I want to make sure the script is kosher and won't screw up my numbers.
Reporting & Analytics | | tact0 -
Need help setting up a Google analytics goal.
I'm just now getting my feet wet with the goals in GA. I'm trying to figure out how many visitors to a certain page, click on a certain link (which takes them no a certain page on my site.) What's the best way to go about this? Thanks.
Reporting & Analytics | | NoahsDad0 -
Comparing % Change, Google Analytics
Hey Mozzers, Is there a simple way to compare the "% Change" in traffic when comparing two separate time periods in a single Google Analytics report? When comparing data from two separate time periods, an exported CSV doesn't include the % Change (booo!), and there's no option to sort by % Change within the GA report, essentially forcing you to scroll through all the results to pinpoint the major movers and shakers. I'm not averse to using spreadsheets to sort this data, but I'm thinking that I'd likely need a macro to make this work, something like this. However, none of the macros on that page are working (possibly because they were designed for a previous version of Analytics). All suggestions are appreciated. Thanks!
Reporting & Analytics | | dangaul0 -
Regular Expressions in Google Analytics
I want to use the Google Analytics landing page reports to look at the bounce rate of top level pages excluding the homepage. So pages with urls: www.example.com/example Does anyone know a regular expression that will allow me to do this? Just to clarify I do not want to look at the bounce rate of the homepage or any pages deeper than www.example.com/example e.g: www.example.com/example/example www.example.com/example/example/example etc Thanks in advance
Reporting & Analytics | | CPLDistribution0