I have a site which is behind a VPN and I have Piwik installed on a web server sat on the internet. While the google analytics code in the VPN site is able to send data to my Google Analytics account, the Piwik code is not sending data. Below is the code I have in my VPN web site pages. Is there something I need to do here to get it to start sending data to the foobar site?
I installed Firebug and added the tracking code to piwik’s config ini. I then opened two windows. One to my piwik installation and one for the remote site that I want tracking info for. I visited some pages on the remote site but no POST or GET HTTP requests were sent to piwik it would seem (I had the Firebug console enabled to monitor the http requests).
Just to reiterate that the google analytics code seems to be sending the tracking info fine, but I’d much prefer to use Piwik if possible.
Any ideas why it’s not sending the HTTP requests to Piwik?
Can I just add, not that I’m entitled to any kind of turn around time here, but I’ve really only got today and tomorrow to get this sorted before I fly out to the event location and do my main work (photography). I could really do with sorting this out before then or I’ll have to make do with Google Analytics. So I appreciate in advance any help you can give me before then.
I cannot do that I’m afraid as that site with the tracker code is behind a VPN. You wouldn’t be able to access it. I copied the tracking code in my first post.
I’ve tried replacing the piwik url with the ip address but it still didn’t work. However using Firebug I do see the GET Request sent - here’s what goes out.
HTTP Response Headers - shows that it receives a positive response from Piwik server but nothing appears in the Dashboard or real time views, or visitor log.
to the ini file yesterday and so the previous HTTP Response was with that setting enabled. I will check again and do another test shortly and post the Reponse header again.
I also checked my piwik server logs and I do see the tracking GET request come into my piwik server. So this appears to me now that the Piwik code installed on my piwik server is not processing the request.
On the tracker web site I received a HTTP Response of 200 and so it finds the file at the url but I don’t see any information in the Response in Firebug (it’s blank).
To summarise, here’s what I know
The tracking page is sending the HTTP GET request
The Piwik server is receiving the HTTP Get request and acknowledging that with a HTTP 200 response
The Piwik dashboard and visitor log are not reflecting they have received the tracking request
The Piwik database has no entries from the tracking requests received
One last point - I enabled log_level = VERBOSE and then triggered the tracker code on the tracker web site. Nothing gets written to the /piwik/tmp/logs/piwik.log file. I see entries for when I visit the piwik dashboard, but nothing which shows the tracking code being invoked.
At this point I am completely at a loss to understand where the problem resides.
INFO Piwik\Tracker[2014-05-01 04:56:13] [64557] ---------------------------
INFO Piwik\Tracker[2014-05-01 04:56:13] [64557] INIT
INFO Piwik\Tracker[2014-05-01 04:56:13] [64557] Querying Piwik API at: http://ourspaceonthenet.com/piwik/index.php
INFO Piwik\Tracker[2014-05-01 04:56:13] [64557] Running Piwik 2.1.0 as Super User: dpeuser
INFO Piwik\Tracker[2014-05-01 04:56:21] [64557] ERROR: The Piwik URL http://ourspaceonthenet.com/piwik/index.php does not seem to be pointing to a Piwik server. Response was 'X-Powered-By: PHP/5.3.20P3P: CP='OTI DSP COR NID STP UNI OTPa OUR'Set-Cookie: _pk_uid=deleted; expires=Wed, 01-May-2013 04:56:12 GMTTk: 1Content-Type: image/gifGIF89a€!ù,D;'.