Question on xapi + wordpress
Hello, I'm unsuccessfully trying to use xapi with a wordpress installation.
I read https://h5p.org/documentation/x-api and was trying:
Example
To try this out type the following in your browser's console when using an H5P object on a website:
H5P.externalDispatcher.on('xAPI', function (event) {
console.log(event.data.statement); });
However, console returns:Undefined