aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/bathnes/tracking_code.html
blob: 386b42e0e2ffa33c125a62de741de408e052da76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[% 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>

<!-- Hotjar Tracking Code for www.bathnes.gov.uk -->
<script> (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:909367,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); </script>
[% ELSE %]
<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "https://www.fixmystreet.com" -->
[% END %]