Piwik.php not loaded?


#1

Hello

I hope there is someone here that can help me.

I have the java tracking code and image tracking code as fallback that is generated added to the footer of my sites, and when I check the site with safaris web inspector there are 2 piwik.php files loaded or actually 1 is loaded and one is not…

https://lweb.dk/img1.png

sorry it’s in Danish…

There are no error messages in the log files on piwik…

If I check the piwik.org site the 2 piwik.php files are loaded fine as images, and I have narrowed it down to the java script, if I remove the java tracking code and leave the image tracking code both piwik.php files are not loaded

Below is the code as I insert on the page just before


<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(['setRequestMethod', 'POST']);
  _paq.push(['setDocumentTitle', document.domain + "/" + document.title]);
  _paq.push(['appendToTrackingUrl', 'bots=1']);
  _paq.push(["trackPageView"]);
  _paq.push(["enableLinkTracking"]);

  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://lweb.dk/stat/";
    _paq.push(["setTrackerUrl", u+"piwik.php"]);
    _paq.push(["setSiteId", "6"]);
    var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
    g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Piwik Code -->
   
<noscript>
<!-- Piwik Image Tracker -->
<img src="https://lweb.dk/stat/piwik.php?idsite=6&rec=1&rand&apiv=1&bots=1" style="border:0" alt="" />
<!-- End Piwik -->
</noscript>


(Matthieu Aubry) #2

Check your server error log file for any error there?


#3

the only errors there is in the server log is robots.txt missing from most of my virtual domains other then that theres are no errors.