How to track Bootstrap modal dialogs

Hi,
I am testing Matomo on my website, which is a kind of gallery. All the interesting content, where the users go, is displayed in modal dialogs, I would like to track those openings.
Is it possible?
Currently, only the main page (showing widgets) appears in Matomo.

Hi,

Simply call the event tracking JavaScript whenever the modal is opened:
https://matomo.org/docs/event-tracking/

As simple as that.
Thank you Lukas.