matomo-tracker icon indicating copy to clipboard operation
matomo-tracker copied to clipboard

Custom Dimensions didnt refresh on React

Open aparedes00030 opened this issue 4 years ago • 1 comments

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

aparedes00030 avatar Jan 10 '21 13:01 aparedes00030

I got the same issue, it seems like you can update the value of the dimension but can't delete them

mauscoelho avatar Oct 12 '22 10:10 mauscoelho