Custom dimension seems to be treated like a string although it is an integer

I have setup a custom dimension that I am tracking via JS, it is working fine, but the problem is that we send integers and Matomo seems to be treating those values like strings. I cannot use numeric operators like “equals” or “larger than”.

Is there anything that can be done about it? Or is it that values of custom dimensions can only be strings? I cannot find anything in the docs.

For the benefit of others facing this issue, here is a discussion I started on Github abolut it:

https://github.com/matomo-org/plugin-CustomDimensions/issues/110

TLDR; Custom dimensions are indeed treated as strings.

1 Like