You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Pathfora has a special configuration method for A/B Testing. This configuration is then used as a parameter for <ahref="../api/methods/#initializeabtesting">initializeABTesting</a>.</p>
275
+
<p>Pathfora has a special configuration method for A/B Testing. This configuration is then used as a parameter for <ahref="../../api/methods/#initializeabtesting">initializeABTesting</a>.</p>
<p>A/B Testing can be combined with <ahref="../targeting">audience targeting</a> to divide an audience into a 50/50 split. </p>
313
+
<p>A/B Testing can be combined with <ahref="../../targeting">audience targeting</a> to divide an audience into a 50/50 split. </p>
315
314
<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>
<p>For multiple modules with common elements we can define a configuration to apply to all modules, or all modules of a certain type. Maintaining a common config helps reduce the code repitition and allows you to change settings accross many widgets in one place. A config object can be passed as a second, optional argument to <ahref="../methods#initializewidgets">initializeWidgets</a>.</p>
249
+
<p>For multiple modules with common elements we can define a configuration to apply to all modules, or all modules of a certain type. Maintaining a common config helps reduce the code repitition and allows you to change settings accross many widgets in one place. A config object can be passed as a second, optional argument to <ahref="../../methods#initializewidgets">initializeWidgets</a>.</p>
251
250
<pre><codeclass="javascript">var config = {
252
251
generic: {
253
252
theme: 'dark'
@@ -344,12 +343,13 @@ <h3><a href="../../examples/preview/config/config.html" target="_blank">Live Pre
<p>This method is used to initialize <ahref="/ab_testing">A/B Tests</a> modules. If you're creating an A/B test scenario this should always be called <strong>before</strong> the <code>initializeWidgets</code> method.</p>
365
+
<p>This method is used to initialize <ahref="../../ab_testing">A/B Tests</a> modules. If you're creating an A/B test scenario this should always be called <strong>before</strong> the <code>initializeWidgets</code> method.</p>
<h3id="ab-test-configuration-method">A/B Test Configuration Method</h3>
387
-
<p>A/B Tests have their own configuration method <code>ABTest</code>. We cover this configuration in detail in the <ahref="/ab_testing">A/B Testing</a> section of this documentation.</p>
386
+
<p>A/B Tests have their own configuration method <code>ABTest</code>. We cover this configuration in detail in the <ahref="../../ab_testing">A/B Testing</a> section of this documentation.</p>
388
387
<h2id="recommendcontent">recommendContent</h2>
389
388
<p>recommendContent is a public method that makes a request to the Lytics content recommendation API and returns a list of recommended documents for the user. These results are also placed in session storage to reduce the number of calls to the API on subsequent page loads.</p>
390
389
<p><strong>Note:</strong> Lytics' public recommendation API is only authorized for use on domains that have been whitelisted for your account. Contact your customer success representative <code>[email protected]</code> if you need to whitelist a new domain.</p>
<p>triggerWidgets is a helper method for widgets with the <ahref="/display_conditions#manualtrigger">manualTrigger</a> displayCondition. Widgets with this condition will not display until all other display conditions are met, and <code>pathfora.triggerWidgets</code> has been called. This method is similar to <code>initializeWidgets</code>, in that it is useful when you want to trigger a module on a custom event with JavaScript. However with <code>triggerWidgets</code> you don't need to pass in widget object thus you can call this method even before the config has been defined.</p>
425
+
<p>triggerWidgets is a helper method for widgets with the <ahref="../../../display_conditions#manualtrigger">manualTrigger</a> displayCondition. Widgets with this condition will not display until all other display conditions are met, and <code>pathfora.triggerWidgets</code> has been called. This method is similar to <code>initializeWidgets</code>, in that it is useful when you want to trigger a module on a custom event with JavaScript. However with <code>triggerWidgets</code> you don't need to pass in widget object thus you can call this method even before the config has been defined.</p>
0 commit comments