-
マーケティング
-
9日目
- GoogleAnalytics
- GoogleTagManager
- GoogleSearchConsole
-
9日目
GoogleAnalytics
https://analytics.google.com を導入します。





トラッキング ID
UA-131342XXX-1 というのが見えたら完了です。
GoogleTagManager
Google Tag Manager
https://tagmanager.google.com/
からアクセスします。
コンテナを作成


コンテナが作成されます。
WordPress テーマの header.php にタグを追加
略
<?php wp_head(); ?>
<!-- Google Tag Manager -->
<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=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');</script>
<!-- End Google Tag Manager -->
</head>
<body <?php body_class(); ?>>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
タグを追加しました。
TagManager の画面からタグを作成します。




All Pages を選択肢ます。
これで公開します。

Analytics のリアルタイム画面でアクセスが取れていれば成功です。
GoogleSearchConsole
SearchConsole にアクセスします。
https://search.google.com



TagManager が入っていると自動で認識されます。