General questions and topics about Xerte Toolkits that don’t fit anywhere else.

Google (or other) analytics in Xerte?

More
3 years 6 months ago #8461 by tom
Replied by tom on topic Google (or other) analytics in Xerte?
Well, it really depends on several things:
- How you deploy your LO's
- What you actually want to see

Some possible suggestions:
- Add google analytics to the LO
- Add awstats to your Xerte installation (it scans the webserver logs, and aloows you to see the nr of hits per day/week/month etc. and still is on premise)
- Set up an xAPI LRS and use the Xerte dashboard

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #8463 by a511197
Replied by a511197 on topic Google (or other) analytics in Xerte?
Hi Tom,

If Google Analytics were to be added to an individual LO, where would a user add the embed code? I see from a previous post someone suggested the project level page footer. Is that right? Is there a recommended way of deploying your LO if you want to use Google Analytics? For example, if the LO was deployed using the embed code or url link, would that work better than an LO deployed using Deployment zip or SCORM package?

many thanks,
Alison

If you can use Lego, you can use Xerte

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago - 3 years 6 months ago #8464 by tom
Replied by tom on topic Google (or other) analytics in Xerte?
I would just add it to an optional script property at the LO level.

Google Analytics will then be part of the LO, so it really does/should not matter how you deploy the LO. It should work in all instances that you mention.

If you would have insatlled awstats to your Xerte webserver, than all Xerte LO's are tracked by default, but that only works if the LO is embedded or started through LTI (is being served by the Xerte webserver).
Last edit: 3 years 6 months ago by tom.
The following user(s) said Thank You: a511197

Please Log in or Create an account to join the conversation.

More
1 year 10 months ago #9227 by takeshi
Replied by takeshi on topic Google (or other) analytics in Xerte?
I am looking to use Google Analytics with Xerte, and I have my Google tag ID (GA4) and gtag.js script. Having read through this thread I have some questions:

1. If using on an individual LO, where should I add the script to enable the GA tracking? Is the process different for a bootstrap? Pasting the script code into the Script OP appears to break the LO as the gtag should come just after the head tag, not inside it.

2. I would prefer to integrate Google Analytics on my whole Xerte installation, as AWStats does not offer the views I need. How can I integrate this for the whole installation, rather than individually for separate LOs?

Many thanks in advance.

Please Log in or Create an account to join the conversation.

Moderators: ingdon
Time to create page: 0.196 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo