title: How to test data layer variables in Google Tag Manager?
body: <p>In Google Tag Manager, I have some data layer variables set up. How can I test that the data is coming in through these variables as I expect? So, I want to verify that the data is getting collected in the <code>dataLayer</code> object (which can be done with Firebug, etc), but more importantly, I want to know that GTM is receiving the data, that the macros and rules are executing as expected, etc.</p>
  
  <p>So, on the website, I have some code like this:</p>
  
  <pre><code>dataLayer = [];
  
  dataLayer.push({
      'city': 'city name',
      'state': 'state name',
      'subtotalCost': 'subtotal $',
      'salesTax': 'sales tax $'
  });
  </code></pre>
  
  <p>And then after this, I have the GTM code that loads gtm.js. This seems to be implemented correctly, however, I want to test that the values for the data layer variables are coming through as expected. Where can I check this at?</p>