How to create a custom DOM event?

How to create a custom js event that fire a GTM trigger. im using Ninja Popup plugin and i need to fire a tag when a user subscribe through the newsletter form on that popup, luckily that plugin has a JS hooks which may help in such thing but im not sure what to write into it so i can call the event name on the GTM custom event trigger. Please check the screenshot.

https://snag.gy/LtMS3C.jpg

Thanks

Read more here:: How to create a custom DOM event?

Leave a Reply

Your email address will not be published. Required fields are marked *