Created
December 12, 2012 22:34
-
-
Save chrisst/4272284 to your computer and use it in GitHub Desktop.
Truefit AB Test code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
console.log('Truefit activation Promowell'); | |
require([ 'order!jquery', ], function($) { | |
console.log('inside the require'); | |
$.subscribe('load.truefit', function(context) { | |
// truefit loaded | |
console.log('Subscribing to truefit'); | |
tfc.event('tfc-fitrec-product', 'render', function(context) { | |
// truefit rendered, activate AB test | |
console.log('activating truefit AB test'); | |
window.optimizely = window.optimizely || []; | |
window.optimizely.push(["activate", 152385827]); | |
}) | |
}, this) | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment