matomo-tracker
matomo-tracker copied to clipboard
Custom Dimensions didnt refresh on React
Context
I have created a HOC (higher-order component) to decorate the component pages of an application I'm working on, but I've faced some problems with custom dimensions.
In that HOC is where I use the hook to extract the trackPageView and trackEvent, and those are made available in the decorated component as props.
Here goes the problem: when I track an action with custom dimensions if I go to a different page, and I track the visit of that page, it keeps the custom dimensions, even if I don't send any.
Expected behavior If I don't send any custom dimensions, they get cleared per request.
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Chrome
- 88
I got the same issue, it seems like you can update the value of the dimension but can't delete them