I have a Wordpress blog at http://www.systemagnostic.com. On my internal network, the Apache webserver is called “shadowbunt”. Using Piwik has so far shown eight visits the last two weeks, while StatPress statistics also running on the same site shows over 200 separate visits, more in line with number of comments and the Apache access log, so something is definitely off, and I was thinking that perhaps there is something with the external/internal IP mapping.
The address “shadowbunt” is obviously not visible to the outside. I must admit I do not know JS/PHP well enough to know what is being processes in the browser and what is being processed serverside. This is the code Piwik suggests and I currently use:
The reference to “shadowbunt”, my internal server hostname, does show up in the HTML page source when browsing my Wordpress site, and since the browser cannot reach my web server using an internal address I presume this fails and should be replaced with http://www.systemagnostic.com?
To further complicate things, in my Wordpress installation, any URL not pointing to a page in Wordpress will take you to the home page (Apace rewrite rules), so http://www.systemagnostic.com/piwik points to my Wordpress installation and not Piwik (which was the way I intended it, as I don’t want Piwik open to the world - only accessible from my LAN at http://shadowbunt/piwik). Incidentally, www.systemagnostic.com is an Apache virtualhost.
PS: The link on the Piwik FAQ to configuration examples are broken