General developer forum

Adding Piwik tracking code to

 
Picture of John Kelmer Lomerio
Adding Piwik tracking code to
 

Good day, I'm new to moodle and I'm having a problem adding the Piwik tracking code to the <head>. I tried using: $CFG->additionalhtmlhead = "Tracking code script" in my plugin to add it to the <head> but I didn't get the result that I wanted. I also tried the Piwik plugin but for some reason its not working properly. I'm using Moodle 3.1, thanks in advance.

 
Average of ratings: -
Picture of Matteo Scaramuccia
Re: Adding Piwik tracking code to
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developers

Hi John,
do you mean https://moodle.org/plugins/local_analytics ?

TIA,
Matteo

 
Average of ratings: -
Picture of John Kelmer Lomerio
Re: Adding Piwik tracking code to
 

Sorry for the late reply, indeed I am using [local_analytics] plugin and it seems not working correctly for my local Moodle. I tried troubleshooting it but I can't find the issue.

 
Average of ratings: -
Gareth J Barnard
Re: Adding Piwik tracking code to
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developers

Have you contacted Bas (https://moodle.org/plugins/local_analytics) about it?  He's a really nice guy smile.

 
Average of ratings: -
Picture of John Kelmer Lomerio
Re: Adding Piwik tracking code to
 

Okay I'll try. Thanks for the advice.

 
Average of ratings: -
Picture of Matteo Scaramuccia
Re: Adding Piwik tracking code to
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developers

Hi John,
file your issue(s) in https://github.com/bmbrands/moodle-local_analytics/issues and share here the URL of your(s): keep a reference here will help people in this Community too wink.

Edit: guessing https://github.com/bmbrands/moodle-local_analytics/issues/11#issuecomment-330371930 to be your issue.

TIA,
Matteo

 
Average of ratings: -
Picture of John Kelmer Lomerio
Re: Adding Piwik tracking code to
 

Thank you good Sir, I will look up to this one and file an issue if I didn't see someone posted the same issue that I'm experiencing right now.

 
Average of ratings: -