General plugins (Local): Analytics

Maintained by Picture of Bas Brands Bas Brands
A local Moodle Module adding Analytics. This plugin currently supports 3 Analytics modes, Piwik, Google Universal Analytics and Google Legacy Analytics.
1177 sites
92 fans


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


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

Comments RSS

Show comments
  • myname
    Thu, 27 Oct 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
  • Picture of Ger Tielemans
    Wed, 22 Mar 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?
  • Picture of Bas Brands
    Thu, 23 Mar 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
  • Picture of Frankle Lee 李智高
    Sat, 15 Jul 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?
  • Picture of Frankle Lee 李智高
    Sat, 15 Jul 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
  • Picture of Frankle Lee 李智高
    Sun, 16 Jul 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.
  • Picture of John Kelmer Lomerio
    Fri, 29 Sep 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
  • Picture of Dario Roig Garcia
    Fri, 29 Sep 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
  • Picture of Roberto Catanuto
    Thu, 5 Oct 2017, 6:42 PM
    Hi, does your plugin give access to every single access of every single user on a Moodle course? Thank you
  • Picture of Éva Rácz
    Thu, 12 Oct 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
  • Picture of John Doe
    Sun, 4 Feb 2018, 12:13 AM
    Is this working with moodle v3.4x?
    Thanks in advance ... !
  • Ricardo Caiado
    Sun, 18 Mar 2018, 4:38 AM
    Any updates do Moodle 3.4?

  • Picture of Tijs Gerritsen
    Wed, 16 May 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.
  • Picture of Jim Cain
    Tue, 17 Jul 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?
  • Picture of Narit B
    Mon, 10 Sep 2018, 11:46 AM
    Do i need to install Piwik first before use this plugin?

1 2 3 4 5 6

Commenting temporarily disabled