title: Google analytics client id cookie not set
body: <p>First of all, this is first time I'm trying to setup Google Analytics and Tag Manager and need client id from <code>_ga</code> cookie.</p>
  
  <p>I thought that including snippet gtm.js is enough but <code>_ga</code> is not set after that</p>
  
  <pre><code>&lt;!-- Google Tag Manager --&gt;
  &lt;script&gt;(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  j=d.createElement(s),dl=l!='dataLayer'?'&amp;l='+l:'';j.async=true;j.src=
  'https://www.googletagmanager.com/gtm.js? 
  id='+i+dl;f.parentNode.insertBefore(j,f);
  })(window,document,'script','dataLayer','GTM-XXXX');&lt;/script&gt;
  &lt;!-- End Google Tag Manager --&gt;
  </code></pre>
  
  <p>So my question do I need to include also snippet for <code>analitycs.js</code> or <code>gtm.js</code> is enough but I'm doing something wrong ?</p>