SlideShare uma empresa Scribd logo
1 de 31
MOODLE AND
GOOGLE
ANALYTICS
BAS BRANDS
BAS BRANDS
I am a part freelance part employed webdeveloper. I enjoy programming with Moodle
because of it’s excellent community and truly open source character
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.
ABOUT GOOGLE
ANALYTICS (GA)
Advanced features :


-   User behavior
-   Custom charts
-   Mailing of reports
-   Pageload speed
-   Traffic sources
-   Demographics
-   Mobile usage
-   Visitor Flow
-   Live statistics
HOW TO GET GOOGLE
ANALYTICS FOR MOODLE
1. 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 JavaScript
code 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>
SAMPLE ANALYTICS
PAGE ON CONTENT
SAMPLE OF A STANDARD GA
REPORT OF MOODLE
DEFAULT MOODLE REPORT IS
HARD TO READ

-   Which course is the
    course with id = 13 ?


-   In what course was the
    dialogue activity visited?


-   What course category
    was visited most?
SAMPLE OF A GOOGLE ANALYTICS
REPORT OF WORDPRESS
DEFAULT WORDPRESS REPORT
IS 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
STANDARD MOODLE
URL’S
QUESTIONS WHEN LOOKING AT
STANDARD 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?
THE MOODLE URL’S
WE WANT
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)
STANDARD ANALYTICS
GRAPHS USING THESE URLS
STANDARD ANALYTICS
GRAPHS USING THESE URLS
NOW THE FUN STARTS!
COURSE OVERVIEW
NOW THE FUN STARTS!
COURSE OVERVIEW
CREATING CUSTOM
DASHBOARDS
COURSE STATISTICS
COURSE STATISTICS
USER FLOW
ANOTHER LOOK AT THE
GA JAVASCRIPT CODE
-   JS snipped loaded by our
    browser
-   setAccount var
-   trackPageview var
-   https://developers.google.
    com/analytics/devguides/
    collection/gajs/?hl=nl
FEED A URL TO THE
JAVASCRIPT SNIPPET
GENERATE A CUSTOM
URL IN PHP
Code snippet that shows
part of the URL design
-   Section
-   Activity type
-   Activity name
-   Action type
GENERATE A CUSTOM URL
THE FUTURE OF THIS
PROJECT
Page 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
GET GA DATA BACK
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/
CONTACT US
Bas Brands
bmbrands@gmail.com
Twitter: bmbrands


Gavin Henrick
ghenrick@gmail.com
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?

Mais conteúdo relacionado

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 

Último (20)

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Destaque (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Moodle and Google Analytics

  • 2. BAS BRANDS I am a part freelance part employed webdeveloper. I enjoy programming with Moodle because of it’s excellent community and truly open source character
  • 3. 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.
  • 4. ABOUT GOOGLE ANALYTICS (GA) Advanced features : - User behavior - Custom charts - Mailing of reports - Pageload speed - Traffic sources - Demographics - Mobile usage - Visitor Flow - Live statistics
  • 5. HOW TO GET GOOGLE ANALYTICS FOR MOODLE 1. 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 JavaScript code 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>
  • 7. SAMPLE OF A STANDARD GA REPORT OF MOODLE
  • 8. DEFAULT MOODLE REPORT IS HARD 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. SAMPLE OF A GOOGLE ANALYTICS REPORT OF WORDPRESS
  • 10. DEFAULT WORDPRESS REPORT IS 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
  • 12. QUESTIONS WHEN LOOKING AT STANDARD 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?
  • 17. NOW THE FUN STARTS! COURSE OVERVIEW
  • 18. NOW THE FUN STARTS! COURSE OVERVIEW
  • 23. ANOTHER LOOK AT THE GA JAVASCRIPT CODE - JS snipped loaded by our browser - setAccount var - trackPageview var - https://developers.google. com/analytics/devguides/ collection/gajs/?hl=nl
  • 24. FEED A URL TO THE JAVASCRIPT SNIPPET
  • 25. GENERATE A CUSTOM URL IN PHP Code snippet that shows part of the URL design - Section - Activity type - Activity name - Action type
  • 27. THE FUTURE OF THIS PROJECT Page 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
  • 28. GET GA DATA BACK
  • 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. CONTACT US Bas Brands bmbrands@gmail.com Twitter: bmbrands Gavin Henrick ghenrick@gmail.com
  • 31. 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?