Out of the box, Lytiks tracks all your regular clickstream data including path through site and automatic tracking of downloads and outbound links, but if you need to track other kinds of clicks, you can readily do so by adding the piece of code to your html object:
class=”notrack” onclick=”cat.TrackEvent(‘page/event-button‘)”
The only thing you have to modify is the part in the parentheses. You can call this anything you want, but we recommend naming it after the name of the page and the object separated by a forward slash (as shown above).
If you want to track clicks on an anchor tag it might look like this:
<a href=”" class=”notrack” onclick=”cat.TrackEvent(‘page/event-button’)”>Event</a>
The class=”notrack” attribute is not necessary unless you are tracking an anchor tag and can be omitted in the unlikely case that you are trying to track another type of object.
Once you have added this code to the object you want to track clicks of, you will see those events show up as events in your data and you’ll be able to create goals and sort your data based on successful completion of the event. Please let us know if you have any questions or need help with tracking custom events.


