• Not sure if this is related to the plugin or Piwik only, but starts by asking here

    Everything seems to load fine, but no visits are tracked. Found another thread with similiar problem that said open “Open Developer Tools” in Chrome and see if there’s any error, so I did and this is what I found:
    Failed to load resource: https://MYSITE.se/wp-content/plugins/wp-piwik/proxy/piwik.php the server responded with a status of 500 (Internal Server Error)

    I’ve tried finding out what to do next, but no luck, so appreciate any thoughts on how to fix this

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Nicklas

    (@blekfis)

    Tried tracking an other site, worked perfectly when using the code Piwik provides. Using the code WP-Piwik gave me didn’t work… I’ve got 200+ sites I would like to track, but prefer to not add code to aech and every one manually.

    Any ideas how to move forward and what the problem might be…?

    The code that doesn’t work

    <!-- Piwik -->
    <script type="text/javascript">
      var _paq = _paq || [];
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="//80.248.227.66/wp-content/plugins/wp-piwik/proxy/"
        _paq.push(['setTrackerUrl', u+'piwik.php']);
        _paq.push(['setSiteId', '1']);
        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.php'; s.parentNode.insertBefore(g,s);
      })();
    </script>
    <!-- End Piwik Code -->

    And the code that does work

    <!-- Piwik -->
        <script type="text/javascript">
          var _paq = _paq || [];
          _paq.push(['trackPageView']);
          _paq.push(['enableLinkTracking']);
          (function() {
            var u="//80.248.227.66/piwik/";
            _paq.push(['setTrackerUrl', u+'piwik.php']);
            _paq.push(['setSiteId', '1']);
            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>
        <noscript><p><img src="//80.248.227.66/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
       <!-- End Piwik Code -->
    Thread Starter Nicklas

    (@blekfis)

    Still without a clue, still appreciate any thoughts on how to fix this

    Plugin Author braekling

    (@braekling)

    First of all, you are trying to use WP-Piwik in proxy mode. If you don’t need the proxy feature, you should just switch to “standard” or “js/index.php” – this will lead to a default Piwik code similar to your working code.

    To understand why the proxy script causes a 500 error, you should refer your server log files or call the proxy script (//yourserver/wp-content/plugins/wp-piwik/proxy/piwik.php) while debug output is enabled.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Failed to load resource’ is closed to new replies.