Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

addListener( element ) to track clicks of specific buttons

$
0
0

@kellyimagined wrote:

In the drupal module there is a place for custom javascript code to enter in unique PIWIK events. I am trying to add a click event but it does not seem to work.

I have tried:
addListener( 'button_show' );
addListener( button_movie' );
trackEvent('button_movie', click, %article_name%);
piwiktracker.addListener( 'button_movie' );

Can you provide instruction on how to do this and get it to work?

button_show & button_movie are ID's on the link.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles