aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/highwaysengland/tracking_code.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/highwaysengland/tracking_code.html')
-rw-r--r--templates/web/highwaysengland/tracking_code.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/web/highwaysengland/tracking_code.html b/templates/web/highwaysengland/tracking_code.html
new file mode 100644
index 000000000..ff705d264
--- /dev/null
+++ b/templates/web/highwaysengland/tracking_code.html
@@ -0,0 +1,15 @@
+[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %]
+
+<!-- Global site tag (gtag.js) - Google Analytics -->
+<script async src="https://www.googletagmanager.com/gtag/js?id=UA-159819528-1"></script>
+<script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', 'UA-159819528-1');
+</script>
+
+[% ELSE %]
+<!-- Tracking code not inserted ("[% c.config.BASE_URL %]" != "https://www.fixmystreet.com") -->
+[% END %]