diff options
Diffstat (limited to 'templates/web/stevenage')
-rw-r--r-- | templates/web/stevenage/footer.html | 2 | ||||
-rw-r--r-- | templates/web/stevenage/header.html | 2 | ||||
-rw-r--r-- | templates/web/stevenage/tracking_code.html | 16 |
3 files changed, 19 insertions, 1 deletions
diff --git a/templates/web/stevenage/footer.html b/templates/web/stevenage/footer.html index 955b86356..454da2bd9 100644 --- a/templates/web/stevenage/footer.html +++ b/templates/web/stevenage/footer.html @@ -1,5 +1,5 @@ [% IF pagefooter %] - <footer role="content-info"> + <footer role="contentinfo"> <div class="tablewrapper bordered"> <div id="footer-mobileapps"> <h4>Mobile apps</h4> diff --git a/templates/web/stevenage/header.html b/templates/web/stevenage/header.html index dbcc37866..155b35b64 100644 --- a/templates/web/stevenage/header.html +++ b/templates/web/stevenage/header.html @@ -23,6 +23,8 @@ [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] [% extra_js %] + [% INCLUDE 'tracking_code.html' %] + [% PROCESS 'header_extra.html' %] </head> <body class="[% bodyclass | html IF bodyclass %]"> diff --git a/templates/web/stevenage/tracking_code.html b/templates/web/stevenage/tracking_code.html new file mode 100644 index 000000000..e7c2bafd6 --- /dev/null +++ b/templates/web/stevenage/tracking_code.html @@ -0,0 +1,16 @@ +[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %] + +<script> + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + + ga('create', 'UA-21613820-7', 'auto'); + ga('send', 'pageview'); + +</script> + +[% ELSE %] +<!-- Tracking code not inserted as "[% c.config.BASE_URL %]" not "https://www.fixmystreet.com" --> +[% END %] |