I have inserted the GTM code with literal but the Analytics that I setup in the GTM doesn't seem to be firing correctly.
Tag assistant says that the Tag not fired through GTM & Code found outside of <head> tag.
{literal}
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(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'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- End Google Tag Manager -->
{/literal}
Also, how does a GTM code should look like when we view in under page source?
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
Hope some one can help.
Thanks.