Skip to content

Commit e247e91

Browse files
authored
Integrate Google Tag Manager into slug-template.html
Added Google Tag Manager scripts for tracking.
1 parent d3b4379 commit e247e91

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

templates/slug-template.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<!DOCTYPE html>
22
<html lang="{{locale}}" dir="{{htmlDir}}">
33
<head>
4+
<!-- Google Tag Manager -->
5+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
6+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
7+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
8+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
9+
})(window,document,'script','dataLayer','GTM-PCJH3L75');</script>
10+
<!-- End Google Tag Manager -->
411
<meta charset="UTF-8">
512
<meta name="viewport" content="width=device-width, initial-scale=1.0">
613
<title>{{title}} | java.evolved</title>
@@ -92,6 +99,10 @@
9299
</script>
93100
</head>
94101
<body data-page="single">
102+
<!-- Google Tag Manager (noscript) -->
103+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PCJH3L75"
104+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
105+
<!-- End Google Tag Manager (noscript) -->
95106
<nav>
96107
<div class="nav-inner">
97108
<a href="{{homeUrl}}" class="logo">java.<span>evolved</span></a>

0 commit comments

Comments
 (0)