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:
1129 sites
119 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

Show comments
  • Sat, Jul 15, 2017, 3:29 PM
    I would like to know if I install the plugin on my moodle, do I still need to use the script piwik provided?
    I think either one of them alone will be ok to work, but I tried only the plugin, it doesn't work.
    The Analytics URL I put into the setting is . I think that's right and it did not work until I put the script into the right place.
    My second question is that when the tracking is working, I open the page title report, I turned out not the same as I expected. I think it will show the category and course list, and module list. But in my case, the report listed all the individual page, any idea why? Is that because my page titles are in Chinese?
  • Sat, Jul 15, 2017, 10:34 PM
    The problem seems to be on my moodle side. I even tried and the problem remained the same. All data list in page title report are listed individually but not in a category or course
  • Sun, Jul 16, 2017, 2:15 PM
    I checked again, I did not add the script manually and used the plugin only. I noticed that a script is added automatically at the end of everypage between "body" but not "header". I think that is why it doesn't work. I use Moodle3.2 and this Plugin build 207061300, please advice.
  • Fri, Sep 29, 2017, 2:58 PM
    Good day, I installed this plugin but I'm facing some issues. It works fine for the 3 - 4 links that I click on my moodle site but after that the Tracking disappears along with the tracking code, I'm using Moodle 3.1. Thanks in advance
  • Fri, Sep 29, 2017, 7:56 PM
    Hi Brands! We are testing the plugin in our moodle instalation based on 3.3. The code seems that is inserted in the body pages but piwik server not received the call of moodle. If our get the url manually it works well. Do you have any suggestions? Regards
  • Thu, Oct 5, 2017, 6:42 PM
    Hi, does your plugin give access to every single access of every single user on a Moodle course? Thank you
  • Thu, Oct 12, 2017, 8:38 PM
    Hi, I recently updated the plugin to the latest version, and as a result, the frontpage of our moodle site became blank. Any other page can be accessed normally except the frontpage. For now I disabled the plugin altogether, but I would like to get it to work again. Any suggestions as to how I might do that? Thanks
  • Sun, Feb 4, 2018, 12:13 AM
    Is this working with moodle v3.4x?
    Thanks in advance ... !
  • Ricardo Caiado
    Sun, Mar 18, 2018, 4:38 AM
    Any updates do Moodle 3.4?

  • Wed, May 16, 2018, 10:36 PM
    Hi, because of the impending European GDPR law (AVG in Dutch) I want to anonymise the gathered Google Analytics data. I have a tutorial that states that in order to do this I have to change lines in my GA script (ga('set', 'anonymizeIp', true);). I cannot find out how to do this in Moodle. I can only input the Tracking ID in this plugin, not change the script.
  • Tue, Jul 17, 2018, 12:07 AM
    Will official support for 3.5 be coming soon? I do see that 141 3.5 sites have the plugin downloaded, so can I assume that the plugin works fine in 3.5?
  • Mon, Sep 10, 2018, 11:46 AM
    Do i need to install Piwik first before use this plugin?

  • Mon, Sep 9, 2019, 11:50 PM
    I like to report that we encountered a bug. The write up is here
    My system is moodle 3.6.5+. with local_analytics 1.6 (Build: 2018092400).
    The plugin is interfering with Moodle's Blog posting function. Once we disable the plugin, the function return to normal. Please advise how to go around this issue. Thank you for your time!
  • Sat, Mar 14, 2020, 12:03 AM
    Hi, Somebody can guive me a link how to configure moodle for piwik. I already installed Local Analytics Plugin. I dont now where to past the Piwik script?
  • Tue, Jul 7, 2020, 1:25 AM
    Hi! I installed this plugin but I don't know how can I have access to the reports. Does anyone can help me? Thanks in advance
1 2 3 4 5 6
Please login to post comments