Skip to content

Instantly share code, notes, and snippets.

@chrisst
Created December 14, 2012 17:41
Show Gist options
  • Save chrisst/4287226 to your computer and use it in GitHub Desktop.
Save chrisst/4287226 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
require([
'order!jquery',
'order!http://bck-cdn.truefitcorp.com/fitrec/bck/js/jqModal.js',
'order!http://bck-cdn.truefitcorp.com/fitrec/bck/js/fitrec.js'
], function($) {
tfc.event('tfc-fitrec-product', 'render', function(context) {
if ($('.tfc-fitrec-result.success').length > 0 || $('.tfc-fitrec-result.nouser').length > 0) {
window.optimizely.push(["activate", 152385827]);
}
})
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment