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

Do not set a visitorId if cookies are disabled #7783

Merged
merged 2 commits into from Apr 29, 2015
Merged

Do not set a visitorId if cookies are disabled #7783

merged 2 commits into from Apr 29, 2015

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Apr 28, 2015

This will prevent from creating a new visit for each tracking request when eg trust_visitors_cookies = 1 is enabled. Currently, we create a new visit for every tracking request. Instead the visitor will be detected based on configId. Eg

_paq.push(['trackPageView']);
_paq.push(['trackPageView']);
_paq.push(['trackGoal', '1']);

Generates 3 visits.

Not sure re any side effects. I tested it locally and it worked for me.

refs #7780 #7778

@mattab
Copy link
Member

mattab commented Apr 28, 2015

LGTM!

@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Apr 28, 2015
mattab pushed a commit that referenced this pull request Apr 29, 2015
Do not set a visitorId if cookies are disabled
@mattab mattab merged commit f708e70 into master Apr 29, 2015
@sgiehl sgiehl deleted the 7780 branch May 11, 2015 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants