Update browser-plugins on existing visit #6408
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
Hi,
it would be nice if the browser-plugin-list of the visitor is updated on each request.
This is the GitHub-Issue for this Forum-Feature-Suggestion.
Use-Case-1
If the visitor-id (uid, cid or _id) is the same, the detected plugins in the request should be used to update the "log_visit"-table. So the visitor could be found, even if the visitor-id is not present and his plugins changed during his visit.
Example (Actions of one session):
So the matching by browser finger print and visitor-id fails. If the browser plugin list in the DB would have been updated during his visit, he could be found again.
Use-Case-2
I'm detecting the browser plugins with some JavaScript code, pass it to the server and track the request on server side (Java). But on the first request the detection has not yet run. So on the first request the visit is saved in the DB whiteout any browser-plugins. On the second request (and all following) the server knows the detected browser-plugins and can pass it to the piwik-tracking-api, but piwik doesn't update the browser-plugin-list of the visit (which was created on the first request).
These are the columns of the table "log_visit" which should be updated:
Therefore the function "onExistingVisit()" must be added to the Plugin* - Classes in "piwik / plugins / UserSettings / Columns /". The function would be called from Visit.getExistingVisitFieldsToUpdate() see "piwik / core / Tracker / Visit.php":
Mit freundlichen Grüßen aus Augsburg / Best regards from Augsburg
CADENAS GmbH
Software Development
Lucas Kögel
The text was updated successfully, but these errors were encountered: