aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-11-10 16:44:53 +0100
committerNoah Loomans <noahloomans@gmail.com>2016-11-10 16:44:53 +0100
commit9ceacba23fe7dbb8421f376c963cb19be8f545a0 (patch)
tree6786b4bd75f0f43f00b87596b455be3da6dd0cfc /views
parent462b2c88e85d07b212eece2a30ec69da1d6dce00 (diff)
added code for ab-testing
Diffstat (limited to 'views')
-rw-r--r--views/index.jade17
-rw-r--r--views/layout.jade1
2 files changed, 18 insertions, 0 deletions
diff --git a/views/index.jade b/views/index.jade
index 28d435b..c496bc0 100644
--- a/views/index.jade
+++ b/views/index.jade
@@ -1,5 +1,22 @@
extends layout
+block head_top
+ script.
+ function utmx_section(){}function utmx(){}(function(){var
+ k='129149775-1',d=document,l=d.location,c=d.cookie;
+ if(l.search.indexOf('utm_expid='+k)>0)return;
+ function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
+ indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
+ length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write(
+ '<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl':
+ '://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+
+ '&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().
+ valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
+ '" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();
+ script.
+ utmx('url','A/B');
+
+
block head
if version == 'new'
link(rel='stylesheet', href='/stylesheets/style_new.css')
diff --git a/views/layout.jade b/views/layout.jade
index c2dd534..10aa433 100644
--- a/views/layout.jade
+++ b/views/layout.jade
@@ -1,6 +1,7 @@
doctype html
html
head
+ block head_top
title Metis Rooster
meta(name='theme-color',content='#F44336')
meta(name='viewport', content='width=device-width, initial-scale=1')