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 To Stop Google's "Fetch & Render" From Showing Up In Google Analytics
Hi all, Within Google's "Fetch & Render" (found in Google Search Console) is the ability to index certain pages from my website on-demand. Unfortunately, every time I ask Google to index a page, it registers as a bounce in Google Analytics. Also, if it means anything, my website (www.knowtro.com) is a single-page application, functioning similarly to Google. If you guys know of any solution to this problem, please help! I originally thought that Google would know to block its own Fetch & Render crawler from Google Analytics but that doesn't seem to be the case. Thanks, Austin
Reporting & Analytics | | A_Krauss0 -
How to track google auto search suggestion click?
Hello Guys, In google.co.uk when I search SEL and google gives me option of different different sites and when I click on any one site then that click tracking I need. I have attached the screenshot to understand easily. Is it possible to track such things or possible via server logs etc? TV99h
Reporting & Analytics | | micey1231 -
Google Analytics Goal/Event/SOMETHING to show only Wordpress "Posts", not pages, etc
Hi all, Our site is build on Wordpress and formerly the post URL's had the typical date format at the beginning. This made it easy for me to look at, for example, all search traffic to the blog. I would just view URL's containing /2014/ and /2015/ and boom. We have since removed the dates from the URL's with proper redirects etc, which is great, but now I can't figure out a way to look at ONLY the blog in GA. I like to track a KPI of 'search visits to blog posts' and I can't figure out how to now. Can I set up a GA event that only fires when the post type template for blog posts loads? Some other solution? I'm lost here, and there's gotta be a good way to do it...
Reporting & Analytics | | 3DR0 -
Site account in Google Analytics
Hello I have a question about my site account. On 2014, during a week, my ID tracking of Google Analytics was removed of the site, in this period the volume of users and sessions is lower than the other weeks. But I don't understand why are the sessions and users still reporting during this period without ID Tracking
Reporting & Analytics | | Arkix0 -
Google Analytics: Multi channel funnel
Hi 🙂 I have a little problem. In Multi-channel Funnel Overview I see 50 conversions from Paid Search (screenshot 1). But when I click on Assisted Conversion and then choose Paid Search, I see 31 Assisted Conversions and 32 Last Interaction Conversion. (screenshot 2) So my question is - why the number of converstions in overview (50) is different than number in Assisted Conversions (assisted or last interaction conversion, or both together)? Probably, the answer is so simply, but I can found out it! 🙂 thanks a lot. X6UihL7.png lCNsw4T.png
Reporting & Analytics | | visibilitysk0 -
Google analytics settings
Hi I have GA installed, whaen I try to use Inpage Analytics, I get this message: We've identified problems in your setup. These may cause problems loading In-Page Analytics. Error: The Website in your settings (http://www.tvorba-logo-firmy.sk) redirects into a different domain. (http://tvorba-logo-firmy.sk). In-Page Analytics currently works on only one domain. Note that www.example.com and example.com are NOT considered to be on the same domain. Also, make sure you're not redirecting from http:// to https:// or vice versa My website is running on wordpress. Thanks for help.
Reporting & Analytics | | info_tipovanie-stavkovanie.com0 -
Google Analytics Custom Filter
Hello, Quick question, when I create a custom filter on a profile that already has data collected will that filter apply to already collected data or will the filter only apply from the day it was created? Am doing a custom exclude IP filter. Much thanks,
Reporting & Analytics | | Unity
Davinia0 -
Mobile and Google Analytics
As my mobile numbers are going up in Google Analytics I'm trying to figure out what phone runs what browser. I see that 93% of mobile users have Safari which I believe is iPhone, iPad and iPods. There is a 6% usage of "Mozilla Compatible Agent". What cell phone would this be?
Reporting & Analytics | | LabadieAuto0