Skip to content

Commit

Permalink
Added Google Tag Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
martin.ingesen committed Apr 29, 2024
1 parent f81c5d9 commit 135b630
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
8 changes: 7 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<html lang="en" prefix="og:https://ogp.me/ns#">
<head>
{{ block "tagmgrhead" . }}
{{ partial "tagmgrhead" . }}
{{ end }}
{{ block "head" . }}
{{ partial "head" . }}
{{ end }}
Expand All @@ -10,7 +13,10 @@
{{ end }}
</title>
</head>
<body>
<body>
{{ block "tagmgrbody" . }}
{{ partial "tagmgrbody.html" . }}
{{ end }}
{{ block "header" . }}
{{ partial "navbar" . }}
{{ end }}
Expand Down
6 changes: 6 additions & 0 deletions layouts/_default/baseof.no.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<html lang="en" prefix="og:https://ogp.me/ns#">
<head>
{{ block "tagmgrhead" . }}
{{ partial "tagmgrhead" . }}
{{ end }}
{{ block "head" . }}
{{ partial "head" . }}
{{ end }}
Expand All @@ -11,6 +14,9 @@
</title>
</head>
<body>
{{ block "tagmgrbody" . }}
{{ partial "tagmgrbody.html" . }}
{{ end }}
{{ block "header" . }}
{{ partial "navbar.no.html" . }}
{{ end }}
Expand Down
2 changes: 2 additions & 0 deletions layouts/home.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
{{ partial "tagmgrhead" . }}
{{ partial "head" . }}
<title>Kovert - We find your weaknesses before the hackers do</title>
<link rel="stylesheet" href="{{ (resources.Get "/css/index.css" | resources.Minify).Permalink }}">
</head>
<body>
{{ partial "tagmgrbody" . }}
<section class="hero is-fullheight is-transparent">
<div id="particles-js"></div>
<div class="hero-head">
Expand Down
2 changes: 2 additions & 0 deletions layouts/home.no.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
{{ partial "tagmgrhead" . }}
{{ partial "head" . }}
<title>Kovert - Vi finner svakhetene før skurkene gjør det</title>
<link rel="stylesheet" href="{{ (resources.Get "/css/index.css" | resources.Minify).Permalink }}">
</head>
<body>
{{ partial "tagmgrbody" . }}
<section class="hero is-fullheight is-transparent">
<div id="particles-js"></div>
<div class="hero-head">
Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/tagmgrbody.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W66WR67M" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
7 changes: 7 additions & 0 deletions layouts/partials/tagmgrhead.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- 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-W66WR67M');</script>
<!-- End Google Tag Manager -->

0 comments on commit 135b630

Please sign in to comment.