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

Tracker: Custom variables in scope page need to be cleared after tracking a pageview #9162

Closed
tsteur opened this issue Nov 3, 2015 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@tsteur
Copy link
Member

tsteur commented Nov 3, 2015

When calling setCustomVariables in scope page we never clear the set custom variables after a tracked pageview. This can be especially problematic in a single page application / website where one tracks multiple pageviews without reloading the whole page.

This is for example the case in our Piwik app itself. We track a new pageview whenever a new report is loaded via ajax so a later pageview might actually use the custom variables of a previous pageview.

@tsteur tsteur added the Bug For errors / faults / flaws / inconsistencies etc. label Nov 3, 2015
@mattab
Copy link
Member

mattab commented Nov 25, 2015

This may be a BC break for some, so adding tentatively to Piwik 3

@mattab mattab added this to the 3.0.0 milestone Nov 25, 2015
@mattab
Copy link
Member

mattab commented Nov 29, 2017

As we will deprecate custom variables in #11524, closing this issue as Won't fix.

We now recommend to use Custom Dimensions instead.

@mattab mattab closed this as completed Nov 29, 2017
@mattab mattab added the wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it. label Nov 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants