Title: WP-Piwik Setup
Last modified: August 21, 2016

---

# WP-Piwik Setup

 *  Resolved [dchapple](https://wordpress.org/support/users/dchapple/)
 * (@dchapple)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wp-piwik-setup/)
 * you say:
    To enable Piwik statistics, please enter: your Piwik base URL (like
   [http://mydomain.com/piwik](http://mydomain.com/piwik)) or your Piwik server 
   path (like /var/www/mydomain.com/httpdocs/piwik/) your personal Piwik authentification
   token. You can get the token on the API page inside your Piwik interface. It 
   looks like “1234a5cd6789e0a12345b678cd9012ef”.
 * then there is a box labeled “Piwik URL (REST API)
    is this where you are supposed
   to put the url path where Piwik is loaded? If so, why do you call it “Piwik BASE
   URL” above and here you refer to it as “Piwik URL (REST API) ?? Confusing.
 * And does it matter if you list your url with the “www” or not?
    example [http://www.mydomain.com/piwik](http://www.mydomain.com/piwik)
   vs [http://mydomain.com/piwik](http://mydomain.com/piwik)
 * Also Expert settings:
    What am I supposed to set for the “user agent”? PHP is
   default () What would happen if I selected “WP-Piwik” instead of PHP?
 * thanks
 * [https://wordpress.org/plugins/wp-piwik/](https://wordpress.org/plugins/wp-piwik/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/wp-piwik-setup/#post-4670145)
    - Piwik URL means the URL were Piwik itself is located. What REST means is explained
      here: [http://en.wikipedia.org/wiki/Representational_state_transfer](http://en.wikipedia.org/wiki/Representational_state_transfer)
    - The URL has to equal the Trusted Hostname configured in Piwik: [http://piwik.org/faq/troubleshooting/#faq_171](http://piwik.org/faq/troubleshooting/#faq_171)
    - Never change expert settings if you don’t know what they are for. 😉 PHP does
      not send a user agent in most configurations which may cause problems with
      some server configurations (e.g., if (spam) bots should be locked out by their
      user agent).

Viewing 1 replies (of 1 total)

The topic ‘WP-Piwik Setup’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/wp-piwik-setup/#post-4670145)
 * Status: resolved