Skip to content

Commit af4d461

Browse files
authored
Merge pull request #81 from yel-hadd/master
STAR-197 : Implement CookieBot scripts onto documentation engine
2 parents 3956e9f + 545eace commit af4d461

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

docs/.vuepress/headFunctions.ts

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
export default [
2-
[
3-
"script",
4-
{
5-
type: "text/javascript",
6-
charset: "UTF-8",
7-
src: "//cdn.cookie-script.com/s/c9f81de32507a4fec1eb03ee80d0f0ed.js",
8-
},
9-
],
2+
103
[
114
"script",
125
{
@@ -21,12 +14,12 @@ export default [
2114
"script",
2215
{},
2316
`
24-
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
25-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
26-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
27-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
28-
})(window,document,'script','dataLayer','GTM-5MC2SNS');
29-
`,
17+
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
18+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
19+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
20+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
21+
})(window,document,'script','dataLayer','GTM-5MC2SNS');
22+
`,
3023
],
3124
[
3225
"script",

0 commit comments

Comments
 (0)