Skip to content

Commit 453e68c

Browse files
committed
add tarteaucitron and configure it for gtm
1 parent ae4792a commit 453e68c

1 file changed

Lines changed: 26 additions & 12 deletions

File tree

index.html

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
11
<!doctype html>
22
<html lang="fr">
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-PP2MKTCW');</script>
10-
<!-- End Google Tag Manager -->
4+
<!-- tarteaucitron.js - Cookie consent manager -->
5+
<script src="https://cdn.jsdelivr.net/npm/tarteaucitronjs@1.29.0/tarteaucitron.min.js"></script>
6+
<script type="text/javascript">
7+
tarteaucitron.init({
8+
"privacyUrl": "",
9+
"bodyPosition": "top",
10+
"hashtag": "#tarteaucitron",
11+
"cookieName": "tarteaucitron",
12+
"orientation": "banner",
13+
"groupServices": true,
14+
"showDetailsOnClick": true,
15+
"serviceDefaultState": "wait",
16+
"closePopup": true,
17+
"showIcon": true,
18+
"iconPosition": "BottomRight",
19+
"DenyAllCta": true,
20+
"AcceptAllCta": true,
21+
"highPrivacy": true,
22+
"mandatory": true,
23+
"googleConsentMode": true
24+
});
25+
26+
// Google Tag Manager
27+
tarteaucitron.user.googletagmanagerId = 'GTM-PP2MKTCW';
28+
(tarteaucitron.job = tarteaucitron.job || []).push('googletagmanager');
29+
</script>
1130

1231
<meta charset="utf-8">
1332
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
@@ -158,11 +177,6 @@
158177

159178
</head>
160179
<body>
161-
<!-- Google Tag Manager (noscript) -->
162-
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PP2MKTCW"
163-
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
164-
<!-- End Google Tag Manager (noscript) -->
165-
166180
<section
167181
id="hello"
168182
class="hero-section uk-section uk-padding uk-flex uk-flex-middle"

0 commit comments

Comments
 (0)