In Piwik there is the functionality to create new visits on demand.
Learn more in this FAQ: How do I create new visit on demand, so that several users using the same computer or browser are counted separately?
The goal of this ticket is to add a helper method to the PHP Tracker class, to easily create new visit.
The PHP Tracker is documented here.
This was suggested in https://github.com/piwik/piwik/pull/218
Follows up this ticket: #3951 New Tracking API feature: &new_visit=1 lets you create new visits on demand
In 1600e344012362cd19c1791fe89ecc85256319e4: Fixes #5123 PHP Tracker, added new method setForceNewVisit() to force creation of a new visit + with test