General plugins (Local) ::: local_analytics
Maintained by Bas Brands
A local Moodle Module adding Analytics. This plugin currently supports 3 Analytics modes, Piwik, Google Universal Analytics and Google Legacy Analytics.
Latest release:
1509 sites
114 fans
Current versions available: 5


A local Moodle Module adding Site Analytics

The plugin features the following options:
- exclude tracking of admin users
- build full navigation tree for Piwik course category and activity tracking
- image based tracking in case javascript is disabled (for Piwik)
- advanced analytics for Google analytics (based on Bas Brands and Gavin Henricks work in 2013)

The plugin currently supports 3 Analytics modes, Piwik, Google Universal Analytics and Google Legacy Analytics.

For installation instruction on Piwik, please visit


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


Bas Brands (Lead maintainer)
David Bezemer: Original author
Please login to view contributors details and/or to contact them

Comments RSS


  • Mon, Oct 12, 2015, 10:41 PM
    Hi there.

    Yes I do think it works okay for 2.8 and 2.9. But I'll plan some time to create new versions for these releases soon.
  • Fri, Nov 6, 2015, 12:46 PM
    Working fine for us in 2.9. Thanks very much.

    William Michael
    Classical Liberal Arts Academy
  • Mon, Jan 4, 2016, 10:02 AM
    Does this plugin support v2.9.x? As of this comment, the highest version supported is v2.7. Thank you.
  • Mon, Jan 4, 2016, 10:04 AM
    Oops, my bad, I didn't realised William already reported it working for v2.9... I had thought the comments run reverse chronologically with the latest comment up top. smile
  • Tue, Jan 19, 2016, 9:52 PM
    Hi, I'm currently running a Moodle 2.9.3+ site and planning to update it to Moodle 3 or 3.1 (sometime in the future), and i would love to have your plugin installed. I do, however, have a question: have you tested in a Moodle 3+ environment?

  • Wed, Jan 20, 2016, 12:07 AM
    Hi Brandon,

    Yes, I have used it on Moodle 3.0 and it's still working!
  • Thu, Jul 21, 2016, 6:33 PM
    To me, it seems it doesn't produce no output on Moodle 3.1.1.
    Bas, it would be great if you were allowing Issues to be created on Big thanks!
  • Thu, Aug 4, 2016, 3:23 PM
    I want to use PiWIK pro for my Moodle course. But I can not install it on the server or use the pluging.
    I put the code into the first page of the course but it seems that it doesn't work.
    Could you please help me?
  • Thu, Aug 4, 2016, 5:27 PM
    Hi Arash,

    Could you please use the Github issue tracker for reporting issues.

    URL is here:

    And please be very detailed in explaining which steps you have taken.
  • Thu, Aug 4, 2016, 6:07 PM
    Hi Bas,
    Thanks for reply.
    I did not use the plugin, so I didn't use the Github.
    Now It seems the problem has solved and I can track the course by Java code.
  • Brian
    Fri, Sep 30, 2016, 5:05 PM
    Any plans to move it forward to 3.1/3.2?
  • Fri, Sep 30, 2016, 6:39 PM
    Plans .. yes, time .. not yet
  • myname
    Thu, Oct 27, 2016, 1:19 PM
    I need to calculate number of downloads actions for each file in each course, (not view)
    does this plugin provide this??thanks
  • Wed, Mar 22, 2017, 6:22 PM
    Moodle 3.2.2 (Build: 20170313) I opened on my test-server the Boost theme and added in every file with the closing </head> the piwik code just before that closing </head>. seems to work or do I have to do more?
  • Thu, Mar 23, 2017, 4:17 PM
    Hi Ger, Yes that definitely works. The only difference is the URL's pushed to piwik. With this plugin the url is translated into something that makes sense when analysing your data. See
Please login to post comments