title: Google Tag Manager: Triggering an event if the DOM contains a certain css class
body: <p>I have a gallery of products that each belong to a specific brand. In order to track down how many impressions/reach the brands generate I was thinking about using GTM, having a trigger on DOM load or pageview, and have it read a specific class "brandlink" for the text inside this element. This way if the page loads products from Amazon, eBay and Walmart, each pageview would trigger multiple events, one for each brand, with the label = their_brand_name.</p>
  
  <p>In a very similar fashion as to how ads are tracking the number of impressions they generate.</p>
  
  <p>I can clearly see the "Click classes" variable, but not something that reads the text inside a class, without a click being necessary.</p>
  
  <p>Pointers? Different approach? Thank you!</p>