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

Piwik.js: Explain a user should call setSessionCookieTimeout when changing visit length #10082

Merged
merged 3 commits into from May 16, 2016

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Apr 20, 2016

Otherwise piwik.js increases visit count only after 30min

@tsteur tsteur added the Needs Review PRs that need a code review label Apr 20, 2016
@tsteur tsteur added this to the 2.16.2 milestone Apr 20, 2016
; after his last page view, it will be recorded as a new visit
; after his last page view, it will be recorded as a new visit. In case you are using the Piwik JavaScript tracker to
; calculate the visit count correctly, make sure to call the method "setSessionCookieTimeout" eg
; `_paq.push(['setSessionCookieTimeout', timeoutInSeconds=1800000])`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be maybe 1800 instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copy / pasted example from piwik.js where it says Set session cookie timeout (in seconds). Defaults to 30 minutes (timeout=1800000) and 1800000 is actually the default value. Should be probably 1800 as it is multiplied by 1000 in the method.

@tsteur
Copy link
Member Author

tsteur commented Apr 21, 2016

adjusted it, also in piwik.js

@sgiehl sgiehl merged commit a776ded into master May 16, 2016
@sgiehl sgiehl deleted the visit_standard_length_doc branch May 16, 2016 15:33
@mattab mattab changed the title Explain a user should call setSessionCookieTimeout when changing visit length Piwik.js: Explain a user should call setSessionCookieTimeout when changing visit length Aug 2, 2016
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants