diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-05-24 16:59:56 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-05-24 16:59:56 +0100 |
commit | f10acf678577e3e5a691c8385a5c67944cd1ca2f (patch) | |
tree | 2f223b41099e50bfa9f9d9f07ae549e7ace2d028 /templates | |
parent | e039a7e191d1f352b5d24bf5f965f2efeb5dc3de (diff) |
[fixmystreet.com] Only output experiment on live.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/fixmystreet.com/header_extra.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/web/fixmystreet.com/header_extra.html b/templates/web/fixmystreet.com/header_extra.html index e05bc31d2..0d53550eb 100644 --- a/templates/web/fixmystreet.com/header_extra.html +++ b/templates/web/fixmystreet.com/header_extra.html @@ -4,6 +4,7 @@ <script src="[% start %][% version('/cobrands/fixmystreet.com/js.js') %]"></script> [%# We are conducting an A/B experiment %] +[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %] <script src="//www.google-analytics.com/cx/api.js?experiment=ZwMlZkAhSbK_tP_QG64QrQ"></script> <script> var variation = cxApi.chooseVariation(), @@ -13,6 +14,7 @@ if (!/about\/council/.test(location.pathname)) { docElement.className = className + ' variant' + variation; } </script> +[% END %] <style> html .variant1 { display: none !important; } html.variant1 .variant0 { display: none !important; } |