Skip to content

Commit f23396e

Browse files
committed
added cookie consent (internationalized)
1 parent 7426d78 commit f23396e

5 files changed

Lines changed: 27 additions & 3 deletions

File tree

‎_includes/cookie_consent.html‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- Cookie Consent by TermsFeed Privacy Generator https://www.TermsFeed.com -->
2+
<script type="text/javascript" src="https://www.termsfeed.com/public/cookie-consent/4.0.0/cookie-consent.js" charset="UTF-8"></script>
3+
<script type="text/javascript" charset="UTF-8">
4+
document.addEventListener('DOMContentLoaded', function () {
5+
cookieconsent.run({"notice_banner_type":"interstitial","consent_type":"express","palette":"light","language":"{{ page.lang }}","page_load_consent_levels":["strictly-necessary"],"notice_banner_reject_button_hide":false,"preferences_center_close_button_hide":false,"page_refresh_confirmation_buttons":false,"website_privacy_policy_url":"https://www.prescriptiveanalytics.at/datenschutz/"});
6+
});
7+
</script>
8+
9+
<!-- Google Analytics -->
10+
<!-- Global site tag (gtag.js) - Google Analytics -->
11+
<script type="text/plain" cookie-consent="tracking" async src="https://www.googletagmanager.com/gtag/js?id=G-MP57MHXX9J"></script>
12+
<script type="text/plain" cookie-consent="tracking">
13+
window.dataLayer = window.dataLayer || [];
14+
function gtag(){dataLayer.push(arguments);}
15+
gtag('js', new Date());
16+
17+
gtag('config', 'G-MP57MHXX9J');
18+
</script>
19+
<!-- end of Google Analytics-->
20+
21+
<noscript>ePrivacy and GPDR Cookie Consent management by <a href="https://www.TermsFeed.com/" rel="nofollow">TermsFeed Privacy Generator</a></noscript>
22+
<!-- End Cookie Consent by TermsFeed Privacy Generator https://www.TermsFeed.com -->

‎_includes/google-analytics.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- Global site tag (gtag.js) - Google Analytics -->
2-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MP57MHXX9J"></script>
2+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MP57MHXX9J" type="text/plain" cookie-consent="tracking"></script>
33
<script>
44
window.dataLayer = window.dataLayer || [];
55
function gtag(){dataLayer.push(arguments);}

‎_includes/nav.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
{% capture prefix %}/{{ page.lang }}/{% endcapture %}
1616
{% endif %}
1717

18+
{% include cookie_consent.html %}
19+
1820
<nav id="mainNav" class="navbar navbar-default navbar-fixed-top{{ include.navcss }}">
1921
<div class="container-fluid">
2022
<!-- Brand and toggle get grouped for better mobile display -->

‎_layouts/blog.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% include head.html %}
77
<link rel="stylesheet" href="{{ "/assets/css/blog.css" | relative_url }}">
88
</head>
9-
<body id="page-top">
9+
<body id="page-top">
1010
{% include nav.html url=_url navcss=" affix noani" %}
1111
{{ content }}
1212
{% include footer.html %}

‎_layouts/home.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel="stylesheet" href="{{ "/assets/css/home.css" | relative_url }}">
77
</head>
88
<!-- <body id="page-top" data-bs-spy="scroll" data-bs-target="#mainNav"> -->
9-
<body id="page-top"></body>
9+
<body id="page-top"></body>
1010
{% include nav.html home=true navcss="" %}
1111
{% include home_header.html %}
1212
{{ content }}

0 commit comments

Comments
 (0)