aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-11-20 15:26:01 +0000
committerDave Arter <davea@mysociety.org>2019-12-09 12:50:07 +0000
commit4566cdf5e4d28332c57c187d00ffd0dda952dd8a (patch)
tree1c4f7a208235c58ee2a7fe9d0fff37b4a251b486
parent348521a188009bb6f90116a4394ab2f955ee13e4 (diff)
[TfL] Add Cookiebot and Adobe analytics.
Cookiebot adds a cookies banner & declaration, and requires jQuery.
-rwxr-xr-xtemplates/web/tfl/about/faq-en-gb.html3
-rw-r--r--templates/web/tfl/footer_extra_js.html1
-rw-r--r--templates/web/tfl/header_extra.html1
-rw-r--r--templates/web/tfl/tracking_code.html7
4 files changed, 12 insertions, 0 deletions
diff --git a/templates/web/tfl/about/faq-en-gb.html b/templates/web/tfl/about/faq-en-gb.html
index 1acfcaca3..fe8a3c49e 100755
--- a/templates/web/tfl/about/faq-en-gb.html
+++ b/templates/web/tfl/about/faq-en-gb.html
@@ -62,4 +62,7 @@ Highways England, and the 32 London boroughs, plus the City of London.</p>
<li>Highways England manages the national motorway network, including the M25, M1, M4 and M11</li>
</ul>
+<h1>Cookie Declaration</h1>
+<script id="CookieDeclaration" src="https://consent.cookiebot.com/87b975a8-f977-4b96-9935-f5b0e33f75e6/cd.js" type="text/javascript" async></script>
+
[% INCLUDE 'footer.html' pagefooter = 'yes' %]
diff --git a/templates/web/tfl/footer_extra_js.html b/templates/web/tfl/footer_extra_js.html
index 7ff0d61c7..e91a2a389 100644
--- a/templates/web/tfl/footer_extra_js.html
+++ b/templates/web/tfl/footer_extra_js.html
@@ -1,4 +1,5 @@
[% scripts.push(
+ version('/jslib/jquery-1.7.2.min.js'),
version('/cobrands/fixmystreet-uk-councils/js.js'),
) %]
[%~
diff --git a/templates/web/tfl/header_extra.html b/templates/web/tfl/header_extra.html
new file mode 100644
index 000000000..8a977495f
--- /dev/null
+++ b/templates/web/tfl/header_extra.html
@@ -0,0 +1 @@
+[% INCLUDE 'tracking_code.html' %]
diff --git a/templates/web/tfl/tracking_code.html b/templates/web/tfl/tracking_code.html
new file mode 100644
index 000000000..8acf6c4d5
--- /dev/null
+++ b/templates/web/tfl/tracking_code.html
@@ -0,0 +1,7 @@
+<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="87b975a8-f977-4b96-9935-f5b0e33f75e6" type="text/javascript" async></script>
+
+[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %]
+<script src="//assets.adobedtm.com/launch-ENc5e3f827edc94f2a816110524598acd7.min.js" async></script>
+[% ELSE %]
+<script src="//assets.adobedtm.com/launch-ENc56c35f411854b108532dc14f2586333-development.min.js" async></script>
+[% END %]