Jump to content

Ben90

Recommended Posts

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

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 by Ben90 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...