• Resolved UltraMarathonEER

    (@ultramarathoneer)


    I use Piwik and the WP-Piwik plugin for tracking stats on all of my sites, and as soon as I turn on CMP, I no longer get stats. I tried to add the tracking code manually into the global content page, but CMP strips out the script javascript function and just puts all of the tracking code on the page. Please advise

    <!-- Piwik -->
    <script type="text/javascript">
      var _paq = _paq || [];
      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="//www.xxxxxxxx.xxx/";
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', 'XXXXX']);
        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 Piwik Code -->
    
Viewing 1 replies (of 1 total)
  • Plugin Author NiteoThemes

    (@niteo)

    Hello @ultramarathoneer

    Currently only Google analytics code is supported and there is no work around that without code changes.

    We will release new version soon where I can include this small change as it seems like a good feature to have!

    Alex

Viewing 1 replies (of 1 total)
  • The topic ‘Tracking’ is closed to new replies.