VWO Script

Main VWO Code

<!-- Start Visual Website Optimizer Code -->
<script type='text/javascript'>
var _vis_opt_account_id = XXXXX;
var _vis_opt_protocol = (('https:' == document.location.protocol) ? 'https://' : 'http://');
var _vis_opt_url = typeof(_vis_opt_url)=="undefined" ? document.URL : _vis_opt_url;
document.write('<s' + 'cript src="' + _vis_opt_protocol + 
'dev.visualwebsiteoptimizer.com/deploy/js_visitor_settings.php?v=1&a='+_vis_opt_account_id+'&url='
+encodeURIComponent(_vis_opt_url)+'&random='+Math.random()+'" type="text/javascript">' + '<\/s' + 'cript>');
</script>

<script type='text/javascript'>
if(typeof(_vis_opt_settings_loaded) == "boolean") { document.write('<s' + 'cript src="' + _vis_opt_protocol + 
'd5phz18u4wuww.cloudfront.net/vis_opt.js" type="text/javascript">' + '<\/s' + 'cript>'); }
// if your site already has jQuery 1.4.2, replace vis_opt.js with vis_opt_no_jquery.js above
</script>

<script type='text/javascript'>
if(typeof(_vis_opt_settings_loaded) == "boolean" && typeof(_vis_opt_top_initialize) == "function") {
        _vis_opt_top_initialize(); vwo_$(document).ready(function() { _vis_opt_bottom_initialize(); });
}
</script>
<!-- End Visual Website Optimizer Code -->

VWO Revenue Tracking Code

<!-- VWO Revenue Tracking -->
<script>
  if(!isNaN(parseFloat('[Order Subtotal]'))){
    var _vis_opt_revenue=[Order Subtotal];
    var _vis_opt_queue = window._vis_opt_queue || [];
    _vis_opt_queue.push(function() {_vis_opt_revenue_conversion(_vis_opt_revenue);});
  }
</script>
<!-- VWO Revenue Tracking -->