diff options
author | Struan Donald <struan@exo.org.uk> | 2012-07-19 10:27:13 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-08-09 09:55:47 +0100 |
commit | 15ca5b0d2ef908872f2e54785caab7a8a0584009 (patch) | |
tree | 569e445dbb5ae8d76aa9f38a63172aca09becf4c | |
parent | fc72cae5886441d6d4e3d526210d89987edce8df (diff) |
add in bromley GA code snippet
-rw-r--r-- | templates/web/bromley/header.html | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/templates/web/bromley/header.html b/templates/web/bromley/header.html index 69a595923..6e1c67dea 100644 --- a/templates/web/bromley/header.html +++ b/templates/web/bromley/header.html @@ -21,8 +21,23 @@ <script src="[% version('/js/modernizr.custom.js') %]" charset="utf-8"></script> <script src="[% version('/cobrands/bromley/position_map.js') %]" charset="utf-8"></script> [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-12543967-1']); + _gaq.push(['_setDomainName', 'bromley.gov.uk']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + </script> + [% extra_js %] - + <link rel="Shortcut Icon" type="image/x-icon" href="/cobrands/bromley/favicon.ico"> </head> |