showing h5p contents using javascript and tracking events

I have h5p contents to be shown on angular project. For this purpose, we are storing embed tag in our db which we insert manually(like copy and paste through a form). Now we want to render those h5p contents on our webpage. how can we achieve it? we also wanna track events. Please help us. Thanks in advance.