SlideShare une entreprise Scribd logo
1  sur  13
Google Tag Manager(GTM)
Yahoo! Tag Manager(YTM)
タグ の 貼付位置 と 注意点
- 全12枚 -
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
1. GTM
1. タグの発行場所
2. タグの貼付位置
3. 2つ以上、タグを設置する場合
2. YTM
1. タグの発行場所
2. タグの貼付位置
3. 2つ以上、タグを設置する場合
3. 設置・貼り付けイメージ(GTM&YTM)
4. 設置における注意点
5. 公式ヘルプページ
目次
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
GTM – タグの発行場所①
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
GTM – タグの発行場所②
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
①
②
この2つ!
1)<head>内の可能な限り上に設置。
GTM – 貼付位置 について
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
<!-- 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-●●●●●●');</script>
<!-- End Google Tag Manager -->
2)<body> の直後(直下)に 設置。
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-●●●●●●"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<script>, <noscript>それぞれを並行に設置する。
GTM – 2つ以上のアカウントを設置する場合
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
<!-- 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-●●●●●●');</script>
<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-▲▲▲▲▲▲');</script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-●●●●●●"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-▲▲▲▲▲▲"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
YTM – タグの発行場所
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
</body> の直上に設置。
YTM – 貼付位置について
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
<!-- Yahoo Tag Manager -->
<script id="tagjs" type="text/javascript">
(function () {
var tagjs = document.createElement("script");
var s = document.getElementsByTagName("script")[0];
tagjs.async = true;
tagjs.src = "//s.yjtag.jp/tag.js#site=●●●●●●●";
s.parentNode.insertBefore(tagjs, s);
}());
</script>
<!-- End Yahoo Tag Manager -->
<!-- Yahoo Tag Manager (noscript) -->
<noscript>
<iframe src=“//b.yjtag.jp/iframe?c=●●●●●●●" width="1" height="1" frameborder="0"
scrolling="no" marginheight="0" marginwidth="0"></iframe>
</noscript>
<!-- End Yahoo Tag Manager (noscript) -->
IDの箇所に、,(コンマ)区切りでIDを追加する。
YTM – 2つ以上のアカウントを設置する場合
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
<!-- Yahoo Tag Manager -->
<script id="tagjs" type="text/javascript">
(function () {
var tagjs = document.createElement("script");
var s = document.getElementsByTagName("script")[0];
tagjs.async = true;
tagjs.src = “//s.yjtag.jp/tag.js#site=●●●●●●●,▲▲▲▲▲▲▲▲";
s.parentNode.insertBefore(tagjs, s);
}());
</script>
<!-- End Yahoo Tag Manager -->
<!-- Yahoo Tag Manager (noscript) -->
<noscript>
<iframe src=“//b.yjtag.jp/iframe?c=●●●●●●●,▲▲▲▲▲▲▲▲" width="1" height="1"
frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>
</noscript>
<!-- End Yahoo Tag Manager (noscript) -->
貼り付けイメージ
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
<html>
<head>
</head>
<body>
</body>
</html>
GTM ①
GTM ②
YTM
タグを設置する際の 注意点
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
1. <div> ~ </div> 内にはできるだけ設置しない。
2. <iframe> ~ </iframe> 内には設置しない。
3. 設置直後に、タグを設置したWebサイトが
表示されるかどうかを、必ず確認する。
4. 貼り間違いがないか?(コピペミス)、
全ページに貼り付けたかを、必ず確認する。
 Google Tag Manager(GTM)※英語
http://bit.ly/GTM-QSG
 Yahoo! Tag Manager(YTM)
http://bit.ly/YTM-QSG
公式ヘルプページ
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
 2017.09.04 公開
 2017.09.05 更新
 2018.10.09 更新
更新情報
Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
問い合わせ先: info@sublimejp.com
担当: でぶてて
お気軽にどうぞ。

Contenu connexe

En vedette

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

En vedette (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

【タグマネージャー】GTM と YTMのタグの貼付位置(設置場所)について

  • 1. Google Tag Manager(GTM) Yahoo! Tag Manager(YTM) タグ の 貼付位置 と 注意点 - 全12枚 - Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
  • 2. 1. GTM 1. タグの発行場所 2. タグの貼付位置 3. 2つ以上、タグを設置する場合 2. YTM 1. タグの発行場所 2. タグの貼付位置 3. 2つ以上、タグを設置する場合 3. 設置・貼り付けイメージ(GTM&YTM) 4. 設置における注意点 5. 公式ヘルプページ 目次 Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
  • 3. GTM – タグの発行場所① Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
  • 4. GTM – タグの発行場所② Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved. ① ② この2つ!
  • 5. 1)<head>内の可能な限り上に設置。 GTM – 貼付位置 について Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved. <!-- 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-●●●●●●');</script> <!-- End Google Tag Manager --> 2)<body> の直後(直下)に 設置。 <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-●●●●●●" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) -->
  • 6. <script>, <noscript>それぞれを並行に設置する。 GTM – 2つ以上のアカウントを設置する場合 Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved. <!-- 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-●●●●●●');</script> <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-▲▲▲▲▲▲');</script> <!-- End Google Tag Manager --> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-●●●●●●" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-▲▲▲▲▲▲" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) -->
  • 7. YTM – タグの発行場所 Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
  • 8. </body> の直上に設置。 YTM – 貼付位置について Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved. <!-- Yahoo Tag Manager --> <script id="tagjs" type="text/javascript"> (function () { var tagjs = document.createElement("script"); var s = document.getElementsByTagName("script")[0]; tagjs.async = true; tagjs.src = "//s.yjtag.jp/tag.js#site=●●●●●●●"; s.parentNode.insertBefore(tagjs, s); }()); </script> <!-- End Yahoo Tag Manager --> <!-- Yahoo Tag Manager (noscript) --> <noscript> <iframe src=“//b.yjtag.jp/iframe?c=●●●●●●●" width="1" height="1" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe> </noscript> <!-- End Yahoo Tag Manager (noscript) -->
  • 9. IDの箇所に、,(コンマ)区切りでIDを追加する。 YTM – 2つ以上のアカウントを設置する場合 Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved. <!-- Yahoo Tag Manager --> <script id="tagjs" type="text/javascript"> (function () { var tagjs = document.createElement("script"); var s = document.getElementsByTagName("script")[0]; tagjs.async = true; tagjs.src = “//s.yjtag.jp/tag.js#site=●●●●●●●,▲▲▲▲▲▲▲▲"; s.parentNode.insertBefore(tagjs, s); }()); </script> <!-- End Yahoo Tag Manager --> <!-- Yahoo Tag Manager (noscript) --> <noscript> <iframe src=“//b.yjtag.jp/iframe?c=●●●●●●●,▲▲▲▲▲▲▲▲" width="1" height="1" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe> </noscript> <!-- End Yahoo Tag Manager (noscript) -->
  • 10. 貼り付けイメージ Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved. <html> <head> </head> <body> </body> </html> GTM ① GTM ② YTM
  • 11. タグを設置する際の 注意点 Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved. 1. <div> ~ </div> 内にはできるだけ設置しない。 2. <iframe> ~ </iframe> 内には設置しない。 3. 設置直後に、タグを設置したWebサイトが 表示されるかどうかを、必ず確認する。 4. 貼り間違いがないか?(コピペミス)、 全ページに貼り付けたかを、必ず確認する。
  • 12.  Google Tag Manager(GTM)※英語 http://bit.ly/GTM-QSG  Yahoo! Tag Manager(YTM) http://bit.ly/YTM-QSG 公式ヘルプページ Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved.
  • 13.  2017.09.04 公開  2017.09.05 更新  2018.10.09 更新 更新情報 Copyright 2014- © SublimeJP & HIRANO YUSUKE(debutete). All Rights Reserved. 問い合わせ先: info@sublimejp.com 担当: でぶてて お気軽にどうぞ。