diff options
Diffstat (limited to 'templates/web/bathnes/tracking_code.html')
-rw-r--r-- | templates/web/bathnes/tracking_code.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/web/bathnes/tracking_code.html b/templates/web/bathnes/tracking_code.html new file mode 100644 index 000000000..e6f20b90f --- /dev/null +++ b/templates/web/bathnes/tracking_code.html @@ -0,0 +1,12 @@ +[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %] +<script async src="https://www.googletagmanager.com/gtag/js?id=UA-418184-9"></script> +<script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + + gtag('config', 'UA-418184-9'); +</script> +[% ELSE %] +<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "https://www.fixmystreet.com" --> +[% END %] |