Ben90 Posted April 29, 2015 Share Posted April 29, 2015 Hi guys, I would like to track the number of click on a particular banner on the website. Is there anyone familiar with that? Like Google Analytics event tracking perhaps. Thanks in advance Link to comment Share on other sites More sharing options...
Dh42 Posted April 30, 2015 Share Posted April 30, 2015 Google Analytics event tracking is what you need. Set up a special url on the banner with a variable like site.com/categorypage/product.html?event=homepageclick Link to comment Share on other sites More sharing options...
Ben90 Posted May 6, 2015 Author Share Posted May 6, 2015 Google Analytics event tracking is what you need. Set up a special url on the banner with a variable like site.com/categorypage/product.html?event=homepageclick I wrote this syntax and it solved the problem onclick="ga('send','event','event-category','event-action','event-label',1,{'nonInteraction':1})" It appears on Google Analytics, Behaviour > Events Link to comment Share on other sites More sharing options...
kundan1947 Posted May 6, 2015 Share Posted May 6, 2015 where did you write the syntex? I want to use this one my website http://www.diwaliholi.com Link to comment Share on other sites More sharing options...
Ben90 Posted May 8, 2015 Author Share Posted May 8, 2015 (edited) where did you write the syntex? I want to use this one my website http://www.diwaliholi.com Write is as the html attribute inside your html link if you're using Universal Analytics, like this example: <a href=”localhost/example.html” onClick=”ga(‘send’, ‘event’, ‘banner’, ‘click’, ‘left-side-banner’, 1);”>Tracking Click Example Link</a> Edited May 8, 2015 by Ben90 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now