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


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:

Behaviour > Events:

Matomo version is 4.16.0

Am I doing something wrong?

Thanks for your help.

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

1 Like