## General plugins (Local): Analytics

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.
269
500
19
Moodle 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7

moodle-local_analytics
==================

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 http://piwik.org/docs/installation/

### Contributors

David Bezemer: Original author

### Awards

• Thu, Sep 10, 2015, 8:33 PM
Thanks, it wasn't quite clear.
I'll get to this
• Thu, Sep 10, 2015, 10:16 PM
Hello I've installed piwik through softaculous actually, pretty easy, I copied the code in moddle html and I'm getting statistics.
But those statistics refer to page like this: http://www.xtrema.fr/training/mod/forum/discuss.php?d=460
Nothing so "human" as you said so I do not quite understand what's the use of the plugin or if it works at all.
Thanks

• Fri, Sep 11, 2015, 4:58 AM
Hello!
Some sort of answers to my previous post?
• Fri, Sep 11, 2015, 6:58 AM
I've did my own additional coding to make the plugin more useful.
By adding something like this in the function i was able to track users by their firstname and lastname

if(isset($USER->username)) {$username = $USER->username;$firstname = $USER->firstname;$lastname = $USER->lastname;$userid= $username."-".$firstname.".".$lastname; } else {$username = "User not logged in";
}
• Fri, Sep 11, 2015, 3:50 PM
Hi Samuel
Just tried it I did put it before the closure is that right? Also found out that my site id was 1 on the plugin as Piwik had affected 2 to the site I monitored as I don't seem to be able to change it in Piwik, I did the change in the plugin. Guess it's gonna make a difference
• Fri, Sep 11, 2015, 4:45 PM
Hi Samuel
Doesn't work for me and my pages are still recorded in Piwik in moodle style: http://www.xtrema.fr/training/mod/forum/discuss.php?d=460
I wonder if this plugin works at all and why it wouldn't and no developper seems to be keen to answer.
Of course I know it's a free service but silence is rude, anyway, ain't it?
• Fri, Sep 11, 2015, 5:23 PM
Hi Josick,

Maybe you have not enabled the clean url setting. And please don't say it's rude if I do not answer you fast enough.
• Fri, Sep 11, 2015, 6:30 PM
Ok sorry but at least, it got me an answer .
And the clean url setting is enabled so how do I check if that plugin works or not?
• Fri, Sep 11, 2015, 9:54 PM
Have you tried turning it off and on again?
• Sat, Sep 12, 2015, 12:26 AM
I just did I'll leave like that for a while see what the visits look like on Piwik, then turn it on again.
I'll let you know
• Sun, Sep 13, 2015, 11:43 PM
Hello
I did let Piwik on for a few hours without the plugin and for a few hours with it. I do not see the slightest difference.
Pages are annouced similarly:
In the visitor's log they look in both case laike this:
Cours : Induction Standard
http://www.xtrema.fr/training/course/view.php?id=5
In the pages tree: moodle like
in the page title: plain text, I insist, with or without the plugin on.
I would very much like to know what is supposed to be different with the plugin on and what is its use?

• Mon, Sep 14, 2015, 3:46 PM
So can Bas or anyone tell me what should be the difference in Piwik with and without this plugin?
• Sun, Oct 11, 2015, 6:27 PM
Hi Bas & David,
Does it work on moodle 2.8 or newer version? I let visitors self register and open my site to everyone that's why I need that plugin.
Love it,
• 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