@Sayeeda12 opened this Issue on February 2nd 2021

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 commented on February 2nd 2021

_idvc *

@diosmosis commented on February 3rd 2021 Member

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 commented on February 3rd 2021

Hi,

It's unfortunate that idvc is removed. We use it heavily to determine
visits and manage sessions in our JS analytics library. It is used as part
of our request and within customRequestProcessing, we do a lot of
operations based on this parameter.

You say that it's handled at server side now. But is it still dependent on
sessionCookieTimeout? Earlier when session timeout expired, visit count
incremented. Is it the same now? How? Please explain. Also I'm not sure how
to use Live.get.....() within our JS library. Please provide some
references if possible. Thanks in advance.

Kind regards,
Sayeeda

On Wed, 3 Feb, 2021, 7:29 am dizzy, <notifications@github.com> wrote:

Hi @Sayeeda12 https://github.com/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.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/matomo-org/matomo/issues/17178#issuecomment-772151260,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGT2YIOSBUQKKBTYOJ3KUVLS5CUZDANCNFSM4W6N7D2A
.

@diosmosis commented on February 4th 2021 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.

This Issue was closed on February 4th 2021
Powered by GitHub Issue Mirror