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
New Tracking API feature: &new_visit=1 lets you create new visits on demand #3951
Comments
Also, you may use the "Custom Visitor ID" feature via '&cid=' and pass it 16 hexa character ID. To enable &cid= you must set [Tracker]tracking_requests_require_authentication=0 in the config file. Then you can create visits on demand, and set custom visitor ID to each. As part of: #3490 we will make this even better |
Added a new FAQ: Piwik trigger new visits |
Hi Matt! There is a small Bug left: Flow: A Visitor visits a Site (Visitor A) -> The new visitor mechanism is triggered with new_visit=1 (Visitor B) -> The next Pageview (without new_visit=1) should be attributed to Visitor B but is attributed to Visitor A. |
In 2bd91ec: Fixes #3951 The new deleteCookies function can be used, whenever new_visit=1 is used, to ensure the cookies are re-created for the new visitor. For example use as: _paq.push(["deleteCookies"]);
|
Is this the right technique to track as a new visit? When I'm setting
Piwik tracks a new visitor, even it is a returning visitor. Seems to be a bug, right? |
see also #5123 Tracker: new method setForceNewVisit() to force creation of a new visit |
SEE FAQ for How to instructions! http://piwik.org/faq/how-to/#faq_187
This is a very powerful feature for many of you :)
This feature lets Piwik users manually tell Piwik to create new visits when it suits, using the &new_visit=1 Tracking API parameter.
Use cases for this small but great new feature:
The unique visitor stats will be more accurate, if you are able to use this feature when users of your website/system logout and login.
This feature is of course protected, by default it requires admin token_auth.
You can use the feature in Javascript such as:
To enable this feature, you must configure your config.ini.php:
The text was updated successfully, but these errors were encountered: