Adding Piwik Events with jquery in Wordpress *DELETE POST*


#1

CLOSE ISSUE

Sorry guys my bad I made a mistake show have been trackEvent instead of _trackEvent.

Works now :slight_smile:


Hi guys, I know this is a bit more advanced, but was wondering if a piwik/javascript expert can help out.

I want to track events in Piwik and have added the following javascript code to assign a click event to certain elements of my HTML page with Jquery:

When I inspect the element in firebug I can see that the event is attached to it. However, when I click the element Iā€™m not sure if that code is being run properly or if its even right?

How do you get this to work? I wish I could debug it so when you click on it I can see if that code is being run?