title: Uncaught SyntaxError: Unexpected token in JS
body: <p>I have this code, 
  and I keep getting the error in the subject.</p>
  
  <p>I didn't write this code by myself, but copy it from a website, and it's suppose to create parameters from the source of traffic.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    if (localStorage.getItem('firstSource') == null) 
      {
      var firstSource;
      if ({{Page URL}}.indexOf("gclid") &gt; -1) 
      {
          firstSource = "AdWords"
          console.log('adwords');
      }   
      else
          if ({{utm_source param}} != undefined) 
          {
          firstSource = "{{utm_source param}} / {{utm_medium param}}"
          console.log({{utm_source param}} + "utm");
          }
          else 
              if ( ({{Referrer}}.indexOf('google') &gt; -1) || ({{Referrer}}.indexOf('bing') &gt; -1))
              {
              firstSource = "{{Referrer}}"
              console.log('organic');
              }
              else 
                  if ( {{Referrer}} !== ") 
                      {
                      firstSource = {{Referrer}}
                      console.log('referrer');
                      }
                      else
                          if ({{Referrer}} == ") 
                              {
                              firstSource = "direct";
                              console.log('direct');
                              }
      localStorage.setItem('source',firstSource);
      dataLayer.push({'event':'setTheFirstSource','firstSource':firstSource});
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>Please advise</p>