Skip to content
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

Setting user ID to null throws an error #15169

Closed
koistya opened this issue Nov 18, 2019 · 1 comment
Closed

Setting user ID to null throws an error #15169

koistya opened this issue Nov 18, 2019 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@koistya
Copy link

koistya commented Nov 18, 2019

When user logs out, we may need to reset user ID. But setting it to null currently produces an error:

window._paq.push(['setUserId', null]);
@tsteur
Copy link
Member

tsteur commented Nov 18, 2019

You can use the method resetUserId. In Matomo 3.13.0 it would not trigger an error anymore since a change was made but generally you'd want to set an empty string if you don't want to use resetUserId

@tsteur tsteur closed this as completed Nov 18, 2019
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants