Title: Piwik URL &amp; Auth Token When using Piwik Proxy Script?
Last modified: August 22, 2016

---

# Piwik URL & Auth Token When using Piwik Proxy Script?

 *  [Live4TheRisk](https://wordpress.org/support/users/live4therisk/)
 * (@live4therisk)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/piwik-url-auth-token-when-using-piwik-proxy-script/)
 * I’m trying to follow the instructions to hide the Piwik Server URL and am having
   problems?
 * I keep getting the following problem:
    “An error occured: Please check URL and
   auth token. You need at least view access to one site”
 * What should I be entering in for the Piwik URL (REST API) and Auth token?
 * I don’t want to enter the URL of the Piwik Server and would like to enter the
   URL of the tracking site
 * But…
 * The problem is the auth token its expecting is coming from the Piwik Server.
 * Not sure what to do here because the code that this plugin generates that gets
   put in the footer shows the Piwik URL that you enter, which defeats the whole
   purpose of using the proxy piwik.php file in the first place.
 * Any ideas?
 * [https://wordpress.org/plugins/wp-piwik/](https://wordpress.org/plugins/wp-piwik/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/piwik-url-auth-token-when-using-piwik-proxy-script/#post-5518962)
 * Configure WP-Piwik as expected, go to tracking settings and activate the tracking
   mode “proxy script”.
 * === OR ===
 * Is this a duplicate of this one?
    [https://wordpress.org/support/topic/piwik-php-proxy-script-mode-doesnt-work?replies=7](https://wordpress.org/support/topic/piwik-php-proxy-script-mode-doesnt-work?replies=7)
 * Currently I’m not able to reconstruct this behavior. At my own sites the proxy
   mode works fine. If you can give any additional information, please post it in
   the mentioned thread.
 *  Thread Starter [Live4TheRisk](https://wordpress.org/support/users/live4therisk/)
 * (@live4therisk)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/piwik-url-auth-token-when-using-piwik-proxy-script/#post-5519007)
 * This is the code that gets generated by the plugin after I set it to proxy script.
 * I can see that that the option got set because its using piwik.php instead of
   the piwik.js, but it always shows the URL i put on the first page.
 *     ```
       <script type="text/javascript">var _paq=_paq||[];_paq.push(['trackPageView']);_paq.push(['enableLinkTracking']);(function() {
       	var u="//SHOWS WHAT I ENTER ON FIRST SCREEN/";
       	_paq.push(['setTrackerUrl',u+'piwik.php']);
       	_paq.push(['setSiteId',1]);var d=document,g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
       	g.type='text/javascript';g.async=true;g.defer=true;g.src=u+'piwik.php';s.parentNode.insertBefore(g,s);})();
       </script>
       ```
   
 *  Thread Starter [Live4TheRisk](https://wordpress.org/support/users/live4therisk/)
 * (@live4therisk)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/piwik-url-auth-token-when-using-piwik-proxy-script/#post-5519011)
 * I should add that I am using the W3 Total Cache plugin.
 * Maybe this has something to do with it?
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/piwik-url-auth-token-when-using-piwik-proxy-script/#post-5519081)
 * Hm, can you try to disable the Cache plugin? Just to be sure it does not affect
   WP-Piwik.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Piwik URL & Auth Token When using Piwik Proxy Script?’ is closed to new
replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/piwik-url-auth-token-when-using-piwik-proxy-script/#post-5519081)
 * Status: not resolved