• Piwik in Vanilla Forums [Plugin]

    by  • Last modified:June 28, 2012 • Piwik, Plugin • 0 Comments

    Vanilla Forums is the best open-source forum. Why? Because Vanilla Forums is simple. It’s easy to build on, quick to get up and running with and very robust. I’m not alone in this view. Over 500k sites use Vanilla Forums. As you know, I am a big fan of Piwik, the open source analytics. I love it because it is also very flexible. I had a plugin for Vanilla for Piwik a couple of years ago, but I have since completely rewritten it. Version 2.o is now released in the Vanilla Addon library and you can get it here.

    Install Steps:

    1- Install your Piwik on your server.
    2- Download my plugin here.
    3- Enable Plugin from the side menu.

    4-Fill in values. For Install Path (where you host your Piwik) and your site id. If this is your first site, the ID is 1. Your site will start recording visits once you click save.

    5-If you want to look at your stats from within your Vanilla install, just add your Piwik API key. (You can find it in the API tab in your Piwik install).

    You just need the token_auth 32 character code. As a best practice, I would create a new user/API with a view only access rather than using the Super Admin API key if there is shared access to the backend with other users. Please also note the API token is not needed to record stats. By including it, though, you can access you Piwik site stats via iframe. Remember to include the whole Piwik in an iframe, edit your config/config.ini.php in your Piwik Install and add the following line:


    If you also wish to enable the “Settings” pages (Manage websites, Users, etc.) to load in an iframe you can also add the setting:

    And that’s it. It will look like below when it’s all done:


    About The Author: Adrian has over 12 years experience in Digital Marketing and Analytics. He currently works as a Marketing Head of Community at Vanilla Forums, a modern forum software platform that allows clients to connect and engage their communities and customers. Adrian has extensive experience with Google and Piwik (Matomo) Analytics. He lives and works in Montreal.