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
Document adding Custom JS to tracker via tracker.js / tracker.min.js on https://developer.matomo.org/guides/enrich-js-tracker #11572
Document adding Custom JS to tracker via tracker.js / tracker.min.js on https://developer.matomo.org/guides/enrich-js-tracker #11572
Comments
It is technically possible but as @mattab mentioned there are no docs which actually is missing because it is not really a public API and neither supported right now. Basically you can create a |
@tsteur maybe we could make this public API in Piwik 4? (moving tentatively) |
could maybe make it but maybe lets see again when we get to it. Would require a bit more work and especially documentation. Not having a big opinion on it but would need to think more about it also for long term how this should work |
Let's document that this "API" exists, first of all. I used this interface also for my plugin for #11405 after trying hard with custom variables, setCustomTrackingParameter (not available for JS tracker) and so on... it was quite a pain. |
What is also undocumented is that the plugin class needs to override the method isTrackerPlugin like so
My plugin broke with Matomo 3.13 due to lacking this code, I had to make a bugfix release. |
@johsin18 fixed the |
@loki495 things are now documented in https://developer.matomo.org/guides/enrich-js-tracker |
Is there a way for a plugin to add custom JS to tracker response and have the piwik.js parse/execute it?
https://forum.piwik.org/t/returning-json-jsonp-from-tracker/23657
The text was updated successfully, but these errors were encountered: