Arnaud73 / ngx-matomo

Matomo (aka. Piwik) web analytics for Angular applications
MIT License
102 stars 47 forks source link

Support to track events with string values #22

Closed benzmarkus closed 2 years ago

benzmarkus commented 5 years ago

I currently it is only supported to track numeric values. Matomo supports string values to.

Arnaud73 commented 5 years ago

Matomo documentation specifically describes values as being numeric.

Can you describe your use case where you would like to use regular strings as values for events ?

alex-steinberg commented 4 years ago

I would also like this ability. Data is both quantitative and qualitative and without strings, we can't track qualitative data without complex mapping of numbers to strings.

We have an app that connects to a number of different back-end instances, each of which has a string identifier. I would like to attach this identifier to each event, along with other metadata. The only way to do that currently is to use numbers and map them to strings (e.g. 10 = "ZA", 20 = "UK" etc).

Firebase Analytics has this idea already, they allow you to specify if an event param is a string or a number. See point 5 of their help docs.

Arnaud73 commented 4 years ago

I'll have a look at it.

dtomaszewski commented 3 years ago

It would be great to have it, value is often non numeric

Arnaud73 commented 2 years ago

Time has passed and Matomo has not changed its API for tracking events. The value still must be numeric. In case they change their model, I'll update the function of the tracker to allow whatever will be possible.