Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2584a17

Browse files
Google tag manager (#355)
1 parenta59049d commit2584a17

File tree

6 files changed

+35
-11
lines changed

6 files changed

+35
-11
lines changed

‎_includes/header.html‎

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,11 @@
3434

3535
{% include social.html %}
3636

37-
<script>
38-
!function(){varanalytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){returnfunction(){vare=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);returnanalytics}};for(vart=0;t<analytics.methods.length;t++){vare=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t,e){varn=document.createElement("script");n.type="text/javascript";n.async=!0;n.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";vara=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(n,a);analytics._loadOptions=e};analytics.SNIPPET_VERSION="4.1.0";
39-
analytics.load("6RMGK0gwLtkhqyAsAvWxu34PTqzSDeKp");
40-
analytics.page();
41-
}}();
42-
</script>
43-
44-
<!--
45-
url: {{ site.url }}
46-
baseurl: {{ site.baseurl }}
47-
-->
37+
<!-- Google Tag Manager -->
38+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
39+
newDate().getTime(),event:'gtm.js'});varf=d.getElementsByTagName(s)[0],
40+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
41+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
42+
})(window,document,'script','dataLayer','GTM-WV3QT3W');</script>
43+
<!-- End Google Tag Manager -->
44+

‎_layouts/default.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
{% include header.html %}
55
</head>
66
<body>
7+
<!-- Google Tag Manager (noscript) -->
8+
<noscript><iframesrc="https://www.googletagmanager.com/ns.html?id=GTM-WV3QT3W"
9+
height="0"width="0"style="display:none;visibility:hidden"></iframe></noscript>
10+
<!-- End Google Tag Manager (noscript) -->
11+
712
<aid="skippy"class="sr-only sr-only-focusable"href="#content">
813
<divclass="container">
914
<spanclass="skiplink-text">Skip to main content</span>

‎_layouts/docs.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
{% include header.html %}
99
</head>
1010
<bodydata-spy="scroll"data-target=".bd-toc"data-offset="100">
11+
<!-- Google Tag Manager (noscript) -->
12+
<noscript><iframesrc="https://www.googletagmanager.com/ns.html?id=GTM-WV3QT3W"
13+
height="0"width="0"style="display:none;visibility:hidden"></iframe></noscript>
14+
<!-- End Google Tag Manager (noscript) -->
15+
1116
<aid="skippy"class="sr-only sr-only-focusable"href="#content">
1217
<divclass="container">
1318
<spanclass="skiplink-text">Skip to main content</span>

‎_layouts/home.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
{% include header.html %}
55
</head>
66
<body>
7+
<!-- Google Tag Manager (noscript) -->
8+
<noscript><iframesrc="https://www.googletagmanager.com/ns.html?id=GTM-WV3QT3W"
9+
height="0"width="0"style="display:none;visibility:hidden"></iframe></noscript>
10+
<!-- End Google Tag Manager (noscript) -->
11+
712
<aid="skippy"class="sr-only sr-only-focusable"href="#content">
813
<divclass="container">
914
<spanclass="skiplink-text">Skip to main content</span>

‎_layouts/no-header-footer.html‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
{% include header.html %}
55
</head>
66
<body>
7+
8+
<!-- Google Tag Manager (noscript) -->
9+
<noscript><iframesrc="https://www.googletagmanager.com/ns.html?id=GTM-WV3QT3W"
10+
height="0"width="0"style="display:none;visibility:hidden"></iframe></noscript>
11+
<!-- End Google Tag Manager (noscript) -->
12+
713
<aid="skippy"class="sr-only sr-only-focusable"href="#content">
814
<divclass="container">
915
<spanclass="skiplink-text">Skip to main content</span>

‎_layouts/redirect.html‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
</style>
3232
</head>
3333
<body>
34+
35+
<!-- Google Tag Manager (noscript) -->
36+
<noscript><iframesrc="https://www.googletagmanager.com/ns.html?id=GTM-WV3QT3W"
37+
height="0"width="0"style="display:none;visibility:hidden"></iframe></noscript>
38+
<!-- End Google Tag Manager (noscript) -->
39+
3440
<h1>Redirecting&hellip;</h1>
3541
<ahref="{{ page.redirect.to }}">Click here if you are not redirected</a>
3642
<script>window.location="{{ page.redirect.to }}";</script>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp