updated matomo tracking code to include subdomains master release_08112020-1215
authordanix <danix@danix.xyz>
Sun, 8 Nov 2020 11:15:02 +0000 (12:15 +0100)
committerdanix <danix@danix.xyz>
Sun, 8 Nov 2020 11:15:02 +0000 (12:15 +0100)
danixland-site-plugin.php

index a6859e50c088670171fbbd33a445086aa26c3a0d..c6ec18e07a64fc323152d9d3ae9c0771029bdb4a 100644 (file)
@@ -87,6 +87,9 @@ if ( ! function_exists( 'matomo_tracking' ) ) :
 <script type="text/javascript">
        var _paq = window._paq = window._paq || [];
        /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+       _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
+       _paq.push(["setCookieDomain", "*.danix.xyz"]);
+       _paq.push(["setDomains", ["*.danix.xyz"]]);
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function() {