Tutorial: Install WordPress Piwik

Piwik is a tool audience analysis for your website , created in 2007 that is replacing an older project on behalf of phpmyvisites . This statistical tool is probably best known in the open source category. It is often compared to Analytics rightly found there since almost all the features available on the Google tool. The interface is simple, clear and incorporates some elements of Google Analytics.

Slightly less convenient than the Google tool because the free version is not immediately “turnkey” offer Piwik . still many advantages merit and that any site editor some attention


The advantages of Piwik are many :

  • All statistics related to your visitors are staying with you. No re-use of your data by a third party.

  • The hosted version “Cloud-hosted” pays off.

  • Fully customizable.

  • Additions of possible extensions (to like a CMS).

  • a relatively large and vibrant community

the development of Piwik is constantly evolving and developers do not lack ideas. You can find the roadmap of the Piwik project .

The tool is recommended by the CNIL, as its setting allows it both to avoid creating cookies and making anonymous addresses IP visitors. A guide has also been created if you are interested. It explains how set the tool to be in accordance with the recommendations of the CNIL.

A demonstration is available on the official website if you want to test the tool without installing it.

install Piwik

When your Piwik installation is fully transferred to your accommodation, you will arrive on the first page that explains the installation procedure.


the system check page will check if your accommodation has the modules required for the installation. There should not be any problem for the vast majority of web hosts. Note that the PHP version 5.3 is the minimum requirement and it will be PHP 5.5 by the end of 2016. (more info on your server to read the know all your WordPress server )


the installation of the database: you must have created a database related to your accommodation. Often, your host will allow you to create (you can go through phpmyadmin also) a user and a database. . Check this information on this page


The creation of the primary administrator account: Nothing special. Think still to disable sending emails if you do not want to be bothered.


We go this time -ci in the heart of the matter: setting up your first site. For now, you have only two things to be supplied: The URL and name of the website


Finally the last step: Piwik gives you the procedure for the tracking code: you simply actually copy the JavaScript code and put in the code for your site, between . We will see later other methods exist to integrate tracking code.


Operation terminated, Piwik is ! installed and configured


once you have everything filled in, you will have access to the Dashboard:


You can move all the modules on the dashboard the same as the WordPress administration panel.

the interface Piwik is composed of several parts, accessible from the top right menu:

  • the dashboard of your site

  • table edge all your sites

  • The Personal Settings

  • The General Settings

Embed Piwik to your site

traditional monitoring

the JavaScript code is in the Personal Settings, then Manage > tracking code .

If you do not want to have a code JavaScript tracking, the tracking method by “pixel” is available. The technique is simple: a html tag will be integrated into the code, that tag will not be visible to the visitor and will send the necessary information to your Piwik Installation

Monitoring hidden.

This installation is more complex than the simple integration but it has a certain advantage: it hides your tool installation address. If you need to hide the Piwik address for a reason (eg in the case of a site network), this method is to follow. Installation is a bit more technical, I advise you to carefully follow all the documentation to operate the monitoring. The script is available on Github: tracker-proxy for Piwik

A plugin for WordPress

The WP-Piwik plugin [ provides access to Piwik statistics from your WordPress admin panel. Both modes of accommodation are available: self-hosted or “cloud-hosted.” You will find all your statistics arranged differently.

When configuring the plugin settings, the shared key (token_auth) will be required. You will find it in your Personal Settings in Piwik tab then API left. Your key should look like a string of such characters: 1b3ab8ff4c467297934f10c15ff62eb6

Once the set installation, you will have access to a page named WP-Piwik who will present all your statistics: visitors, browsers, country etc. .


Many features

report Sending

If you would like reports of your statistics by email or SMS, you have to go in the Personal Settings, then Report e-mail . You will be able to adjust many different options to create custom reports.

A customizable tool

The API for developers for creating Plugins and Themes . The documentation is available only in English.

I invite you to delve into the personal settings and generals, there a lot of more or less important features that allow you to customize . this tool to the image you want

you will especially be able to implement the advanced features present in Google Analytics: real-time visitors, establishing goals features for E-commerce Benefits directors and much more.

the feature list is actually quite long and official website page list all the features in detail.

useful Plugins

I invite you to go for a ride in the Plugins Manager, it is available in the General Settings, then Plugins . There are 49 in default with the Piwik installation: all are not active

A marketplace for Piwik plugins is also present.. Nearly sixty plugins are used at present, in addition to the default plugins. September Piwik themes are also available for installation. All these components are available directly from the General Settings, then Market .

Why use Piwik?

Piwik is not the tool perfect, it has still some drawbacks inherent in all self-hosted tools like having to make updates regularly or more “technical” system that developed with Google Analytics. You will also have a good server if you have many visitors and / or multiple websites: Remember shared hosting

However, Piwik will be good enough for most webmasters though. the goal is simply to monitor and analyze statistics of your websites.

Anyway, Piwik is a beautiful open source alternative to proprietary solutions.

No comments:

Powered by Blogger.