This file contains 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> | |
window.VWO = window.VWO || []; | |
VWO.event = VWO.event || function () {VWO.push(['event'].concat([].slice.call(arguments)))}; | |
VWO.event('purchase', { | |
'revenue':{order_total} | |
}) | |
</script> |
This file contains 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
{% if first_time_accessed %} | |
<script type="text/javascript"> | |
window.VWO = window.VWO || []; | |
{% assign _vis_opt_revenue = subtotal_price | divided_by: 100.0 %} | |
window._vis_opt_queue = window._vis_opt_queue || []; window._vis_opt_queue.push(function() {_vis_opt_revenue_conversion('{{ _vis_opt_revenue }}',{allowMultipleConsversions: true});}); | |
window.VWO.push(['track.revenueConversion','{{ _vis_opt_revenue }}']); | |
</script> | |
{% endif %} |
This file contains 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
default-src 'self' blob:; | |
connect-src *.visualwebsiteoptimizer.com app.vwo.com; | |
style-src 'self' 'unsafe-inline' *.visualwebsiteoptimizer.com app.vwo.com; | |
script-src 'self' 'nonce-[your-nonce-value]' *.visualwebsiteoptimizer.com app.vwo.com 'strict-dynamic'; | |
script-src-elem 'self' 'nonce-[your-nonce-value]' *.visualwebsiteoptimizer.com app.vwo.com 'strict-dynamic'; | |
img-src 'self' *.visualwebsiteoptimizer.com chart.googleapis.com app.vwo.com; | |
worker-src 'self' blob:; | |
frame-src app.vwo.com *.visualwebsiteoptimizer.com; |
This file contains 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
<!-- Start VWO Async SmartCode --> | |
<script type='text/javascript'> | |
window._vwo_code = window._vwo_code || (function(){ | |
var account_id=put_Your_VWO_Account_ID_Here, | |
settings_tolerance=2000, | |
library_tolerance=2500, | |
use_existing_jquery=false, | |
is_spa=1, | |
hide_element='body', |
This file contains 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
const express = require("express"); | |
const fs = require("fs"), | |
https = require("https"), | |
http = require("http"); | |
const { createProxyMiddleware } = require("http-proxy-middleware"); | |
const dacdnDomain = "mydomain.com", dacdnPath = "/vwo" | |
const ancdnDomain = "mydomain.com", ancdnPath = "" | |
const yourWebsite = "mydomain.com" |
This file contains 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
const express = require("express"); | |
const fs = require("fs"), | |
https = require("https"), | |
http = require("http"); | |
const { createProxyMiddleware } = require("http-proxy-middleware"); | |
const dacdnDomain = "sub.mydomain.com", dacdnPath = "" | |
const ancdnDomain = "sub.mydomain.com", ancdnPath = "" | |
const yourWebsite = "mydomain.com" |
This file contains 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
<!-- Start VWO revenue script --> | |
<script type="text/javascript"> | |
window.VWO = window.VWO || []; | |
VWO.event = VWO.event || function () { VWO.push(["event"].concat([].slice.call(arguments))) }; | |
VWO.event("purchase", { | |
"revenue": {{ total_price }}, | |
}); | |
</script> | |
<!-- End VWO revenue script --> |
This file contains 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
<!-- Start VWO revenue script --> | |
<script type="text/javascript"> | |
window.VWO = window.VWO || []; | |
window.VWO.push(['track.revenueConversion', '{{ total_price }}']); | |
window._vis_opt_queue = window._vis_opt_queue || []; | |
window._vis_opt_queue.push(function () { _vis_opt_revenue_conversion('{{ total_price }}'); }); | |
</script> | |
<!-- End VWO revenue script --> |
This file contains 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 type = "text/javascript" > | |
window._vis_opt_queue = window._vis_opt_queue || []; | |
window._vis_opt_queue.push(function() { | |
_vis_opt_revenue_conversion({order_total}); | |
}); | |
window.VWO = window.VWO || []; | |
window.VWO.push(['track.revenueConversion', {order_total}]); | |
</script> |
This file contains 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
config = { | |
popupSelector: string, // selector path of accept/deny popup to keep it unfiltered | |
filterTime: string | "best", // possible values best - balanced - early | |
isConsentGiven: () => "1" | |
or "2" | |
or "3" // function to check if consent has been given or not. | |
//"1" - Accepted - SmartCode will execute straightaway | |
// "2" - Denied - SmartCode will not be executed | |
// "3" - UNKNOWN - CSS FILTER will be applied since consent is unknown | |
filterTolerance: number // recommended when using the filterTimer as best |