Hey there folks
I am new to Matomo and was wondering if someone could let me know where we add the custom code snippets that are described in the docs? For instance where should I add the following snippet, for it to work properly?
custom
_paq.push([âsetDocumentTitleâ, document.domain + â/â + document.title]);
_paq.push([âtrackPageViewâ]);
general code
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//{$PIWIK_URL}/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', {$IDSITE}]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
**g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);**
})();
</script>
<!-- End Matomo Code -->
thanks in advance