Implementing google analytics with google tag manager; in the first example, we will show you how to implement an event on a button-click to ‘continue reading’. when a user clicks on this button, they are taken from the home page to a new page with a full article. step 1.. How to track button clicks with google analytics. march 26, 2010 i cannot add code to the button but i can add javascript code in the body of the page create an event handler as you described. using that plugin is all well and good, but you still need to use this code to track the button click as a goal in analytics. this article is. I’m going over how to do event tracking in google analytics. for those of you who aren’t developers, get ready because you’re going to touch some code. don’t freak, it’s actually really easy and you can learn a lot of great stuff. how many people click on a certain button?.
Ga.js is a legacy library. if you are starting a new implementation, we recommend you use the latest version of this library, analytics.js.for existing implementations, learn how to migrate from ga.js to analytics.js. this document assumes familiarity with google analytics tracking code (gatc) configuration.. Create an event “tag” that connects your trigger to a google analytics event. in the left-hand navigation, click “tags”. click “new tag” and name your tag.. Join stack overflow to learn, share knowledge, and build your career..