Google tag Manager This is error i got when save template

kikimiqbalsoft - BLOGGER / Blogspot This is error i got when save template. Iam pasting this code after opening the body tag...but this...

kikimiqbalsoft - BLOGGER / Blogspot This is error i got when save template. Iam pasting this code after opening the body tag...but this error raised,So plz fix this issue or give the error free code plz...
Error parsing XML, line 657, column 43: The reference to entity "l" must end with the ';' delimiter.
<!-- Google Tag Manager -->
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=
})(window,document,'script','dataLayer','GTM-XXXXX');</script>
<!-- End Google Tag Manager -->
-solved-

claudia_kLevel 9 25 Best Answers

11/20/13

Hi there,

This is a problem with blogger and GTM - blogger parses everything as XML which causes problems with the GTM tag.
Try the following:
In the code of your container tag you should see this line
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=

replace that line with this line - the change is highlighted in bold
j=d.createElement(s),dl=l!='dataLayer'?'&amp;l='+l:'';j.async=true;j.src=

Then copy the adjusted code in your blogger template and save the template - it should work now. When you then check the source code of the website you can see that the '&amp;' has been changed back by blogger to the correct '&', so the code that is actually included on the website is exactly the code that GTM requires.

Good luck
Claudia





COMMENTS

BLOGGER: 1
Loading...
Name

Aston Martin,3,Audi,4,Automotive,46,Bajaj,2,Bentley,1,Berita,39,Bmw,10,BMW,4,Bugatti,1,Car,41,Cheetah,1,Chevrolet,8,Chrysler,2,Classics,2,Daihatsu,16,Datsun,1,DFSK,1,Dodge,1,Ducati,2,Ferrari,3,Fiat,3,Fisker,2,Ford,8,Geely,1,Holden,3,Honda,32,Hyundai,4,Iklan,7,Infiniti,1,Jaguar,6,Kawasaki,1,KTM,1,Lamborghini,2,Land Rover,1,Lotus,1,Maserati,1,Mazda,4,McLaren,1,Mercedes,8,Mercedes-Benz,9,Mitsubhisi,3,motorcycles,20,My Journey,4,News,16,Nissan,14,Opel,3,Otomotif,17,Peugeot,1,Piaggio,1,Plymouth,1,Porsche,12,Prius,1,Proton,1,Renault,3,Roll-Royce,1,SEO,120,Skoda,1,SsangYong,1,Suzuki,37,Tata,7,Toyota,32,Volkswagen,4,Volvo,3,Wuling,1,Yamaha,9,Your Article Directory,7,
ltr
item
Auto SEO Journey: Google tag Manager This is error i got when save template
Google tag Manager This is error i got when save template
http://2.bp.blogspot.com/-irTseEI3Ub0/VDTqwp3_TyI/AAAAAAAADGc/nDrSdtA0kD0/s1600/google-tag-manager.jpg
http://2.bp.blogspot.com/-irTseEI3Ub0/VDTqwp3_TyI/AAAAAAAADGc/nDrSdtA0kD0/s72-c/google-tag-manager.jpg
Auto SEO Journey
http://kikimiqbalsoft.blogspot.com/2014/10/google-tag-manager-this-is-error-i-got.html
http://kikimiqbalsoft.blogspot.com/
http://kikimiqbalsoft.blogspot.com/
http://kikimiqbalsoft.blogspot.com/2014/10/google-tag-manager-this-is-error-i-got.html
true
5185894409767732715
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy