Click analytics #1575
Replies: 4 comments
-
H5P emits xAPI statements that could be converted to other events like calls to Google Analytics. This requires dome programming knowledge. If you have that, we can give you some hints what to do. |
Beta Was this translation helpful? Give feedback.
-
Thanks Sebastian. Yes, I am a developer. Please can you send me the other details. Many thanks 😉
From: Sebastian Rettig ***@***.***>
Sent: Saturday, 29 May 2021 4:00 am
To: Lumieducation/Lumi ***@***.***>
Cc: garethhayter ***@***.***>; Author ***@***.***>
Subject: Re: [Lumieducation/Lumi] Click analytics (#1575)
H5P emits xAPI statements that could be converted to other events like calls to Google Analytics. This requires dome programming knowledge. If you have that, we can give you some hints what to do.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#1575 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAKV2GXU5IZ4AX4JKEVXPTLTP64YFANCNFSM45MOKXGA> . <https://github.com/notifications/beacon/AAKV2GS2ZMW3GPGWD2IX5PLTP64YFA5CNFSM45MOKXGKYY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAGC7VA.gif>
|
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay. I was on holiday... H5P emits the xAPI statements in a global event handler, that you can subscribe to by adding this JS to the page:
This script should be executed at some point after the H5P core was initialized. It's a good idea to add it as the last script to the head. |
Beta Was this translation helpful? Give feedback.
-
Thanks Sebastian. This looks great. I’ll let you know how I go.
From: Sebastian Rettig ***@***.***>
Sent: Sunday, 6 June 2021 3:02 am
To: Lumieducation/Lumi ***@***.***>
Cc: garethhayter ***@***.***>; Author ***@***.***>
Subject: Re: [Lumieducation/Lumi] Click analytics (#1575)
Sorry for the delay. I was on holiday...
H5P emits the xAPI statements in a global event handler, that you can subscribe to by adding this JS to the page:
H5P.externalDispatcher.on('xAPI', (event) => {
// add your logic to send the event to the LRS here.
console.log('xAPI event: ', event); //(I am just logging to browser developer console for demo purpose)
});
This script should be executed at some point after the H5P core was initialized. It's a good idea to add it as the last script to the head.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#1575 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAKV2GQFJXUEBWRQ7XYK463TRI35FANCNFSM45MOKXGA> . <https://github.com/notifications/beacon/AAKV2GTSS7JCFHFPDDSZ6QLTRI35FA5CNFSM45MOKXGKYY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAGKO5Y.gif>
|
Beta Was this translation helpful? Give feedback.
-
Hi. I want to create interactive videos with branching (similar to choose your own adventure books) where users can choose which content to view next. In my case, it will be product videos where users can chose which feature to view next. I want to log which choices they clicked and in what order. I want to incorporate this with Google Analytics for example, to see what choices my users prefer. Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions