How to use events to track pop ups in Google Analytics?

For tracking every time a pop up appears on your site,  push an event within data Layer and setup trigger using that event

//implement this code when popup appears




Then set up a tag that triggers on custom event i.e popup. You can use the same approach for other user actions including implementing code on popup form submit.

see the original question:!topic/tag-manager/BeCq3MrP6Mw;context-place=forum/tag-manager

Author of this card: