react-ga4 icon indicating copy to clipboard operation
react-ga4 copied to clipboard

Unset GTag

Open PathToLife opened this issue 3 years ago • 1 comments

Hi,

I was wondering if we have a way to unset gtag once set?

    ReactGA.gtag('set', 'user_properties', {
      app_uuid: userDetails.uuid,
    });

Related https://github.com/PriceRunner/react-ga4/issues/18

PathToLife avatar Jan 12 '22 01:01 PathToLife

Seems like there isn't a function to unset

https://developers.google.com/tag-platform/gtagjs/reference#set

Perhaps we can instead set undefined or null.

PathToLife avatar Jan 12 '22 01:01 PathToLife