Matomo Initiate Tracking
Add the tracking code required for monitoring the application activity with Matomo
Description
The brick adds the tracking code required for starting monitoring the application activity with Matomo. Typically, the use of MATOMO starts with plugging this brick in the onLoad
function.
You can find your site id
on the analytics page in the JS sample code which looks like this:
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called
before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.olympe.io/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId',
<b>'zmwDKmPK'</b>]);
var d=document, g=d.createElement('script'),
s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js';
s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
The bold text above is where the site id
is.
If the site id
is not provided, the Matomo bricks will automatically be disabled
Make sure the tracker blockers policy of your browser allows transition of the data to Matomo.
Inputs
- Control Flow (Control Flow)
- site id (String): Must be a non-empty string to enable Matomo tracking. Otherwise Matomo monitoring will be considered as disabled by every other Matomo bricks
- domain (String): Example:
analytics.olympe.io
Outputs
- Control Flow (Control Flow)