Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Custom Dimensions didnt refresh on React #413

Open
aparedes00030 opened this issue Jan 10, 2021 · 1 comment
Open

Custom Dimensions didnt refresh on React #413

aparedes00030 opened this issue Jan 10, 2021 · 1 comment

Comments

@aparedes00030
Copy link

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
@mauscoelho
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants