trackEvent value not taken into account even if I pass "on" or "off"

Hi!

I’m tracking clicks on a page via events (trackEvent) and the value I pass is not taken into account.

Documentation says : trackEvent(category, action, [name], [value])

This is my code:

_paq.push(["trackEvent", "worksites", "header_actions", "quick-filter", "on"])

and this is what I get in Matomo “Realtime” view:
worksites - header_actions - show_filters [0]

As you can see name is quick-filter, as it should be but value shows up as [0].

URl params show that the correct value is sent to Matomo:
?e_c=worksites&e_a=header_actions&e_n=show_filters&e_v=off

Behaviour > Events:

Matomo version is 4.16.0

Am I doing something wrong?

Thanks for your help.

Hi,
shouldn’t [value] be a figure only? Like 50, 1, 0 etc

1 Like