You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom dimension values should appear in the dashboard exactly as they were sent.
Current Behavior
When "0" is used as the value for a custom dimension, it appears as "-" in the dashboard.
Possible solution
Workaround: Represent boolean values in another way, e.g. "false"/"true".
Steps to Reproduce
Post an analytics event containing a custom dimension such as dimension1=0
Go to the Matomo dashboard > Visitors > [the custom dimension in question]
The bug does not happen when viewing the equivalent data in the Visitor profile view.
Context
We are using the custom dimensions feature to collect data about the user's environment such as whether a screen reader is active or whether an external keyboard is connected. Custom dimension values can only be strings and we have chosen to convert all of our bool values to "0"/"1".
The bug makes the presented data harder to understand. It can also raise concerns about the data being correct in the first place, which it appears to be.
Your Environment
Matomo Version: 4.12.3
PHP Version: 7.4
Browser: Google Chrome 108.0.5359.124
Operating System: macOS Monterey 12.5.1
The text was updated successfully, but these errors were encountered:
Hi @rberggreen
Thanks for creating this report. The value 0 should indeed be shown in the label column. The hyphen should only be shown in other columns. I'll have a quick look if we can easily fix that.
sgiehl
added
Bug
For errors / faults / flaws.
and removed
Potential Bug
Something that might be a bug, but can't be reproduced (yet).
To Triage
An issue awaiting triage by a Matomo core team member
labels
Dec 21, 2022
Expected Behavior
Custom dimension values should appear in the dashboard exactly as they were sent.
Current Behavior
When "0" is used as the value for a custom dimension, it appears as "-" in the dashboard.
Possible solution
Workaround: Represent boolean values in another way, e.g. "false"/"true".
Steps to Reproduce
dimension1=0
The bug does not happen when viewing the equivalent data in the Visitor profile view.
Context
We are using the custom dimensions feature to collect data about the user's environment such as whether a screen reader is active or whether an external keyboard is connected. Custom dimension values can only be strings and we have chosen to convert all of our bool values to "0"/"1".
The bug makes the presented data harder to understand. It can also raise concerns about the data being correct in the first place, which it appears to be.
Your Environment
The text was updated successfully, but these errors were encountered: