Piwik does not report hits other than from my LAN


#1

I just installed Piwik on a local server - it’s Centos 5.5 and Apache 2.2.14, and, it does not have mod_security installed. All of the requirements, during the installation, were met - as indicated by green checkmarks. I was testing this with a Wordpress site. I’ve seen some people be “funny” about using their actual domain names in these posts and, well, I just don’t give a darn - I pasted the following into the footer.php file:


        <?php wp_footer(); ?>
  <!-- Piwik -->
  <script type="text/javascript">
  var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.webputzer.com/analytics/" : "http://www.webputzer.com/analytics/");
  document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
  </script><script type="text/javascript">
  try {
  var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
  piwikTracker.trackPageView();
  piwikTracker.enableLinkTracking();
  } catch( err ) {}
  </script><noscript><p><img src="http://www.webputzer.com/analytics/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->

</body>

Piwik immediately began logging hits from a local computer but ignores hits from anything outside my LAN. I have direct access to my logs (I’ve actually installed this on two domains) and my logs indicate traffic other than myself. This is doing the same thing on both domains…The obvious question: what’s wrong?

Thanks for any input.


(Matthieu Aubry) #2

your site has a JS piwik code with “https://www.webputzer.com/putzstats/” so there are 2 piwik? maybe you got confused? :wink:


#3

Matt: I sincerely appreciate you taking the time to answer…and it does seem to be working, now. But are you saying that there is something wrong with the javascript? If so, could you please explain? Honestly, I don’t know what this means:

your site has a JS piwik code with "[www.webputzer.com]; so there are 2 piwik?

What do you mean that there are “2 piwik”? Bear in mind that I am completely new to this… That is the code that the script generated. If you could elaborate I would appreciate it greatly…

Thanks,

Guy Merritt
Flint, MI