The DOM Element Variable is a powerful variable in Google Tag Manager to scrape Content directly from the Document Object Model. With its help, you can transfer any Text on your website into a Variable and pass it on to your Marketing tools, as long as it is selectable in the DOM.
In this video, I’ll show you how you can use the DOM Element Variable with the CSS Selector and how it works.
btw… the method I’m using to check the selector is document.querySelectorAll(“p.price ins span.amount”)
RECOMMENDED MEASURE BOOKS: https://kit.com/Measureschool/recommended-measure-books
GEAR WE USED TO PRODUCE THIS VIDEO: https://kit.com/Measureschool/measureschool-youtube-gear