Track shortcodes

I’m operating a German language learning website with interactive exercises created with the h5p plugin:

Due to the large number of exercises, related exercises are grouped together in one post. Matomo tells me on which post visits by new visitors or newly registered users end. It does not tell me, however, from which execise they exit. It would be convenient if Matomo could be configured to track a certain type of shortcode (in this case: [h5p id="###"]) and to report the shortcode number.