Doesn't work when proxy script is configured
-
Hi,
while I was using the default tracking everything was fine.
When I switched to the proxy script no hits are reported.I have followed and set all from here: https://github.com/piwik/piwik/tree/master/misc/proxy-hide-piwik-url#piwik-proxy-hide-url
I’ve set and check everything, i.e. allow_fopen is on, I created the user on the Piwik and gave it admin privileges, etc, etc.
I’ve checked few times, all is fine, but hits aren’t tracked.Eventually I have set the test html page with the tracking code from the Piwik installation (and proxy still present). It is working – the hits are reported on my Piwik installation while the Piwik installation isn’t reported in the page’s source code. So it must be the problem with the WP-Piwik plugin itself.
I compared the code and the only difference I see is the URL from this line:
var u=((“https:” == document.location.protocol) ? “https” : “http”) + “:URL”;1. For the URL WP-Piwik is addressing the plugin – “://domain.com/wp-content/plugins/wp-piwik/”
2. It is working when I used the code from my Piwik installation, i.e. the URL is just – “://domain.com/”Please can this be fixed?
Thanks!
- The topic ‘Doesn't work when proxy script is configured’ is closed to new replies.