Tracking modal clicks in Google Analytics

I’m having trouble finding the proper way to add Google Analytics Tracking into the modal elements.

I’m hoping that when a viewer clicks on the modal toggle, I can track that as an event but I just don’t know how to connect the dots. Tracking their exit out of the modal would be nice too.

Please forgive my ignorance. Part of me thinks the solution is right under my nose but I keep getting cross eyed. Hoping to expand my knowledge a bit to learn properly.

Thanks in advance. Cheers.

Hi Christopher,

Thanks for writing to us.

Please follow this article to add tracking code to the Modal.
You can follow this documentation to add GA to any popup.


Hope it helps.
Thanks

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.