title: add setTimeout to google tag manager manually
body: <p>Loading in Wordpress tag manager, and I want to add a setTimeout to load the script 5 seconds later.</p>
  <pre><code>    echo &quot;&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-code');&lt;/script&gt;&quot;;
  </code></pre>
  <p>second part:</p>
  <pre><code>&lt;noscript&gt;&lt;iframe src=&quot;https://www.googletagmanager.com/ns.html?id=GTM-code&quot;
          height=&quot;0&quot; width=&quot;0&quot; style=&quot;display:none;visibility:hidden&quot;&gt;&lt;/iframe&gt;&lt;/noscript&gt;
  </code></pre>