-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running local_analytics on Moodle 3.1 #2
Comments
What theme are you using on your site? Perhaps the theme layout files do not include the standard Moodle footer hmtl |
Same here. |
We have a customized version of the Clean theme, but I'm pretty sure that the default Moodle footer is included. |
I did some more research and looks like Moodle no longer auto include lib.php files from local plugins.
Or you can add
In your theme layout file. Hopefully I'll find some other way of auto including the lib.php again. |
Props to you, Bas.
|
Great, thanks for the fast response and your help! However I'll probably wait until there is a fix in the plugin itself! Thanks! |
I noticed that when you purge the caches, the It seems the new behavior is looking for a function that extends navigation, so I added a dummy function which fixed the issue for me. Here is what I added at the end of
|
FYI we've also fixed this locally using the _extend_navigation hook BUT this does not capture all the pages, notable it misses those that do not include navigation. This includes some pretty important pages including the login page, help pages, the new grading page in mod_assign, ... The reality is we need a new set of proper hook for plugins to inject stuff like this into the head, see this related tracker (and vote for it): |
Hey just an FYI that https://tracker.moodle.org/browse/MDL-53978 has been submitted and now that the epic 'hooks' tracker has been closed as 'won't fix' there is a reasonable change that these new callbacks will be accepted into core shortly (fingers crossed) We will provide a pr shortly which pre-preemptively implements these hooks for review, and we can merge that in as soon as the core patch hits. |
Hi. I published some fixes based on the I also implemented the callback as suggested by @brendanheywood . If someone wants to test/provide some feedback, the code is here: @bmbrands I didn't make a pull request because it is based on your Cheers, Daniel |
@bmbrands just throwing the idea out there - would you consider us taking over either partial or full maintenance of this plugin? We have a deep vested interest in it and are actively supporting our fork which has solved all these issues long ago and supports every stable version from 2.7 to master |
Hi @brendanheywood I really appreciate your work on this plugin, but I would prefer collaborating on development and maintenance. I have not been able to invest much time in this plugin lately but I am willing to look at all your improvements and implement them on this repo. And, of course, give you all the credits for your input. |
Yes our overwhelming preference is keep it all together and just submit PR's to this repo. But .... that big pull request we submitted was merged (#3) and then rolled back (#4) six months ago and nothing has been done since. This repo in it's current state only supports 2.7 which is out of support in a month or so, and this plugin simply doesn't work out-of-the-box at all anymore in any of the last 4 major versions of moodle due to the callback changes in 2.9. version.php hasn't had a commit in 2 years and the last version added to the plugin directory was from 2014. The reality is that for all intents and purposes this plugin has been functionally abandoned. I'm not trying to be pushy and take it over, it's actually a hassle for us taking on maintenance of yet another plugin. I'm just offering whatever I can to help you out here and if you don't have time then we are happy to step up. If you aren't interested in the pull request then that's ok too. In that case we'll make a proper fork and rename it and submit it separately to the plugin directory. |
Hi @brendanheywood I am getting some client funding to work on this plugin, create a new version and look at the work you have put into it too. I have reserved time this and next week to work on this plugin. Thanks for the wakeup call! |
great news @bmbrands :) also as a heads up @dmitriim has been working on another fairly major refactor so that the same plugin can handle multiple instances of ga / gu / piwik side by side, each with potentially different dimensions and config. For example we routinely deal with clients who have their own GA account but we also push data into our own internally hosted piwik instance as well. This work is not yet complete but should be in a couple weeks. wip branch: https://github.com/catalyst/moodle-local_analytics/tree/issue%233 diff from our stable fork: catalyst/moodle-local_analytics@catalyst-master...catalyst:issue#3 I'm fairly conscious that we are quickly diverging even more from your branch, so let me know what we can do to get things into shape to be merged back in. The sooner we can get these repo's consistent again the better |
Hello everyone
Using Moodle 3.1 and Google Universal Analytics the script doesn't get implemented into the site. Meaning if I check the source code no google javascript is visible.
Has anyone the same issue or was able to resolve it? It worked perfectly fine running Moodle 2.7.
The text was updated successfully, but these errors were encountered: