WordPress.org

Plugin Directory

WP-Piwik

This plugin adds a Piwik stats site to your WordPress or WordPress multisite dashboard.

Where can I find the Piwik URL and the Piwik auth token?

To use this plugin you will need your own Piwik instance. If you do not already have a Piwik setup, you have two simple options: use either Self-hosted or Cloud-hosted.

As soon as Piwik works, you'll be able to configure WP-Piwik: The Piwik URL is the same URL you use to access your Piwik, e.g. for the demo site: http://demo.piwik.org. The auth token is some kind of secret password, which allows WP-Piwik to get the necessary data from Piwik. To get your auth token, log in to Piwik, click at your user name (top right) and click at "API" (left sidebar menu). E.g., on (this demo site)[http://demo.piwik.org/index.php?module=API&action=listAllAPI&idSite=7&period=day&date=yesterday] you can see the auth token "anonymous".

How to reset/remove all WP-Piwik settings without uninstalling?

Login to your admin dashboard and open http://YOUR_BLOG_URL/wp-admin/options-general.php?page=wp-piwik/wp-piwik.php&tab=support&mode=resetconfirmed&full=1

Tracking does not work on HostGator! / The test script shows an empty response.

Try to enable the "avoid mod_security" option (WP-Piwik settings, Tracking tab) or create a mod_security whitelist.

WP-Piwik does not work with SSL!

See this support thread.

Overview shortcode shows no unique visitors using a yearly range.

See Piwik FAQ.

Can I also access some Piwik values using a PHP call?

Yes, you can access also available shortcodes using PHP, too. See this example: echo $GLOBALS['wp_piwik']->shortcode(array('module' => 'post', 'range' => 'last300', 'key' => 'sum_daily_nb_uniq_visitors'));

Requires: 4.0 or higher
Compatible up to: 4.2.1
Last Updated: 2015-4-27
Active Installs: 50,000+

Ratings

4.8 out of 5 stars

Support

20 of 25 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1 100,2,2
100,3,3
100,3,3 100,4,4 100,2,2 100,1,1 100,1,1
100,8,8 100,4,4
100,2,2 80,5,4 100,1,1 100,1,1 100,1,1
86,7,6 80,5,4 100,3,3
100,1,1
100,3,3
100,2,2 100,5,5
100,1,1 100,1,1 100,2,2 100,2,2
100,2,2 78,9,7 100,3,3 100,4,4 100,2,2 100,1,1
100,5,5
71,7,5 100,1,1
100,2,2 100,2,2 100,2,2
100,1,1
60,5,3 100,2,2
80,5,4 91,11,10
75,4,3 100,1,1 100,1,1 100,1,1
100,1,1 77,13,10 67,15,10 100,1,1 100,1,1 100,1,1
100,6,6 100,1,1 100,5,5 100,3,3 100,1,1
0,5,0 100,4,4
93,14,13
80,5,4 100,1,1 100,4,4 100,4,4 100,4,4 100,10,10
100,10,10
100,4,4 88,8,7 100,8,8 100,4,4 78,9,7 100,1,1 100,1,1 100,2,2 100,4,4 100,7,7
75,4,3
100,8,8
100,5,5
100,1,1
100,4,4
75,4,3 50,2,1 83,6,5
100,1,1 90,10,9
100,1,1
0,1,0 100,1,1
33,3,1 0,1,0 100,1,1 67,6,4
80,5,4 100,4,4 100,7,7
100,8,8
100,1,1
67,6,4
67,3,2
86,7,6 100,1,1
75,4,3 0,1,0 100,2,2 100,1,1 100,1,1 100,3,3 100,4,4
100,2,2
100,1,1