Arbitrarily Extend Session Duration #14897
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
Hello,
I have a use case where I want to arbitrarily extend a visit duration. The situation is something like this.
1 - User logs in
2 - User opens a 3rd party link in an iframe or popup
3a - User continues interacting with main site
or
3.b - User closes the browser
I want to extend the duration for as long as the user is in Step 2 so that Step 3a is not treated as a new visit, and so that I can record an accurate duration for Step 2 in the case of Step 3b.
Is it possible to do that now? I know that this has been discussed a few times in the past, specially around ping/heartbeat, but most of the threads are over a year old:
#9610 (comment)
#9617
#13656
https://forum.matomo.org/t/how-to-send-a-heartbeat-via-http-tracking-api/27832/5
Passing in some sort of parameter to ping that extends the session beyond visit_standard_length would be quite handy.
On a related note, the documentation for "Ping" at https://developer.matomo.org/guides/tracking-javascript states "If they are sent within the standard visit length, they will extend the existing visit and the current last action for the visit" which no longer appears to be the case.
Thanks a lot.
-Igor
The text was updated successfully, but these errors were encountered: