Skip to content

Commit

Permalink
Deployed a11c9ad with MkDocs version: 0.15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
markhayden committed Aug 15, 2016
1 parent fb7da3a commit 8116f89
Show file tree
Hide file tree
Showing 119 changed files with 5,004 additions and 1,131 deletions.
120 changes: 75 additions & 45 deletions ab_testing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,17 @@

<li>
<ul class="subnav">
<li><span>API Reference</span></li>
<li><span>Modules</span></li>



<li class="toctree-l1 ">
<a class="" href="../api/methods/">Methods</a>

</li>
<ul class="subnav">
<li><span>API Reference</span></li>



<li class="toctree-l1 ">
<a class="" href="../api/acctid/">Lytics Account ID</a>
<a class="" href="../api/methods/">Methods</a>

</li>

Expand All @@ -90,9 +88,9 @@


</ul>
<li>
<li>



<ul class="subnav">
<li><span>Types</span></li>

Expand Down Expand Up @@ -126,9 +124,9 @@


</ul>
<li>
<li>



<ul class="subnav">
<li><span>Layouts</span></li>

Expand Down Expand Up @@ -162,9 +160,9 @@


</ul>
<li>
<li>



<ul class="subnav">
<li><span>Customization</span></li>

Expand Down Expand Up @@ -205,9 +203,9 @@


</ul>
<li>
<li>



<li class="toctree-l1 current">
<a class="current" href="./">A/B Testing</a>

Expand All @@ -230,34 +228,66 @@
</ul>

</li>
<li>
<li>



<li class="toctree-l1 ">
<a class="" href="../targeting/">Audience Targeting</a>

</li>
<li>
<li>



<li class="toctree-l1 ">
<a class="" href="../callbacks/">Callbacks</a>

</li>
<li>

<li>



<li class="toctree-l1 ">
<a class="" href="../content_recommend/">Content Recommendations</a>

</li>



<li class="toctree-l1 ">
<a class="" href="../display_conditions/">Display Conditions</a>

</li>



<li class="toctree-l1 ">
<a class="" href="../tracking/">Tracking</a>

</li>


</ul>
<li>

<li>
<ul class="subnav">
<li><span>Inline Personalization</span></li>



<li class="toctree-l1 ">
<a class="" href="../tracking/">Tracking</a>
<a class="" href="../toggle/">Element Toggle</a>

</li>



<li class="toctree-l1 ">
<a class="" href="../inline_content/">Inline Content Recommendations</a>

</li>


</ul>
<li>

</ul>
Expand All @@ -281,6 +311,10 @@
<li><a href="..">Docs</a> &raquo;</li>



<li>Modules &raquo;</li>



<li>A/B Testing</li>
<li class="wy-breadcrumbs-aside">
Expand All @@ -293,17 +327,17 @@
<div class="section">

<p>Pathfora supports A/B testing on a global level as well as on a targeted audience. You can split a pool of users to show some proportion of them a group of modules "A" and the other portion a group "B".</p>
<pre><code class="javascript">var moduleTest = pathfora.ABTest({
<pre><code class="javascript">var moduleTest = new pathfora.ABTest({
id: 'ab-test-id',
type: '50/50',
groups: [
[ moduleA ],
[ ]
[moduleA],
[]
]
});

pathfora.initializeABTesting([ moduleTest ]);
pathfora.initializeWidgets([ moduleA ]);
pathfora.initializeABTesting([moduleTest]);
pathfora.initializeWidgets([moduleA]);
</code></pre>

<h2 id="abtest">ABTest</h2>
Expand Down Expand Up @@ -348,40 +382,36 @@ <h2 id="with-audience-targeting">With Audience Targeting</h2>
<p>A/B Testing can be combined with <a href="../targeting/">audience targeting</a> to divide an audience into a 50/50 split. </p>
<p>In the example below module "A" will be displayed to roughly half of the users in the <code>smt_new</code> audience, while the other half of the audience will be shown module "B".</p>
<h3 id="new-users-message-test">New Users Message Test</h3>
<pre><code class="javascript">var moduleA = pathfora.Message({
<pre><code class="javascript">var moduleA = new pathfora.Message({
id: 'message-a',
layout: 'slideout',
msg: 'Message A'
});

var moduleB = pathfora.Message({
var moduleB = new pathfora.Message({
id: 'message-b',
layout: 'slideout',
msg: 'Message B'
});

var ab = pathfora.ABTest({
var ab = new pathfora.ABTest({
id: 'targeted-ab-test',
type: '50/50',
groups: [
[ moduleA ],
[ moduleB ]
[moduleA],
[moduleB]
]
});

var widgets = {
target: [{
segment: 'smt_new',
widgets: [ moduleA, moduleB ]
widgets: [moduleA, moduleB]
}]
};

pathfora.initializeABTesting([ ab ]);

// using the lytics callback assumes that window.liosetup exists and the lytics js tag is loaded after the pathfora config
window.liosetup.callback = function(){
pathfora.initializeWidgets(widgets, 'YOUR LYTICS ACCOUNT ID');
};
pathfora.initializeABTesting([ab]);
pathfora.initializeWidgets(widgets);
</code></pre>

<h2 id="testing">Testing</h2>
Expand Down
Loading

0 comments on commit 8116f89

Please sign in to comment.