We would like to trigger a “new visit” manually on demand.
This is meant to create new visits (but with the same user) when tracking custom vars, and the conditions (custom vars) change.
The first attempt has been to remove the session cookie, but Piwik will still get the previous visit id via recognizeTheVisitor.
This behavior is meant to prevent abuse, and might get changed by setting trust_visitors_cookies, but that’s not the proper way of addressing this probably, is it?
Is there a supported way to make Piwik create a new visit, without the visit/session timeout being reached?
It appears the session cookie is only used for referrer counting, setting the refname cookie (in getRequest)?!
btw: looking at recognizeTheVisitor, it seems like a quite some code is only relevant for when trust_visitors_cookies=true, like the $found and $idVisitor handling (which do not get used by default).
This should get moved to the trust_visitors_cookies==true conditional block, if I’m not missing anything here.