7,8年前に制作したサイトをスマホ化対応させようと思ったら、
Googleアドセンスの表示でつまずいた。。。
まず、新規発行したアナリティクスコードを貼り付けると、画面が真っ白!!!
すべての要素が表示されす、いろいろ調べてみると、
コードが書かれているscriptの前後を{literal} {/literal}で囲んであげればよかった。
一件落着。
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- xxxxxxxxx --> <ins class="adsbygoogle" style="display:inline-block;width:320px;height:100px" data-ad-client="ca-pub-xxxxxxxxx" data-ad-slot="xxxxxxxx"></ins> {literal} <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> {/literal}