diff options
Diffstat (limited to 'templates/web/fixmystreet.com/header_extra.html')
-rw-r--r-- | templates/web/fixmystreet.com/header_extra.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/web/fixmystreet.com/header_extra.html b/templates/web/fixmystreet.com/header_extra.html index 27ffc12a1..65f88be14 100644 --- a/templates/web/fixmystreet.com/header_extra.html +++ b/templates/web/fixmystreet.com/header_extra.html @@ -1,3 +1,24 @@ <script src="[% start %][% version('/js/jquery.cookie.min.js') %]" type="text/javascript" charset="utf-8"></script> +[%# We are conducting an A/B experiment on the first step of reporting process %] +[% IF page == 'around' %] +<script src="//www.google-analytics.com/cx/api.js?experiment=1gdSSsSMQgy99AsCPeBalg"></script> +<script> +if (window.matchMedia) { + var desktop = window.matchMedia("(min-width: 48em)").matches; + if (desktop) { + var variation = cxApi.chooseVariation(), + docElement = document.documentElement, + className = docElement.className; + docElement.className = className + ' ' + 'variant' + variation; + } +} +</script> +<style> +html .variant1 { display: none !important; } +html.variant1 .variant0 { display: none !important; } +html.variant1 .variant1 { display: block !important; } +</style> +[% END %] + [% INCLUDE 'tracking_code.html' %] |