Skip to content

Commit 2cc1d23

Browse files
committed
Run experiment
1 parent 0290073 commit 2cc1d23

File tree

4 files changed

+103
-85
lines changed

4 files changed

+103
-85
lines changed

_layouts/default.html

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
<!DOCTYPE html>
22
<html lang="{{ site.lang | default: "en-US" }}">
33
<head>
4+
<!-- Google Analytics Content Experiment code -->
5+
<script>function utmx_section(){}function utmx(){}(function(){var
6+
k='161969970-0',d=document,l=d.location,c=d.cookie;
7+
if(l.search.indexOf('utm_expid='+k)>0)return;
8+
function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
9+
indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
10+
length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write(
11+
'<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl':
12+
'://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+
13+
'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().
14+
valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
15+
'" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();
16+
</script><script>utmx('url','A/B');</script>
17+
<!-- End of Google Analytics Content Experiment code -->
18+
419
<meta charset="UTF-8">
520

621
{% seo %}
@@ -14,8 +29,8 @@
1429
<img id="bloc-logo" src="/assets/img/bloc-logoblock.svg" onerror="this.onerror=null; this.src='bloc-logoblock.png'">
1530
<div class="page-header-content">
1631
<h1 class="project-name">Bouldering Reimagined</h1>
17-
<h2 class="project-tagline">&mdash;<br>Finally a bouldering companion done right</h2>
18-
<a href="#preview-bloc-beta" class="btn" id="cta-button">Preview the <strong>Bloc</strong> Beta</a>
32+
<h2 class="project-tagline">&mdash;<br><span id="tagline"></h2>
33+
<a href="#preview-bloc-beta" class="btn" id="cta-button"></a>
1934
</div>
2035
</section>
2136

@@ -77,29 +92,20 @@ <h2 class="project-tagline">&mdash;<br>Finally a bouldering companion done right
7792
function trackFormSubmission() {
7893
ga('send', 'event', 'subscribe form', 'submit', 'clicked get the beta button');
7994
}
80-
81-
/*
82-
// form submission tracker
83-
// Gets a reference to the form element, assuming
84-
// it contains the id attribute "signup-form".
85-
var subscribeForm = document.getElementById('mc-embedded-subscribe-form');
86-
87-
// Adds a listener for the "submit" event.
88-
subscribeForm.addEventListener('submit', function(event) {
89-
90-
// Prevents the browser from submitting the form
91-
// and thus unloading the current page.
92-
event.preventDefault();
93-
94-
// Sends the event to Google Analytics and
95-
// resubmits the form once the hit is done.
96-
ga('send', 'event', 'subscribe form', 'submit', 'clicked get the beta button', {
97-
hitCallback: function() {
98-
subscribeForm.submit();
99-
}
100-
});
101-
});*/
102-
95+
</script>
96+
<script>
97+
var params = (new URL(document.location)).searchParams;
98+
var tagline = "";
99+
var button = "";
100+
if (params.get("variant") == 1) {
101+
tagline = "We're hard at work developing our beta";
102+
button = "Get the preview"
103+
} else {
104+
tagline = "Finally a bouldering companion done right";
105+
button = "Preview the <strong>Bloc</strong> Beta"
106+
}
107+
document.getElementById('tagline').innerHTML = tagline;
108+
document.getElementById('cta-button').innerHTML = button;
103109
</script>
104110

105111
{% if site.google_analytics %}

_site/another-page.html

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
<!DOCTYPE html>
22
<html lang="en-US">
33
<head>
4+
<!-- Google Analytics Content Experiment code -->
5+
<script>function utmx_section(){}function utmx(){}(function(){var
6+
k='161969970-0',d=document,l=d.location,c=d.cookie;
7+
if(l.search.indexOf('utm_expid='+k)>0)return;
8+
function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
9+
indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
10+
length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write(
11+
'<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl':
12+
'://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+
13+
'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().
14+
valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
15+
'" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();
16+
</script><script>utmx('url','A/B');</script>
17+
<!-- End of Google Analytics Content Experiment code -->
18+
419
<meta charset="UTF-8">
520

621
<!-- Begin Jekyll SEO tag v2.3.0 -->
@@ -19,15 +34,15 @@
1934
<meta name="description" content="Bouldering Reimagined"/>
2035
<meta name="viewport" content="width=device-width, initial-scale=1">
2136
<meta name="theme-color" content="#00087f">
22-
<link rel="stylesheet" href="/assets/css/style.css?v=76fc92a470efd41b48544006b89bce3f614d7669">
37+
<link rel="stylesheet" href="/assets/css/style.css?v=029007382265da9421108e2893bd22b39f0e998e">
2338
</head>
2439
<body>
2540
<section class="page-header">
2641
<img id="bloc-logo" src="/assets/img/bloc-logoblock.svg" onerror="this.onerror=null; this.src='bloc-logoblock.png'">
2742
<div class="page-header-content">
2843
<h1 class="project-name">Bouldering Reimagined</h1>
29-
<h2 class="project-tagline">&mdash;<br>Finally a bouldering companion done right</h2>
30-
<a href="#preview-bloc-beta" class="btn" id="cta-button">Preview the <strong>Bloc</strong> Beta</a>
44+
<h2 class="project-tagline">&mdash;<br><span id="tagline"></h2>
45+
<a href="#preview-bloc-beta" class="btn" id="cta-button"></a>
3146
</div>
3247
</section>
3348

@@ -94,29 +109,20 @@ <h2 id="welcome-to-another-page">Welcome to another page</h2>
94109
function trackFormSubmission() {
95110
ga('send', 'event', 'subscribe form', 'submit', 'clicked get the beta button');
96111
}
97-
98-
/*
99-
// form submission tracker
100-
// Gets a reference to the form element, assuming
101-
// it contains the id attribute "signup-form".
102-
var subscribeForm = document.getElementById('mc-embedded-subscribe-form');
103-
104-
// Adds a listener for the "submit" event.
105-
subscribeForm.addEventListener('submit', function(event) {
106-
107-
// Prevents the browser from submitting the form
108-
// and thus unloading the current page.
109-
event.preventDefault();
110-
111-
// Sends the event to Google Analytics and
112-
// resubmits the form once the hit is done.
113-
ga('send', 'event', 'subscribe form', 'submit', 'clicked get the beta button', {
114-
hitCallback: function() {
115-
subscribeForm.submit();
116-
}
117-
});
118-
});*/
119-
112+
</script>
113+
<script>
114+
var params = (new URL(document.location)).searchParams;
115+
var tagline = "";
116+
var button = "";
117+
if (params.get("variant") == 1) {
118+
tagline = "We're hard at work developing our beta";
119+
button = "Get the preview"
120+
} else {
121+
tagline = "Finally a bouldering companion done right";
122+
button = "Preview the <strong>Bloc</strong> Beta"
123+
}
124+
document.getElementById('tagline').innerHTML = tagline;
125+
document.getElementById('cta-button').innerHTML = button;
120126
</script>
121127

122128

_site/index.html

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
<!DOCTYPE html>
22
<html lang="en-US">
33
<head>
4+
<!-- Google Analytics Content Experiment code -->
5+
<script>function utmx_section(){}function utmx(){}(function(){var
6+
k='161969970-0',d=document,l=d.location,c=d.cookie;
7+
if(l.search.indexOf('utm_expid='+k)>0)return;
8+
function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
9+
indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
10+
length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write(
11+
'<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl':
12+
'://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+
13+
'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().
14+
valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
15+
'" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();
16+
</script><script>utmx('url','A/B');</script>
17+
<!-- End of Google Analytics Content Experiment code -->
18+
419
<meta charset="UTF-8">
520

621
<!-- Begin Jekyll SEO tag v2.3.0 -->
@@ -19,15 +34,15 @@
1934
<meta name="description" content="Bouldering Reimagined"/>
2035
<meta name="viewport" content="width=device-width, initial-scale=1">
2136
<meta name="theme-color" content="#00087f">
22-
<link rel="stylesheet" href="/assets/css/style.css?v=76fc92a470efd41b48544006b89bce3f614d7669">
37+
<link rel="stylesheet" href="/assets/css/style.css?v=029007382265da9421108e2893bd22b39f0e998e">
2338
</head>
2439
<body>
2540
<section class="page-header">
2641
<img id="bloc-logo" src="/assets/img/bloc-logoblock.svg" onerror="this.onerror=null; this.src='bloc-logoblock.png'">
2742
<div class="page-header-content">
2843
<h1 class="project-name">Bouldering Reimagined</h1>
29-
<h2 class="project-tagline">&mdash;<br>Finally a bouldering companion done right</h2>
30-
<a href="#preview-bloc-beta" class="btn" id="cta-button">Preview the <strong>Bloc</strong> Beta</a>
44+
<h2 class="project-tagline">&mdash;<br><span id="tagline"></h2>
45+
<a href="#preview-bloc-beta" class="btn" id="cta-button"></a>
3146
</div>
3247
</section>
3348

@@ -37,25 +52,25 @@ <h2 class="project-tagline">&mdash;<br>Finally a bouldering companion done right
3752
<hr />
3853

3954
<h1 id="team">Team</h1>
40-
<p>Bloc is built by a team of machine learning experts and designers, Club Mate-enthusiasts and boulderers. Hard at work shaping the future.</p>
55+
<p>Bloc is built by a team of machine learning experts and designers, Club Mate-enthusiasts and boulderers — hard at work shaping the future.</p>
4156

4257
<div class="team">
4358
<div class="team-member">
44-
<img class="portrait" src="/assets/img/mats_portrait.jpg" alt="Portrait of Mats Julian Olsen" />
59+
<img class="portrait" src="/assets/img/mats_portrait.jpg" alt="Club-Mate Enthusiast Mats Julian Olsen" />
4560
<h2>Mats Julian Olsen</h2>
4661
<p class="role">Machine Learning Engineer</p>
4762
<p class="mail"><a href="mailto:mats@getbloc.xyz">mats@getbloc.xyz</a></p>
4863
</div>
4964

5065
<div class="team-member">
51-
<img class="portrait" src="/assets/img/bjorn_portrait.jpg" alt="Portrait of Bjorn Rustad" />
66+
<img class="portrait" src="/assets/img/bjorn_portrait.jpg" alt="Club-Mate Enthusiast Bjorn Rustad" />
5267
<h2>Bjørn Rustad</h2>
5368
<p class="role">Machine Learning Engineer</p>
5469
<p class="mail"><a href="mailto:mats@getbloc.xyz">bjorn@getbloc.xyz</a></p>
5570
</div>
5671

5772
<div class="team-member">
58-
<img class="portrait" src="/assets/img/leon_portrait.jpg" alt="Portrait of Leon Johannessen" />
73+
<img class="portrait" src="/assets/img/leon_portrait.jpg" alt="Club-Mate Enthusiast and Chief Astronaut Leon Johannessen" />
5974
<h2>Leon Johannessen</h2>
6075
<p class="role">Industrial Design Engineer</p>
6176
<p class="mail"><a href="mailto:mats@getbloc.xyz">leon@getbloc.xyz</a></p>
@@ -123,29 +138,20 @@ <h1 id="preview-bloc-beta">Preview Bloc Beta</h1>
123138
function trackFormSubmission() {
124139
ga('send', 'event', 'subscribe form', 'submit', 'clicked get the beta button');
125140
}
126-
127-
/*
128-
// form submission tracker
129-
// Gets a reference to the form element, assuming
130-
// it contains the id attribute "signup-form".
131-
var subscribeForm = document.getElementById('mc-embedded-subscribe-form');
132-
133-
// Adds a listener for the "submit" event.
134-
subscribeForm.addEventListener('submit', function(event) {
135-
136-
// Prevents the browser from submitting the form
137-
// and thus unloading the current page.
138-
event.preventDefault();
139-
140-
// Sends the event to Google Analytics and
141-
// resubmits the form once the hit is done.
142-
ga('send', 'event', 'subscribe form', 'submit', 'clicked get the beta button', {
143-
hitCallback: function() {
144-
subscribeForm.submit();
145-
}
146-
});
147-
});*/
148-
141+
</script>
142+
<script>
143+
var params = (new URL(document.location)).searchParams;
144+
var tagline = "";
145+
var button = "";
146+
if (params.get("variant") == 1) {
147+
tagline = "We're hard at work developing our beta";
148+
button = "Get the preview"
149+
} else {
150+
tagline = "Finally a bouldering companion done right";
151+
button = "Preview the <strong>Bloc</strong> Beta"
152+
}
153+
document.getElementById('tagline').innerHTML = tagline;
154+
document.getElementById('cta-button').innerHTML = button;
149155
</script>
150156

151157

index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ Bloc is a new platform for bouldering. It is reimagined and built from the groun
77
* * *
88

99
# Team
10-
Bloc is built by a team of machine learning experts and designers, Club Mate-enthusiasts and boulderers. Hard at work shaping the future.
10+
Bloc is built by a team of machine learning experts and designers, Club Mate-enthusiasts and boulderers &mdash; hard at work shaping the future.
1111

1212
<div class="team">
1313
<div class="team-member">
14-
<img class="portrait" src="/assets/img/mats_portrait.jpg" alt="Portrait of Mats Julian Olsen"/>
14+
<img class="portrait" src="/assets/img/mats_portrait.jpg" alt="Club-Mate Enthusiast Mats Julian Olsen"/>
1515
<h2>Mats Julian Olsen</h2>
1616
<p class="role">Machine Learning Engineer</p>
1717
<p class="mail"><a href="mailto:mats@getbloc.xyz">mats@getbloc.xyz</a></p>
1818
</div>
1919

2020
<div class="team-member">
21-
<img class="portrait" src="/assets/img/bjorn_portrait.jpg" alt="Portrait of Bjorn Rustad"/>
21+
<img class="portrait" src="/assets/img/bjorn_portrait.jpg" alt="Club-Mate Enthusiast Bjorn Rustad"/>
2222
<h2>Bjørn Rustad</h2>
2323
<p class="role">Machine Learning Engineer</p>
2424
<p class="mail"><a href="mailto:mats@getbloc.xyz">bjorn@getbloc.xyz</a></p>
2525
</div>
2626

2727
<div class="team-member">
28-
<img class="portrait" src="/assets/img/leon_portrait.jpg" alt="Portrait of Leon Johannessen"/>
28+
<img class="portrait" src="/assets/img/leon_portrait.jpg" alt="Club-Mate Enthusiast and Chief Astronaut Leon Johannessen"/>
2929
<h2>Leon Johannessen</h2>
3030
<p class="role">Industrial Design Engineer</p>
3131
<p class="mail"><a href="mailto:mats@getbloc.xyz">leon@getbloc.xyz</a></p>

0 commit comments

Comments
 (0)