“The reference to entity “l” must end with the ‘;’ delimiter” in Google Blogger

“The reference to entity “l” must end with the ‘;’ delimiter” in Google Blogger

j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
 
replace error line with this above code 

or


If you're using a transitional XHTML doctype, you can use the
following snippet.  Make sure to change the container IDs
(highlighted):





<!-- Google Tag Manager -->


<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXX"


height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>


<script type="text/javascript">/*<![CDATA[*/(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:'';



f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-XXXX');


/*]]>*/</script>


<!-- End Google Tag Manager -->




If you absolutely must use a strict XHTML doctype, you can remove the
iframe.  You simply won't get support for visitors with JavaScript
disabled.  Your snippet would look like this.  Again, remember to change
the container ID (highlighted):




<!-- Google Tag Manager -->


<script type="text/javascript">/*<![CDATA[*/(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:'';



f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-XXXX');


/*]]>*/</script>


<!-- End Google Tag Manager -->


Share This:

Leave a Reply