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

_idvc is no longer available with Matomo 4 #17178

Closed
Sayeeda12 opened this issue Feb 2, 2021 · 4 comments
Closed

_idvc is no longer available with Matomo 4 #17178

Sayeeda12 opened this issue Feb 2, 2021 · 4 comments
Labels
wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@Sayeeda12
Copy link

We used idvc to manage visits but I don't see it being passed as part of the request anymore. Is this changed? How do we know which session the visitor is in? How can I get the visit count now? Please help

@Sayeeda12
Copy link
Author

_idvc *

@diosmosis
Copy link
Member

diosmosis commented Feb 3, 2021

Hi @Sayeeda12, the _idvc parameter is no longer used after Matomo 4, the visit count is now determined server side via a running counter. Can you explain what you use the parameter for and how you use it? To get the information now you'd have to use the Live.getLastVisitsDetails API.

@Sayeeda12
Copy link
Author

Sayeeda12 commented Feb 3, 2021 via email

@diosmosis
Copy link
Member

Hi @Sayeeda12, the visit count is incremented server side if the last visit time was further in the past than the visit length configured in matomo.

If you need it client side it would probably be easiest for you to simply keep track of it yourself. You can create a cookie value holding the last visit time and the current visit count. If the current time for a page view is > the last visit time + visit length increment the visit count. Update the last visit time on every page load.

For future requests for information on how to use or integrate matomo, please use the forums: https://forum.matomo.org/ as the issue tracker is only for feature requests and bug reports.

@diosmosis diosmosis added the wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it. label Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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