Skip to content
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

Standardize site-specific tracker configuration based on server side data #15191

Open
diosmosis opened this issue Nov 23, 2019 · 0 comments
Open
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.

Comments

@diosmosis
Copy link
Member

HeatmapSessionRecording configures itself during tracker through a special configs.php endpoint. The endpoint accesses entities for the site and provides it to the tracker. This type of endpoint should be standardized so any plugin can send data to the tracker before tracking.

One possible implementation would be:

  • a new event that can allow plugins to add data that should be accessible to the JS tracker
  • return this data when requested via query param in tracker requests (instead of just the GIF beacon)
  • on first request in the JS tracker, send the new query param to get the extra data

Some things to consider:

few edge cases but can workaround it like
• user doesn't send a tracking request on that page ... then if we haven't send a tracking request eg 1s after on-ready then we would maybe need to issue a request to get this info
• it takes ages for the readyEvent to be triggered in the browser which then triggers the pageview which we then need to wait for the response and it might mean we're getting some information too late and by then the user moved already to the next page (that be fine though likely since it would mean user did likely not take any action)

@diosmosis diosmosis added the c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. label Nov 23, 2019
@diosmosis diosmosis added this to the 4.0.0 milestone Nov 23, 2019
@diosmosis diosmosis self-assigned this Dec 27, 2019
@tsteur tsteur modified the milestones: 4.0.0, Backlog (Help wanted) Feb 11, 2020
@diosmosis diosmosis removed their assignment Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
Projects
None yet
2 participants