title: Intercom ECMASCRIPT6 Tag Manager Error
body: <p>I previously successfully setup intercom using Google Tag Manager. Haven't touched it for a couple of months and go to make a new tag but I'm presented with this error coming from the intercom tag:</p>
  
  <pre><code>Error at line 6, character 243: this language feature is only supported for ECMASCRIPT6 mode or better: block-scoped function declaration. Use --language_in=ECMASCRIPT6 or ECMASCRIPT6_STRICT or higher to enable ES6 features.
  </code></pre>
  
  <p>My script for intercom hasn't changed since it originally worked:</p>
  
  <pre><code>&lt;script&gt;
    window.intercomSettings = {
      app_id: "key"
    };
  &lt;/script&gt;
  &lt;script&gt;(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/key';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()&lt;/script&gt;
  </code></pre>
  
  <p>If anyone has encountered this error and has any advise or tips on how to solve it, it would be much appreciated.</p>