Google タグマネージャー メモ

Googleタグマネージャ 初期設定の手順、使い方まとめ
http://www.seohacks.net/blog/tool/google_tagmanager/

 

 

 

 

<!– AdSense code –>

スポンサーリンク<p>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– 2014094knntv_hedder –>
<ins class=”adsbygoogle”
style=”display:inline-block;width:320px;height:50px”
data-ad-client=”ca-pub-6025660138771154″
data-ad-slot=”1606340163″></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<p>
<!– txt data start –>
<!– txt data end –>

スポンサーリンク<p>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– 2014094knntv_footer –>
<ins class=”adsbygoogle”
style=”display:inline-block;width:336px;height:280px”
data-ad-client=”ca-pub-6025660138771154″
data-ad-slot=”6036539764″></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

<!– Google Anyliticsのコード取得 –>

<!– UA-54446478-1 –>

<script>
(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);

ga(‘create’, ‘UA-54446478-1’, ‘auto’);
ga(‘send’, ‘pageview’);

</script>

<!– 4knn.tv用のGoogle タグマネージャー –>

<!– Google Tag Manager –>
<noscript><iframe src=”//www.googletagmanager.com/ns.html?id=GTM-K5TKKC”
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・・・;
})(window,document,’script’,’dataLayer’,’GTM-K5TKKC’);</script>
<!– End Google Tag Manager –>