-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to hide piwik server URL in the Javascript #2019
Comments
I have a beta version going now. See attached file. Instructions:
The token_auth is required so that the visitor IP can be overwritten (otherwise the IP would be set to the IP of your example.org server doing the request)
Notice the absence of piwik.js, since the attached piwik.php will do a proxy to both the static JS file piwik.js, as well as redirect all tracking requests to the "secret" piwik.php You will have to update the JS snippet on all your websites to point to the "proxy" piwik.php on this local website, that you just uploaded. PLease test (I have done very small testing...) and report here. When all is working good, I will put up a FAQ or doc page on piwik.org |
Attachment: piwik.php proxy file to put on each tracked website |
any feedback, is it working as expected? I got only one report that it is working so far. thx |
Apparently this is working good! I think, that we can put this in core somehow... and document it in a FAQ? |
I followed these directions, but it does not seem to be working... For the Piwiik JS replacement code, I should replace example.org with the URL of the website I placed the piwik.php script on? Also, the original tracking code has: <noscript><p><img src="http://myserver.com/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript> Can I remove that line since it has the URL of the Piwiki server I am trying to hide. |
Tried on another website and still not working. |
In php.ini, you need:
|
SupraTT followed up in the forum and it is working |
Add local cache for .js file. And when there is timeout save visit info to temp file to send later? |
(In [5049]) Fixes #2019
|
See FAQ at: http://piwik.org/faq/how-to/#faq_132 |
This is currently broken in 1.11.1 and the upstream GitHub version that was suppose to fix this problem does not solve the issue. More details can be found in the thread I started initially. http://forum.piwik.org/read.php?2,102949 The errors I am seeing and I saw no change in the amount of errors after changing to the "updated" version
All the errors currently are all very similar to the one listed above Thanks and hopefully this is something that is an easy fix, I can post anything else you guys need for this as well. |
It got rid of the error but tracking goals is still hit and miss, it only triggered 5 times when I hit the goal 40 times. So there is still something going on I feel. Not sure where to look for info as to whats keeping the goals from triggering now. Thanks. |
Here was some errors that started up a little bit after trying new github version
thanks |
please ask in the forums with the bug description and steps to reproduce. Note: make sure you wait 1-2 seconds before each goal conversion (max 1 per second) |
its already in the forums |
For your error, I have a feeling it may be caused by mod_security, make sure it's disabled and it might work. Otherwise see suggestions in the forum thread |
where to place the piwik tracking code in php websites. |
Few users are tracking all their websites (hundreds or even thousands) with Piwik. One problem is that all the JS codes have the URL of the Piwik server in it. It is then possible to search in a search engine, or using custom bot, all websites that are use this Piwik instance and guess all websites that belong to one user.
SEE FAQ that explains how to do this
The text was updated successfully, but these errors were encountered: