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

Event tracking from onclick

$
0
0

@lio77 wrote:

Hi,

Can anyone give me simple and tested receipt for this? I'm trying to make it work, but I feel like going in circles.

I have the feeling that sometimes space after ; matters...

At the moment I'm using this:

<input type="submit" value="Go" onclick="_paq.push(['trackEvent', 'Category', 'GO Button clicked']); ">

or

<input type="submit" onclick="_paq.push(['trackEvent', 'Category', 'Name', 'Description', 8.18]); " value="Click" name="commit">

but this seems to work in chrome, but not in FF? What would be proper way to do this so I'm sure that I will record all clicks on this button in FF, Chrome, Safari, and others?

I'd say my solution "sometimes works and sometimes not" - it's not good enough. Help? :smile:

cheers,
Lio

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles