Skip to content

Commit 6b0f75b

Browse files
authored
Merging to release-5.8: Testing removing existing Cookie and adding Cookiebot - note using te… (#6486)
Testing removing existing Cookie and adding Cookiebot - note using te… (#6486) * Testing removing existing Cookie and adding Cookiebot - note using test GTM at the moment do not out live * switching to production GTM * removing old files and references to them --------- Co-authored-by: Leonid Bugaev <[email protected]>
1 parent ea0233e commit 6b0f75b

File tree

4 files changed

+9
-64
lines changed

4 files changed

+9
-64
lines changed

tyk-docs/static/js/cookie.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

tyk-docs/themes/tykio/layouts/_default/baseof.html

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,8 @@
105105

106106
<body class="page-documentation {{ if and (not .Params.hideSidebar) (not .IsHome) }}hasSidebar{{ end }}">
107107
<!-- Google Tag Manager (noscript) -->
108-
<noscript
109-
><iframe
110-
src="https://www.googletagmanager.com/ns.html?id=GTM-NVX4PCL"
111-
height="0"
112-
width="0"
113-
style="display:none;visibility:hidden"></iframe
114-
></noscript>
108+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NVX4PCL"
109+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
115110
<!-- End Google Tag Manager (noscript) -->
116111

117112
<!-- Header -->
@@ -182,8 +177,6 @@ <h1>{{ .Title }}</h1>
182177
{{ partial "ai-chat-widget.html" . }}
183178
<script defer src="{{ "js/chat.js" | relURL }}"></script>
184179

185-
<!-- Cookie Notice -->
186-
{{ partial "cookie_notice.html" . }}
187180

188181
{{ if .Page.Store.Get "hasMermaid" }}
189182
<script type="module">

tyk-docs/themes/tykio/layouts/partials/cookie_notice.html

Lines changed: 0 additions & 20 deletions
This file was deleted.

tyk-docs/themes/tykio/layouts/partials/head_tracking.html

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1+
12
<!-- Google Tag Manager -->
2-
<script>
3-
if (!localStorage.getItem("cookieDisabled")) {
4-
(function (w, d, s, l, i) {
5-
w[l] = w[l] || [];
6-
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
7-
var f = d.getElementsByTagName(s)[0],
8-
j = d.createElement(s),
9-
dl = l != "dataLayer" ? "&l=" + l : "";
10-
j.defer = true; // Added defer attribute to defer script loading till after page load.
11-
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
12-
f.parentNode.insertBefore(j, f);
13-
})(window, document, "script", "dataLayer", "GTM-NVX4PCL");
14-
}
15-
</script>
3+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
4+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
6+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
7+
})(window,document,'script','dataLayer','GTM-NVX4PCL');</script>
168
<!-- End Google Tag Manager -->
9+
1710
<!-- Start of HubSpot Embed Code -->
1811
<script
1912
type="text/javascript"

0 commit comments

Comments
 (0)