Title: Wp-piwik not tracking when using proxy
Last modified: August 30, 2016

---

# Wp-piwik not tracking when using proxy

 *  [Axelsnoski](https://wordpress.org/support/users/axelsnoski/)
 * (@axelsnoski)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/wp-piwik-not-tracking-when-using-proxy/)
 * Hey,
 * Wp-piwik doesn’t track when using proxy mode, Ive got a couple of site setup 
   and tracking fine without wp-piwik using proxy and they work but when I try to
   achieve the same using the plugin it does not track, if normal mode is enabled
   tracking works…
 * same issue as here:[https://wordpress.org/support/topic/hide-url-of-self-hosted-piwik](https://wordpress.org/support/topic/hide-url-of-self-hosted-piwik)
 * I have tried this on multiple sites with the same result, wp-piwik can create
   a new profile just fine and tracks in normal mode.
 * [https://wordpress.org/plugins/wp-piwik/](https://wordpress.org/plugins/wp-piwik/)

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

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wp-piwik-not-tracking-when-using-proxy/#post-6659796)
 * Hi,
 * if your issue is similar than the other one, can you try to answer the questions
   mension there? Maybe this will give a hint why your visitors aren’t tracked:
 * > If the ID is valid and the JS is loaded if you open the mentioned URL (the 
   > leading // is correct), please continue with these steps:
    - Does your Piwik setup use the same protocol as your blog does? E.g., if your
      blog is using [https://example.com](https://example.com), Piwik should also
      be available using [https://…mypiwik&#8230](https://…mypiwik&#8230); and vice
      versa. If your blog offers both protocols, Piwik should also support both.
      Otherwise, you can force Piwik to use a specific protocol inside WP-Piwik’s
      expert settings. (It will replace the // by http:// or [https://](https://wordpress.org/support/topic/wp-piwik-not-tracking-when-using-proxy/?output_format=md).)
    - Please also check, if any JavaScript errors appear on your site. See [https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors](https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors)
      for further instructions.
    - If everything still looks fine, please contact the Piwik community at [http://forum.piwik.org/](http://forum.piwik.org/)–
      it looks like WP-Piwik is doing well, but the tracking does not work, anyway.
 * [https://wordpress.org/support/topic/hide-url-of-self-hosted-piwik](https://wordpress.org/support/topic/hide-url-of-self-hosted-piwik)
 *  Thread Starter [Axelsnoski](https://wordpress.org/support/users/axelsnoski/)
 * (@axelsnoski)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wp-piwik-not-tracking-when-using-proxy/#post-6659801)
 * >  If the ID is valid and the JS is loaded if you open the mentioned URL (the
   > leading // is correct), please continue with these steps:
 * Yes I didn’t want to hijack that thread though…
 * > Does your Piwik setup use the same protocol as your blog does? E.g., if your
   > blog is using [https://example.com](https://example.com), Piwik should also
   > be available using [https://…mypiwik&#8230](https://…mypiwik&#8230); and vice
   > versa. If your blog offers both protocols, Piwik should also support both. 
   > Otherwise, you can force Piwik to use a specific protocol inside WP-Piwik’s
   > expert settings. (It will replace the // by http:// or [https://](https://wordpress.org/support/topic/wp-piwik-not-tracking-when-using-proxy/?output_format=md).)
 * Yes I have tested with multiple sites always the same result…
 * > Please also check, if any JavaScript errors appear on your site. See [https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors](https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors)
   > for further instructions.
 * There are no errors
 * > If everything still looks fine, please contact the Piwik community at [http://forum.piwik.org/](http://forum.piwik.org/)–
   > it looks like WP-Piwik is doing well, but the tracking does not work, anyway.
 * No unless I can get support for WP-Piwik there ?
    I am very sure WP-Piwik is 
   the issue, I tried normal mode in WP-Piwik and it works, Proxy mode in WP-Piwik
   doesn’t.
 * I have multiple sites tracking just fine using proxy done manually…
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wp-piwik-not-tracking-when-using-proxy/#post-6659848)
 * No, you won’t get support for WP-Piwik there, but for the proxy script. Looking
   at the given information, the proxy code is embedded in a correct way and no 
   JavaScript errors occure (_btw. did you just try to open the URL used by the 
   tracking code? Is the Piwik JS code shown as expected?_).
 * WP-Piwik uses Piwik’s own proxy code and “injects” its settings. Of course, there
   can be something wrong with this injection, but I don’t know how to check this
   or how to debug the Piwik tracking itself.
 * If you can figure out why the embedded code which does not cause any errors does
   not track, and there is something I have to change in WP-Piwik, it would be happy
   to fix this… But currently I have no idea what’s wrong in this specific case.
 *  Thread Starter [Axelsnoski](https://wordpress.org/support/users/axelsnoski/)
 * (@axelsnoski)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wp-piwik-not-tracking-when-using-proxy/#post-6659849)
 * I did a bunch of trouble shooting and everything looked fine, I even replaced
   the code manually and it didn’t work (in the same directory)
    inputting my tracking
   code manually using wp-piwik and replacing the proxy script with the one I’m 
   using on other sites details in the php file rather than the config so i know
   it should work, but it didn’t… I was thinking it was an issue getting the details
   from the DB but no since it can communicate with piwik and create a site profile
   just fine.
 * The script points to /wp-content/plugins/wp-piwik/proxy/piwik.php
    when using
   the proxy it uses the php file rather than the JS since its hiding the code if
   it showed the JS it would reveal the main server address, no ?
 * I just don’t have the time to mess with it to fully find the issue at the moment,
   the only think i could think was some sort of permissions issue but I don’t think
   its that…
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/wp-piwik-not-tracking-when-using-proxy/#post-6659863)
 * Because of the latest Piwik updates, I will have a look at the proxy code again.
   Maybe Piwik did some changes which I can transfer to WP-Piwik and which may help
   to solve this issue.

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

The topic ‘Wp-piwik not tracking when using proxy’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/wp-piwik-not-tracking-when-using-proxy/#post-6659863)
 * Status: not resolved