I'm new to using Google Tag Manager.
I want to be able to capture the email displayed in body of the page. I was able to capture this by creating a DOM Element variable.
I want to be able to see the values of the emails in GA4. Is there a way I could push the DOM element to the DataLayer?
Or is there a way to capture the emails displayed in the bottom of the page thru using the DataLayer?
Thanks for your assistance.
There are many ways to do so. The best way would probably be to create a custom HTML Tag, that scrapes the elements on page load and pushes these to the DataLayer.
Can share the webpage URL? This way I could share some example code with you.