diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-05-07 00:01:07 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-05-07 00:01:07 +0400 |
commit | 814b031289196390775014cb35736dc16bab09ed (patch) | |
tree | 81ef20961ddb1cd2f1fa4687e15a2eb56d24f762 /misc | |
parent | 380c1793139c4b050aec4fe704e9a8d93e8aa7cb (diff) |
Using standard example domains rather than other websites. Thanks Ronald Volgers for the suggestion!
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. |