Google analytics integration

davidsyril
Community Member Posts: 11
I haven't got much experience using Google Analytics integration into Lectora. I'm not sure if this is even possible. Would be great if you guys could answer my questions.
Is it possible to track a module on an LMS and a HTML version?
Would like to know if you can get a 'time on page' from each page in a module?
Is there any useful guides or links out there that would provide more information.
Thanks
Dynamic Dev team.
Is it possible to track a module on an LMS and a HTML version?
Would like to know if you can get a 'time on page' from each page in a module?
Is there any useful guides or links out there that would provide more information.
Thanks
Dynamic Dev team.
Comments
-
Register for Google Analytics and get your ID (UA-something-something).
In Lectora, Add External HTML Object to your title. Set it to META tags. Enter the following code in there:<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXXX-Y', 'auto'); ga('send', 'pageview'); </script>
Replace XXXXX-Y with your own Google Analytics ID. Voila, now you can track your course in LMS or outside of LMS, the only condition is that Google server isn't blocked by e.g. a corporate firewall.
As for what you can track, Google calls it "Session duration", so this is what you should look for in Google Analytics panel. -
-
loraguardtree Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 2 ☆ Roadie ☆
Categories
- 35.8K All Categories
- 108 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products