moodle and google analytics
DESCRIPTION
Standard Google Analytics reporting takes the URL from the page to track the views. With Moodle this means that it is not possible to easily track which activity URL belongs to what course within the Analytics. This presentation looks at the work done to help address this issue and at the test of the solution during the Ireland & UK Moodlemoot. Gavin Henrick was the original founder of this idea and together we found a solution.TRANSCRIPT
![Page 1: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/1.jpg)
MOODLE AND GOOGLE ANALYTICSBAS BRANDS
![Page 2: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/2.jpg)
I am a part freelance part employed webdeveloper. I enjoy programming with Moodle because of it’s excellent community and truly open source character
BAS BRANDS
![Page 3: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/3.jpg)
INTRODUCTION
Standard Google Analytics reporting takes the URL from the page to track the views.
With Moodle this means that it is not possible to easily track which activity URL belongs to what course within the Analytics.
This presentation looks at the work done to help address this issue and at the test of the solution during the Ireland & UK Moodlemoot.
Gavin Henrick was the original founder of this idea and together we found a solution.
![Page 4: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/4.jpg)
Advanced features :
- User behavior
- Custom charts
- Mailing of reports
- Pageload speed
- Traffic sources
- Demographics
- Mobile usage
- Visitor Flow
- Live statistics
ABOUT GOOGLE ANALYTICS (GA)
![Page 5: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/5.jpg)
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-000000-4']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
1. Register on:
http://google.com/analytics
2. Add your website
3. Receive the JavaScript code snippet
4. Embed in your Moodle theme layout files
HOW TO GET GOOGLE ANALYTICS FOR MOODLE
![Page 6: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/6.jpg)
SAMPLE ANALYTICS PAGE ON CONTENT
![Page 7: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/7.jpg)
SAMPLE OF A STANDARD GA REPORT OF MOODLE
![Page 8: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/8.jpg)
- Which course is the course with id = 13 ?
- In what course was the dialogue activity visited?
- What course category was visited most?
DEFAULT MOODLE REPORT IS HARD TO READ
![Page 9: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/9.jpg)
SAMPLE OF A GOOGLE ANALYTICS REPORT OF WORDPRESS
![Page 10: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/10.jpg)
- I can see which articles are viewed
- I can break it down into year, month, day
- I could create graphs of most viewed articles in May
DEFAULT WORDPRESS REPORT IS EASY TO READ
![Page 11: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/11.jpg)
STANDARD MOODLE URL’S
![Page 12: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/12.jpg)
- Which section is that resource linked in?
- Which course is that resource part of?
- Which category is that course in?
- Was it a student or an admin who clicked that link?
QUESTIONS WHEN LOOKING AT STANDARD MOODLE URL’S
![Page 13: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/13.jpg)
THE MOODLE URL’S WE WANT
![Page 14: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/14.jpg)
URL DESIGN
http://moodle.moodlemoot.ie/2012/delegatepack/Pre-Conference+Workshops/A+Moodle+2+Tool+Guide+for+Teachers
Category
Course Short name
Section name
Activity name
(Activity type)
![Page 15: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/15.jpg)
STANDARD ANALYTICS GRAPHS USING THESE URLS
![Page 16: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/16.jpg)
STANDARD ANALYTICS GRAPHS USING THESE URLS
![Page 17: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/17.jpg)
NOW THE FUN STARTS!COURSE OVERVIEW
![Page 18: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/18.jpg)
NOW THE FUN STARTS!COURSE OVERVIEW
![Page 19: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/19.jpg)
CREATING CUSTOM DASHBOARDS
![Page 20: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/20.jpg)
COURSE STATISTICS
![Page 21: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/21.jpg)
COURSE STATISTICS
![Page 22: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/22.jpg)
USER FLOW
![Page 23: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/23.jpg)
- JS snipped loaded by our browser
- setAccount var
- trackPageview var
- https://developers.google.com/analytics/devguides/collection/gajs/?hl=nl
ANOTHER LOOK AT THE GA JAVASCRIPT CODE
![Page 24: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/24.jpg)
FEED A URL TO THE JAVASCRIPT SNIPPET
![Page 25: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/25.jpg)
Code snippet that shows part of the URL design
- Section
- Activity type
- Activity name
- Action type
GENERATE A CUSTOM URL IN PHP
![Page 26: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/26.jpg)
GENERATE A CUSTOM URL
![Page 27: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/27.jpg)
THE FUTURE OF THIS PROJECTPage related variables
- category, role, department, uid ??
Logging of events
- activity completion, user created
Grades
- get grade statistics on course
Get GA data back into Moodle
- the emailed report
- creating your own graphs in Moodle
![Page 28: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/28.jpg)
GET GA DATA BACK
![Page 29: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/29.jpg)
GET INVOLVEDMore info on what has been done:
Blogpost by Gavin Henrick
http://www.somerandomthoughts.com/blog/2012/04/18/ireland-uk-moodlemoot-analytics-to-the-front/
Blogpost by Bas Brands
http://basbrands.nl/2012/04/18/google-analytics-with-moodle/
More info on
The GA JS snippet
https://developers.google.com/analytics/devguides/collection/gajs/?hl=nl
Google analytics Query explorer
http://ga-dev-tools.appspot.com/explorer/?csw=1
Getting Google analytics data using php
https://code.google.com/p/gapi-google-analytics-php-interface/
http://www.codediesel.com/php/reading-google-analytics-data-from-php/
![Page 30: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/30.jpg)
CONTACT US
Bas Brands
Twitter: bmbrands
Gavin Henrick
![Page 31: Moodle and Google Analytics](https://reader035.vdocuments.mx/reader035/viewer/2022062404/55497899b4c9056e598b5873/html5/thumbnails/31.jpg)
Q&A / DISCUSSION
What about privacy?
Alternatives?
• Woopra
• Clicky
• Piwik (open source)
• Open Web Analytics (open source)
Read more: http://imimpact.com/web-stats-alternatives-to-google-analytics/
What about performance?