Closed svenzimmermann closed 3 years ago
@svenzimmermann You can add custom scripts using the alter_scripts hook. There's a sample plugin that you can alter, or you can create your own.
@otacke Thank you for this great plugin. Adapted the code for our purposes. Works great.
@svenzimmermann Not my plugin (although it contains some lines of code that I contributed) - but I bet the H5P core team will be pleased to read that you like it.
We need a way via wp/wp-admin/admin-ajax.php?action=h5p_embed&id=XXX to track accessed H5P exercises with matomo. However, hard coding in the script would be overwritten in the next update.
Is there an overwrite function or another way to inject a script (for matomo tracking)?