MOODLE ANDGOOGLEANALYTICSBAS BRANDS
BAS BRANDSI am a part freelance part employed webdeveloper. I enjoy programming with Moodlebecause of it’s excellent commu...
INTRODUCTIONStandard Google Analytics reporting takes the URL from thepage to track the views.With Moodle this means that ...
ABOUT GOOGLEANALYTICS (GA)Advanced features :-   User behavior-   Custom charts-   Mailing of reports-   Pageload speed-  ...
HOW TO GET GOOGLEANALYTICS FOR MOODLE1. Register on:               <script type="text/javascript">http://google.com/analyt...
SAMPLE ANALYTICSPAGE ON CONTENT
SAMPLE OF A STANDARD GAREPORT OF MOODLE
DEFAULT MOODLE REPORT ISHARD TO READ-   Which course is the    course with id = 13 ?-   In what course was the    dialogue...
SAMPLE OF A GOOGLE ANALYTICSREPORT OF WORDPRESS
DEFAULT WORDPRESS REPORTIS EASY TO READ-   I can see which articles    are viewed-   I can break it down into    year, mon...
STANDARD MOODLEURL’S
QUESTIONS WHEN LOOKING ATSTANDARD MOODLE URL’S-   Which section is that    resource linked in?-   Which course is that    ...
THE MOODLE URL’SWE WANT
URL DESIGNhttp://moodle.moodlemoot.ie/2012/delegatepack/Pre-Conference+Workshops/A+Moodle+2+Tool+Guide+for+TeachersCategor...
STANDARD ANALYTICSGRAPHS USING THESE URLS
STANDARD ANALYTICSGRAPHS USING THESE URLS
NOW THE FUN STARTS!COURSE OVERVIEW
NOW THE FUN STARTS!COURSE OVERVIEW
CREATING CUSTOMDASHBOARDS
COURSE STATISTICS
COURSE STATISTICS
USER FLOW
ANOTHER LOOK AT THEGA JAVASCRIPT CODE-   JS snipped loaded by our    browser-   setAccount var-   trackPageview var-   htt...
FEED A URL TO THEJAVASCRIPT SNIPPET
GENERATE A CUSTOMURL IN PHPCode snippet that showspart of the URL design-   Section-   Activity type-   Activity name-   A...
GENERATE A CUSTOM URL
THE FUTURE OF THISPROJECTPage related variables - category, role, department, uid ??Logging of events - activity completio...
GET GA DATA BACK
GET INVOLVED                           More info on what has been done:                                     Blogpost by Ga...
CONTACT USBas Brandsbmbrands@gmail.comTwitter: bmbrandsGavin Henrickghenrick@gmail.com
Q&A / DISCUSSIONWhat about privacy?Alternatives?•   Woopra•   Clicky•   Piwik (open source)•   Open Web Analytics (open so...
Upcoming SlideShare
Loading in …5
×

Moodle and Google Analytics

11,715 views

Published on

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.

Published in: Technology, News & Politics

Moodle and Google Analytics

  1. 1. MOODLE ANDGOOGLEANALYTICSBAS BRANDS
  2. 2. BAS BRANDSI am a part freelance part employed webdeveloper. I enjoy programming with Moodlebecause of it’s excellent community and truly open source character
  3. 3. INTRODUCTIONStandard Google Analytics reporting takes the URL from thepage to track the views.With Moodle this means that it is not possible to easily trackwhich activity URL belongs to what course within theAnalytics.This presentation looks at the work done to help address thisissue and at the test of the solution during the Ireland & UKMoodlemoot.Gavin Henrick was the original founder of this idea andtogether we found a solution.
  4. 4. ABOUT GOOGLEANALYTICS (GA)Advanced features :- User behavior- Custom charts- Mailing of reports- Pageload speed- Traffic sources- Demographics- Mobile usage- Visitor Flow- Live statistics
  5. 5. HOW TO GET GOOGLEANALYTICS FOR MOODLE1. Register on: <script type="text/javascript">http://google.com/analytics var _gaq = _gaq || [];2. Add your website _gaq.push([_setAccount, UA-000000-4]); _gaq.push([_trackPageview]);3. Receive the JavaScriptcode snippet (function() {4. Embed in your Moodle var ga = document.createElement(script); ga.type =theme layout files 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>
  6. 6. SAMPLE ANALYTICSPAGE ON CONTENT
  7. 7. SAMPLE OF A STANDARD GAREPORT OF MOODLE
  8. 8. DEFAULT MOODLE REPORT ISHARD TO READ- Which course is the course with id = 13 ?- In what course was the dialogue activity visited?- What course category was visited most?
  9. 9. SAMPLE OF A GOOGLE ANALYTICSREPORT OF WORDPRESS
  10. 10. DEFAULT WORDPRESS REPORTIS EASY TO READ- 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
  11. 11. STANDARD MOODLEURL’S
  12. 12. QUESTIONS WHEN LOOKING ATSTANDARD MOODLE URL’S- 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?
  13. 13. THE MOODLE URL’SWE WANT
  14. 14. URL DESIGNhttp://moodle.moodlemoot.ie/2012/delegatepack/Pre-Conference+Workshops/A+Moodle+2+Tool+Guide+for+TeachersCategoryCourse Short nameSection nameActivity name(Activity type)
  15. 15. STANDARD ANALYTICSGRAPHS USING THESE URLS
  16. 16. STANDARD ANALYTICSGRAPHS USING THESE URLS
  17. 17. NOW THE FUN STARTS!COURSE OVERVIEW
  18. 18. NOW THE FUN STARTS!COURSE OVERVIEW
  19. 19. CREATING CUSTOMDASHBOARDS
  20. 20. COURSE STATISTICS
  21. 21. COURSE STATISTICS
  22. 22. USER FLOW
  23. 23. ANOTHER LOOK AT THEGA JAVASCRIPT CODE- JS snipped loaded by our browser- setAccount var- trackPageview var- https://developers.google. com/analytics/devguides/ collection/gajs/?hl=nl
  24. 24. FEED A URL TO THEJAVASCRIPT SNIPPET
  25. 25. GENERATE A CUSTOMURL IN PHPCode snippet that showspart of the URL design- Section- Activity type- Activity name- Action type
  26. 26. GENERATE A CUSTOM URL
  27. 27. THE FUTURE OF THISPROJECTPage related variables - category, role, department, uid ??Logging of events - activity completion, user createdGrades - get grade statistics on courseGet GA data back into Moodle- the emailed report- creating your own graphs in Moodle
  28. 28. GET GA DATA BACK
  29. 29. GET INVOLVED More 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/
  30. 30. CONTACT USBas Brandsbmbrands@gmail.comTwitter: bmbrandsGavin Henrickghenrick@gmail.com
  31. 31. Q&A / DISCUSSIONWhat 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?

×