title: Google Tag Manager - Trigger For When Text Appears
body: <p>There is a button on one of my pages that I need to track on Google tag manager. I need to create a tag for when a user clicks the button and receives the message "Success! It looks like your DNS is properly configured!"</p>
  
  <p>I am awful at coding, and have tried many different variations of triggers to try to accomplish this. Could someone think of a way for me to do this? (If you could create a step by step process, that would be amazing.)</p>
  
  <p>Again, I need to track ONLY when they click and receive the message "Success!..."</p>
  
  <p>Thanks!</p>
  
  <pre><code>&lt;div class="row"&gt;
  &lt;div class="col-md-8 col-md-offset-3"&gt;
    &lt;div id="dns-loading" class="alert alert-info dns-alert" role="alert"&gt;
      &lt;span class="glyphicon glyphicon-refresh"&gt;&lt;/span&gt;
      Checking your DNS configuration...
    &lt;/div&gt;
    &lt;div id="dns-good" class="alert alert-success dns-alert" role="alert"&gt;
      &lt;span class="glyphicon glyphicon-ok-sign"&gt;&lt;/span&gt;
      Success! It looks like your DNS is properly configured!
    &lt;/div&gt;
    &lt;div id="dns-bad" class="alert alert-danger dns-alert" role="alert"&gt;
      &lt;span class="glyphicon glyphicon-remove-sign"&gt;&lt;/span&gt;
      Something went wrong! It appears your DNS is misconfigured. If you
      recently set your IP address range, please allow a few minutes for this
      data to propagate to our DNS servers.
    &lt;/div&gt;
    &lt;center&gt;
      &lt;div id="dns-button" class="btn btn-block btn-info"&gt;
        Test DNS
      &lt;/div&gt;
      &lt;img id="dns-img" width="0" height="0"/&gt;
    &lt;/center&gt;
    &lt;hr&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>