Skip to content

Commit 6f33464

Browse files
Merge pull request #158 from luk27official/cookies
Cookies
2 parents a573e17 + 673421f commit 6f33464

11 files changed

Lines changed: 139 additions & 2 deletions

File tree

frontend/client/about/about.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ <h3>Lukáš Polák</h3>
168168
</div>
169169

170170
@require("../partials/footer.html")
171+
@require("../partials/ga.html")
171172

172173
</div>
173174
</body>

frontend/client/analyze/analyze.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
</code>
4646
</div>
4747
@require("../partials/footer.html")
48+
@require("../partials/ga.html")
4849
</div>
4950
</body>
5051

frontend/client/help/help.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ <h2 id="contact-us">Contact us</h2>
255255
</p>
256256

257257
@require("../partials/footer.html")
258+
@require("../partials/ga.html")
258259

259260
</div>
260261
</body>

frontend/client/index/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ <h1 class="text-center">
145145
</div>
146146

147147
</div>
148+
@require("../partials/ga.html")
148149
</body>
149150

150151
</html>

frontend/client/partials/ga.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<script type="module" src="./assets/scripts/cookieconsent-config.js"></script>
2+
<script
3+
type="text/plain"
4+
data-category="analytics">
5+
@googleAnalytics()
6+
</script>

frontend/client/partials/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
<meta name="viewport" content="width=device-width, initial-scale=1">
44
<meta name="description" content="Prank WebApp">
55
<link rel="icon" type="image/png" href="./assets/images/icon.png"/>
6+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.1.0/dist/cookieconsent.css">
67
<title>PrankWeb</title>
7-
@googleAnalytics()

frontend/client/privacy/privacy.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,16 @@ <h3>Data retention</h3>
5959

6060
<h3>Cookies</h3>
6161
<div class="contentBox">
62-
We do not store any cookies for this website.
62+
We store Google Analytics cookies for the purpose of monitoring the
63+
website traffic. This is optional and the user is asked for consent
64+
before the cookies are stored. To change your cookie settings, please
65+
click the button below.
66+
<br />
67+
<button type="button" data-cc="show-consentModal" class="btn btn-primary">View Consent Modal</button>
6368
</div>
6469

6570
@require("../partials/footer.html")
71+
@require("../partials/ga.html")
6672

6773
</div>
6874
</body>

frontend/client/terms/terms.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ <h2>ELIXIR CZ Terms of Use of the ELIXIR CZ Services</h2>
107107
</ol>
108108

109109
@require("../partials/footer.html")
110+
@require("../partials/ga.html")
110111

111112
</div>
112113
</body>

frontend/client/viewer/viewer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<div id="footer">
2828
@require("../partials/footer.html")
2929
</div>
30+
@require("../partials/ga.html")
3031
</body>
3132

3233
</html>

frontend/client/visualize/visualize.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<div id="root">
1414
<div id="content"></div>
1515
</div>
16+
@require("../partials/ga.html")
1617
</body>
1718

1819
</html>

0 commit comments

Comments
 (0)