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
-
Google Analytics Numbers Are Weird
Hi, I'm having a strange problem from past one month. My website gets about 10k pageviews a month with an average bounce rate of 50%. Lately, I observed a strange thing. The avg time on page of visitors from selected countries is less than 1 second and the bounce rate is zero!! How is this possible? This is happening from past one month and it would be really helpful if you guys could tell me what exactly is happening?? Ive attached a screenshot for better understanding. website url : https://www.specbee.com/ fIAXXgF 3zQuBAN
Reporting & Analytics | | ganesh10 -
Different statistics in Google Analytics
Hi! A client of mine is having some trouble on his Google Analytics overview. When he checks the yearly report with number of visitors, new visitors, returning, ... he gets statistics that doesn't match mine. Also, he gets a notation from Google that no hits were fired, although the script is still there. On the other hand, I (logged in with another account) am seeing all statistics correctly. FYI: no filters were installed, nor segments, ... Why does the client see different and incorrect statistics? There should be a setting or something I'm overseeing. Hope you guys can help.
Reporting & Analytics | | conversal0 -
Is it possible to set up one of the Goal Conversions on Google Analytics for a different site?
We are in the process of a website migration and need to set up the conversions for the new site. What is the most effective way of doing this?
Reporting & Analytics | | Sable_Group0 -
Is Google doing anything about the spam referrer plague in Google Analytics?
My client manages 15+ websites and we have observed the spam referrer issue has gotten steadily worse and worse in the last few months. I took the time to weed out the worst offenders via traffic filters but our referral traffic source garden was quickly full of weeds again a few weeks later. Does anybody know what the Google Analytics development team is doing to combat the spam referrer issue? I find it quite amazing that Google goes through the asinine effort to block out organic keyword data ("not found" & "not provided) but they don't seem to care about blacklisting/filtering spam referrers. RHnE6Wx
Reporting & Analytics | | RosemaryB3 -
Does Google Analytics track conversions in real time?
Looking at the section: Conversions > Goals > Overview - does Google Analytics provide real time / same day metrics for this conversion data or does it take 24 hrs?
Reporting & Analytics | | Rich_Coffman0 -
What is the best way to embed Google Analytics charts on our site?
We want to build out this functionality so a client can log into our site and view data. I know its possible but I can't find any articles about the steps so that my team can move forward.
Reporting & Analytics | | appbackr0 -
Is it possible to use Google Tag Manager to pass a user’s text input into a form field to Google analytics?
Hey Everyone, I finally figured out how to use auto event tracking with Google Tag Manager, but didn't get the data I wanted. I want to see what users are typing into the search field on my site (the URL structure of my site isn't set up properly to use GA's built-in site search tracking). So, I set up the form submit event tracking in Google Tag Manager and used the following as my event tracking parameters: Category: Search Action: Search Value When I test and look in Google Analytics I just see: "search" and "search value." I wanted to see the text that I searched on my site. Not just the Action and Category of the event.... Is what I'm trying to do even possible? Do I need to set up a different event tracking parameter? Thanks everyone!
Reporting & Analytics | | DaveGuyMan0 -
Solid Place to learn intermediate-adbanced Google Analytics
Hello Everyone, I've been using Google Analytics for some years now, and I never really used it in an advanced way (alerts, goals, conversions, etc...) I was wondering if there was a good place for me to learn GA so I can start using it to it's full potental. Thanks Zach
Reporting & Analytics | | Zachary_Russell0