-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Combine PHP + JS tracking #13023
Comments
I would actually not recommend doing this if page speed or SEO matters to you since you could assume each page view would take potentially 300ms longer. Also you would not be able to use any caching (eg a wordpress caching plugin etc). |
Three ideas:
|
I want to combine server side and client side tracking, to have advantages of both.
(Server side will count all visits, also where piwik.js is blocked. While JS tracking can give addition informations where it is not blocked, like clicks an outgoing links, screen resolutions, etc.)
I know there was multiple feature requests in the past. (like #9963 or #10422)
They where all closed as duplicate of #9665.
But I think #9665 is something completely different. The discussion is about analysing server logfiles.
I want to combine with PHP tracking not using any server logfiles.
I'm thinking of something like this (just a quick idea):
In php code:
And in the template:
If JS or Matomo is blocked PHP will count the visit. If Matomo will run client side it could extend the php tracking with all information the JS Tracker usually saves.
I think this is different from #9665 because a PHP solution is independent from any other server software. Also merging the client and server side tracking data is much easier for Matomo, because it could share any kind of id between server and cliend side. I think the log file analysis is more complicated compared to this.
The text was updated successfully, but these errors were encountered: