Incompatibility with Piwik?

  • Author
    Posts
  • #33572
    Jeff

    Hi there, I’ve been scratching my head for quite some time on this, until I realized that the issue does not occur with other themes (ex: Newmedia) but only with Nirvana: it seems Nirvana is currently incompatible with Piwik.org’s tracking code. HTTP requests do not get through at all to whatever server is running piwik (I checked the Apache access logs to be sure), so visits cannot get recorded at all.

    I tried both using the official wp-piwik plugin or setting the javascript code directly in Nirvana’s settings (it seems there’s a field for inserting custom javascript code). The javascript tracking code taken directly from Piwik is the same as what wp-piwik would insert. It looks like this:

    
    <!-- Piwik -->
      var _paq = _paq || [];
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="//whatever.my_piwik_server.com/";
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', 5]);
        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);
      })();
    <!-- End Piwik Code --> 
    

    Could there be some code in Nirvana that conflicts with this?
    Thanks

    #33592
    Zed
    Cryout Creations mastermind

    I have only tested Piwik once, but on Parabola, and it appeared to work.

    We’ll look into this and see if there’s a problem or not.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Incompatibility with Piwik?’ is closed to new replies.