Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

WP-Piwik

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

This plugin adds a Piwik stats site to your WordPress dashboard. It's also able to add the Piwik tracking code to your blog.

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 (Piwik 2.9.0 or higher) or Cloud-hosted.

Requirements: PHP 5.4 (or higher), WordPress 4.0 (or higher), Piwik 2.9 (or higher)

Languages: English, French, German. Partially supported: Albanian, Azerbaijani, Belorussian, Chinese (simplified), Dutch, Greek, Italian, Lithuanian, Norwegian, Persian, Romanian, Russian, Spanish, Swedish, Ukrainian

Note: If you vote "It's broken", please tell me about your problem. It's hard to fix a bug I don't know about! ;-)

This plugin is not created or provided by the Piwik project team.

Shortcodes

You can use following shortcodes if activated:

[wp-piwik module="overview" title="" period="day" date="yesterday"]

Shows overview table like WP-Piwik's overview dashboard. See Piwik API documentation on VisitsSummary.get to get more information on period and day. Multiple data arrays will be cumulated. If you fill the title attribute, its content will be shown in the table's title.

[wp-piwik module="opt-out" language="en" width="100%" height="200px"]

Shows the Piwik opt-out Iframe. You can change the Iframe's language by the language attribute (e.g. de for German language) and its width and height using the corresponding attributes.

[wp-piwik module="post" range="last30" key="sum_daily_nb_uniq_visitors"]

Shows the chosen keys value related to the current post. You can define a range (format: lastN, previousN or YYYY-MM-DD,YYYY-MM-DD) and the desired value's key (e.g., sum_daily_nb_uniq_visitors, nb_visits or nb_hits - for details see Piwik's API method Actions.getPageUrl using a range).

[wp-piwik]

is equal to [wp-piwik module="overview" title="" period="day" date="yesterday"].

More shortcodes will follow soon.

Credits

  • Graphs powered by jqPlot (GPL 2.0 and MIT) and and jQuery Sparklines (New BSD License).
  • Metabox support inspired by Heiko Rabe's metabox demo plugin.
  • Donations: Marco L., Rolf W., Tobias U., Lars K., Donna F., Kevin D., Ramos S., Thomas M., John C., Andreas G., Ben M., Myra R. I., Carlos U. R.-S., Oleg I., M. N., Daniel K., James L., Jochen K., Cyril P., Thomas K., the Piwik team itself, and all people flattering this.
  • All users who send me mails containing criticism, commendation, feature requests and bug reports - you help me to make WP-Piwik much better!

Thank you all!

Author André Bräkling
Profile
Contributors Braekling
Tags analytics, piwik, statistics, stats, wpmu
  1. wp-piwik screenshot 1

    WP-Piwik settings.

  2. wp-piwik screenshot 2

    WP-Piwik statistics page.

  3. wp-piwik screenshot 3

    Closer look to a pie chart.

  4. wp-piwik screenshot 4

    WordPress toolbar graph.

Install WP-Piwik on a simple WordPress blog

  1. Upload the full wp-piwik directory into your wp-content/plugins directory.

  2. Activate the plugin through the 'Plugins' menu in WordPress.

  3. Open the new 'Settings/WP-Piwik Settings' menu, enter your Piwik base URL and your auth token. Save settings.

  4. If you have view access to multiple site stats and did not enable "auto config", choose your blog and save settings again.

  5. Look at 'Dashboard/WP-Piwik' to get your site stats.

Install WP-Piwik on a WordPress blog network (WPMU/WP multisite)

There are two differents methods to use WP-Piwik in a multisite environment: * As a Site Specific Plugin it behaves like a plugin installed on a simple WordPress blog. Each user can enable, configure and use WP-Piwik on his own. Users can even use their own Piwik instances (and accordingly they have to). * Using WP-Piwik as a Network Plugin equates to a central approach. A single Piwik instance is used and the site admin configures the plugin completely. Users are just allowed to see their own statistics, site admins can see each blog's stats.

Site Specific Plugin

Just add WP-Piwik to your /wp-content/plugins folder and enable the Plugins page for individual site administrators. Each user has to enable and configure WP-Piwik on his own if he want to use the plugin.

Network Plugin

The Network Plugin support is still experimental. Please test it on your own (e.g. using a local copy of your WP multisite) before you use it in an user context.

Add WP-Piwik to your /wp-content/plugins folder and enable it as Network Plugin. Users can access their own statistics, site admins can access each blog's statistics and the plugin's configuration.

0.10.1.0

  • Bugfix: Fixed memory & timeout issue on multisites

0.10.0.9

  • Add clear cache function.
  • Add clear settings (reset) function.

0.10.0.8

  • Bugfix: Sitebrowser link (settings page, support) fixed
  • Bugfix: Use new settings directly after saving (reloading is not necessary anymore)
  • Optimized caching behaviour
  • Language update (German, French)

0.10.0.7

  • Bugfix: Opt-out shortcode output fix
  • Bugfix: Opt-out shortcode will also work in "pro" and "php" mode
  • Bugfix: Test script link (settings page, support) fixed
  • Bugfix: Removed test script errors and notices
  • Bugfix: Keep sure the revion ID is stored and avoid re-installing the plugin again and again
  • Bugfix: http/pro - after configuration the settings page had to be reloaded once to start working
  • Typo fixes

0.10.0.6

  • Bugfix: Option storage bug if WP-Piwik is used as single site plugin on blog networks
  • Bugfix: WP-Piwik will work without Piwik superuser access, again
  • Bugfix: Choosing the site without auto config works again

0.10.0.5

0.10.0.4

  • Bugfix: Settings link in admin notices fixed
  • Bugfix: Shortcode result will appear where expected
  • Bugfix: 0.9.9.18 settings will be kept (if WP-Piwik was not reconfigured after updating to 0.10.0.3, yet)
  • Feature: If Piwik returns an error instead of a tracking code, this error will be visible

0.10.0.3

  • Public beta of WP-Piwik 1.0
  • Full refactored code
  • Feature: Limit referral cookie lifetime
  • Feature: Enable content tracking

0.9.9.18

  • Improvement: Define additional file extensions for tracking downloads
  • Improvement: Added a POT file to support translators (Note: 1.0 will change a lot, so please don't spend too much time in translating the current version, e.g., by creating an all new translation. With 1.0 I will also offer a translation platform to support your work.)
  • Improvement: If necessary, you can force Piwik to use HTTP or HTTPS now (e.g., to avoid redirections from http to https)
  • Avoided a naming collision with Woo Theme

0.9.9.17

0.9.9.16

  • Bugfix: PHP API causes plain text output issue (see 0.9.9.11)
  • Bugfix: Shortcode output translated

0.9.9.15

  • Bugfix: One more commit error
  • Bugfix: Adding up problem related to the overview widget
  • Bugfix: Fixes missing brackets on ob_start
  • Hotfix: Adds /0.9.9.15 to js/index.php to force a reload
  • Bugifx: Replaced broken support link
  • Added a bitcoin donation link

0.9.9.14

  • Bugfix: Commit errors in 0.9.9.13

0.9.9.13

  • Improvement: Only activate/ load admin components if an admin page is actually loaded. Thanks to Michael!
  • Bugfix: Proxy tracking will work again. Piwik 2.7 or higher is recommended.
  • Bugfix: Avoid a PHP notice in dashboard
  • NOTE: If you update Piwik and use the "add tracking code" feature, please also update your WP-Piwik tracking code: Just open the WP-Piwik tracking code settings and save them again.

0.9.9.12

  • Bugfix: Avoid forced relogin on site change (WP network)
  • Bugfix: Avoid multiple annotations on post updates
  • Bugfix: User mergeSubdomains instead of mergeAliasURLs
  • Feature: Added mergeAliasURLs as additional feature

0.9.9.11

0.9.9.10

0.9.9.9

  • Update: PHP API will use namespaces (Piwik 2.x compatibility)
  • Update: Piwik URL isn't necessary to use PHP API anymore.
  • Feature: Limit cookie lifetime
  • Feature: Track visitors across all subdomains
  • Feature: Disable custom var box if necessary
  • Feature: Choose if you like to add the tracking code to your site's footer or header
  • Feature: New shortcode (post)
  • Feature: Add data-cfasync=false to script tag if necessary.
  • Feature: Add annotations on new posts, see http://linuxundich.de/webhosting/beim-veroeffentlichen-von-wordpress-posts-eine-anmerkung-in-piwik-setzen/
  • Bugfix: Do not load sparklines plugin if toolbar not shown
  • Bugfix: PHP API will work again (urlencoding removed)
  • jqPlot and jquery.sparkline updated
  • Partly refactored code

0.9.9.8

  • Feature: Per post stats (shown at the edit post page)
  • Feature: Track RSS views using a measurement pixel

0.9.9.7

  • Bugfix: Error messages won't by cached anymore
  • Bugfix: Custom vars will now be added properly
  • Bugfix: Missing slash in proxy mode added
  • Feature: Track users on admin pages

0.9.9.6

  • Bugfix: Proxy script will work again
  • Option: Enable/disable one week caching
  • Load config file using full path to avoid side effects

0.9.9.5

  • Fatal error on statistics settings page fixed

0.9.9.4

0.9.9.3

  • Sparkline script update (IE 10 compatibility)
  • Syntax error fixes

0.9.9.2

0.9.9.1

0.9.9.0

0.9.8.1

  • Warning on empty data removed (overview table)
  • Removed a possible deadlock
  • Bugfix: Apply tracking code settings everytime the tracking code is updated
  • Reset/uninstall script bugfix regarding network mode

0.9.8

0.9.7

  • Shortcodes added
  • WP-Piwik will rename sites in Piwik if site name changes in WordPress
  • Bugfix: Tracking code changes should stay active after WP-Piwik updates

0.9.6.3

  • Piwik 1.9+ compatibility fix (Piwik 1.9 required!)
  • Browser version details added

0.9.6.2

0.9.6.1

  • Toolbar graph bugfix

0.9.6

  • Option: Disable SSL peer verification (REST API)
  • Option: Use own user agent
  • Test script displays additional information (e.g. response headers)
  • Using WordPress metabox concept properly
  • Bugfix: Sparkline script only loaded if required
  • Stats site supports up to 3 columns
  • Network admin stats: Choose site using a paged table (instead of a select box).
  • Feature: Custom variables, using custom post meta boxes.
  • Some minor bugfixes

0.9.5

  • WordPress 3.4 compatible (workaround)

0.9.4

  • Requires at least Piwik 1.8.2!
  • Choose between HTTP API or PHP API
  • Show graph on WordPress Toolbar
  • Add option to disable cookies - Thanks to Mathias T.!
  • Update bugfix: Upgrading from WP-Piwik 0.8.7 or less will work again
  • Some minor bugfixes

0.9.3

  • Bugfix: Adding a new site will work again.

0.9.2

  • Uses $wpdb->blogs instead of $wpdb->prefix.'blogs' to keep it compatible to different database plugins
  • Bugfix: SEO dashboard widget will work even if "last 30" is selected
  • Bugfix: New created blogs won't show "Please specify a value for 'idSite'." anymore.
  • Bugfix: New network sites without title will be created
  • Bugfix: Upgrading from old versions will work again
  • Tabbed settings
  • Debug tools added (testscript, site configuration overview and WP-Piwik reset)
  • Support forum RSS feed
  • Language updates
  • Optionally use of set_time_limit(0) on stats page time out

0.9.1

  • Bugfix: Usage as "Site Specific Plugin" mixed up the different sites settings (network mode)
  • Hotfix: Avoid "Unknown site/blog" message without giving a chance to choose an existing site. Thank you, Taimon!

0.9.0

  • Auto-configuration
  • No code change required to enable WPMU mode anymore (Still experimental. Please create a backup before trying 0.9.0!)
  • All features in WPMU available
  • Bugfix: Removed unnecessary API calls done with each site request - Thank you, Martin B.!
  • Bugfix: No stats on dashboard (sometimes this issue still occured, should be fixed now)
  • Code cleanup (still not finished)
  • Minor UI fixes
  • Minor language/gettext improvements
  • Security improvements
  • Show SEO rank stats (very slow, caching will be added in 0.9.1)
  • WordPress dashboard SEO rank widget (very slow, caching will be added in 0.9.1)
  • New option: use js/index.php
  • New option: avoid mod_security
  • Mulisite: Order blog list alphabetically (Network Admin stats site)
  • Settings: Order site list alphabetically (site list shown if order conf is disabled)

0.8.10

0.8.9

  • WP 3.2 compatible, metabox support

0.8.8

  • Bugfix: Will also work with index.php in Piwik path
  • Bugfix: last30 dashboard widget - show correct bounce rate

0.8.7

  • New language files (Azerbaijani, Greek, Russian)
  • Fixed hardcoded database prefix (WPMU-Piwik)
  • Minor bugfixes: avoid some PHP warnings

0.8.6

  • Added an optional visitor chart to the WordPress dashboard
  • WPMU/multisite bug fixed
  • Minor bugfixes

0.8.5

  • Select default date (today or yesterday) shown on statistics page
  • Bugfix: Shortcut links are shown again
  • German language file update
  • Minor optical fixes (text length)

0.8.4

  • New stats in overview box
  • WP 3.x compability fixes (capability and deprecated function warnings)
  • Some minor bugfixes
  • New config handling
  • Code clean up (not finished)

0.8.3

  • Piwik 1.1+ compatibility fix

0.8.2

0.8.1

  • Use load_plugin_textdomain instead of load_textdomain
  • Fixed js/css links if symbolic links are used
  • Changed experimental WPMU support to experimental WP multisite support
  • Try curl() before fopen() to avoid an OpenSSL bug
  • Added Norwegian language file by Gormer.
  • Don't worry - new features will follow soon. ;)

0.8.0

  • Using jqPlot instead of Google Chart API
  • Some facelifting
  • Some minor bugfixes

0.7.1

  • Track 404-pages in an own category
  • Get some page (and article) details
  • Language updates

0.7.0

  • Bugfix: Percent calculation fixed
  • Bugfix: Visitor chart: No label overlapping if < 50 visitory/day
  • Visitor chart: Added a red unique visitor average line
  • Visitor table: Added a TOTAL stats line
  • Pie charts: Show top 9 + "others", new color range
  • Option: Show Piwik shortcut in overview box
  • Some performance optimization

0.6.4

  • Unnecessary debug output removed
  • German language file update
  • WordPress dashboard widget: last 30 days view added

0.6.3

  • Click at a visitor stats day-row to load its details.
  • Add stats overview to your WordPress dashboard

0.6.0

  • Added experimental WPMU support
  • Switch to disable Google Chart API
  • Added Albanian [sq] language file
  • Added Belorussian [be_BY] language file

0.5.0

  • Display statistics to selected user roles
  • Some HTML fixes (settings page)

0.4.0

  • Tracking filter added
  • Resolution stats
  • Operating System stats
  • Plugin stats

0.3.2

  • If allow_url_fopen is disabled in php.ini, WP-Piwik tries to use CURL instead of file_get_contents.

0.3.1

  • WordPress 2.8 compatible
  • Bugfix: Warnings on WP 2.8 plugins site
  • Dashboard revised
  • Partly optimized code

0.3.0

  • WP-Piwik dashboard widgetized.
  • Stats-boxes sortable and closeable.
  • German language file added
  • Browser stats and bounced visitors

0.2.0

  • First public version.

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).

Can I contribute to WP-Piwik as translator?

You like to contribute to WP-Piwik translations? Please use the Transifex translation community.

Of course, I will add missing languages if requested, and I will also upload the existing language files of older WP-Piwik releases.

If you can't (or don not want to) use transifex, you can also translate languages/wp-piwik.pot delivered with WP-Piwik.

Thank you very much! :-)

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.

Share  
Download
Version 0.10.1.0

Requires WordPress version: 4.0 or higher

Compatible up to: 4.2.2

Last Updated 20 May 2015

Date Added: 04 Jun 2009

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

4.7 stars
42 ratings
409,921 downloads

Compatibility

Not Enough Data

Reports:
Works: 2
Broken: 0