-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
analytics.reset() does not reset userId in google-analytics plugin #340
Comments
True. Based on the docs it should be sending GA a userId of |
I guess the only workaround currently is to do a page reload, although I suppose GA would still store a cookie or value in local storage in that case so even then it could remember the old value. |
Correct, even page reload will not work so I am extending the plugin to handle my use case (chrome kiosk mode - multiple users on same device):
If I don't do points 2 & 3 the subsequent events on the same device will still be associated with the same user in analytics. |
Yeah looks like ga4 and ga3 plugin don't have a analytics/packages/analytics-plugin-original-source/src/index.js Lines 40 to 43 in 0fb5860
We'd need a |
Google analytics plugin does not have an implementation for reset, hence after:
analytics.reset()
userId is still being sent.
The text was updated successfully, but these errors were encountered: