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 a6859e5..c6ec18e 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" */
 <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() {
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function() {