• Resolved mmtomm

    (@mmtomm)


    Sorry for a really stupid question!

    I have integrated matomo analytics into my wordpress site long time ago and it works.
    I can see the script just before the closing head tag in the html source.

    <script type="text/javascript">
      var _paq = window._paq || [];
      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
      _paq.push(["setCookieDomain", "*.mysite.com"]);
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="https://matomo.mysite.com/piwik/";
        _paq.push(['setTrackerUrl', u+'matomo.php']);
        _paq.push(['setSiteId', '12']);
        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+'matomo.js'; s.parentNode.insertBefore(g,s);
      })();
    </script>

    But I cannot find it in my header.php of my child theme nor in the parent theme.

    So actually I forgot how I’ve implemented it and, shame on me, I did not any documentation for myself.
    Even when I egrep all of the files of my site with keywords like ‘matomo’ or ‘trackPageView’ or any other found in the script I do not get any results.
    I also do not use an tag manager.
    I want to remove matomo tracking, I need to find out, where/how I have integrated it.
    Any idea for me stupid? :-/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Do you have a plugin installed that lets you add snippets to headers? Take a look at your plugins.

    Thread Starter mmtomm

    (@mmtomm)

    you can call me stupid @sterndata
    Yes I’ve been using “Cookie Notice & Compliance for GDPR / CCPA” plugin and integrated it there. But I’ve replaced the plugin with another one some time ago but the integration was not removed with the plugin.

    Thank’s a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘matomo is running but can’t find out where/how I integrated it’ is closed to new replies.