title: Using variable names where single quotes are expected
body: <p>This is the Google RankTracker found <a href="http://www.blindfiveyearold.com/new-ways-to-track-keyword-rank" rel="nofollow">here</a></p>
  
  <pre><code>&lt;script&gt;
  if (document.referrer.match(/google\.com/gi) &amp;&amp; document.referrer.match(/cd/gi)) {
    var myString = document.referrer;
    var r        = myString.match(/cd=(.*?)&amp;/);
    var rank     = parseInt(r[1]);
    var kw       = myString.match(/q=(.*?)&amp;/);
    if (kw[1].length &gt; 0) {
      var keyWord  = decodeURI(kw[1]);
    } else {
      keyWord = "(not provided)";
    }
    var p        = document.location.pathname;
    ga('send', 'event', 'RankTracker', keyWord, p, rank, {'nonInteraction': 1});
    dataLayer.push({'eventCategory':'RankTracker','eventAction':keyWord,'eventLabel':p,'eventValue':rank 'event':'RankTracker'});
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I'm trying to get this working with Google Tag Manager, (the <code>dataLayer.push({...</code> section at the bottom), but I'm not sure the variables are working (although they work with the Universal Analytics <code>ga('send'...)</code> portion</p>
  
  <p>Should calling the variables as I have done work in this case?</p>
  
  <p>My main concern is the lack of single quotes around the values</p>
  
  <p>BTW, if anyone is wondering I have set up macros in GTM for eventCategory, etc., and my rule for firing is that event is equal to RankTracker</p>