diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/proxy-hide-piwik-url/README.md | 4 | ||||
-rw-r--r-- | misc/proxy-hide-piwik-url/piwik.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/misc/proxy-hide-piwik-url/README.md b/misc/proxy-hide-piwik-url/README.md index f4e6ab86c7..016bbe1536 100644 --- a/misc/proxy-hide-piwik-url/README.md +++ b/misc/proxy-hide-piwik-url/README.md @@ -18,10 +18,10 @@ To run this properly you will need 2. create a user, set the login for example: "UserTrackingAPI" 3. Assign this user "admin" permission on all websites you wish to track without showing the Piwik URL 4. Copy the "token_auth" for this user, and paste it below in this file, in `$TOKEN_AUTH = "xyz"` -5. In this file, below this help test, edit $PIWIK_URL variable and change http://piwik-server.com/piwik/ with the URL to your Piwik server. +5. In this file, below this help test, edit $PIWIK_URL variable and change http://your-piwik-domain.example.org/piwik/ with the URL to your Piwik server. 6. Upload this modified piwik.php file in the website root directory, for example at: http://trackedsite.com/piwik.php This file (http://trackedsite.com/piwik.php) will be called by the Piwik Javascript, - instead of calling directly the (secret) Piwik Server URL (http://piwik-server.com/piwik/). + instead of calling directly the (secret) Piwik Server URL (http://your-piwik-domain.example.org/piwik/). 7. You now need to add the modified Piwik Javascript Code to the footer of your pages at http://trackedsite.com/ Go to Piwik > Settings > Websites > Show Javascript Tracking Code. Copy the Javascript snippet. Then, edit this code and change the last lines to the following: diff --git a/misc/proxy-hide-piwik-url/piwik.php b/misc/proxy-hide-piwik-url/piwik.php index 7ce18e28df..785c145dae 100644 --- a/misc/proxy-hide-piwik-url/piwik.php +++ b/misc/proxy-hide-piwik-url/piwik.php @@ -12,10 +12,10 @@ // https://github.com/piwik/piwik/tree/master/misc/proxy-hide-piwik-url#piwik-proxy-hide-url // ----- -// Edit the line below, and replace http://piwik-server.com/piwik/ +// Edit the line below, and replace http://your-piwik-domain.example.org/piwik/ // with your Piwik URL ending with a slash. // This URL will never be revealed to visitors or search engines. -$PIWIK_URL = 'http://piwik-server.com/piwik/'; +$PIWIK_URL = 'http://your-piwik-domain.example.org/piwik/'; // Edit the line below, and replace xyz by the token_auth for the user "UserTrackingAPI" // which you created when you followed instructions above. |