Hello,
I’m a website developper. For each one, I install Matomo along on my client host for he can monitor his site himself.
Is it possible I monitor all this websites in my own Matomo instance too ?
Thanks.
Hello,
I’m a website developper. For each one, I install Matomo along on my client host for he can monitor his site himself.
Is it possible I monitor all this websites in my own Matomo instance too ?
Thanks.
Hi,
It will work, but you can’t just paste both tracking codes into the site.
There is an extensive manual:
https://developer.matomo.org/guides/tracking-javascript-guide#multiple-piwik-trackers
That’s it. Thank you.
Hi ! What if the two instances are not configured the same ? I tried to use this method :
window.matomoAsyncInit = function () {
// will never issue an HTTP request to configs.php for this Matomo instance
var tracker = Matomo.getAsyncTracker('siteUrl/matomo.php', 21);
if (tracker.HeatmapSessionRecording) {
tracker.HeatmapSessionRecording.disable();
}
};
But still I can see request to the config.php file. How can I do ? (one server is RGPD compliant and the other is not).
Finaly when I use matomoHeatmapSessionRecordingAsyncInit instead of matomoAsyncInit It works on the tracker…