Integrating Wingify with your Volusion website allows you to create and run Wingify tests on your web store. To enable integration with your Volusion website, you must first add Wingify SmartCode to all the pages you want to test. After adding the code snippet to the relevant pages, you can create and run Wingify tests to capture visitor data on your Volusion web store.
Add Wingify code to the test pages
Enable revenue tracking
Add Wingify Code the Test Pages
Sign in to your Volusion admin account of your web store.
Select the Design tab and then click File Editor.
In the Shortcuts panel on the File Editor page, click template_xxx.html (where xxx is the number or name of your Volusion store template).
In the Live Edit window that opens, search the first section of your template’s code to find the closing </head> tag marked. You can also press Ctrl+F to search for the term “</head>” on the page.
-
Paste the following Asynchronous Wingify SmartCode into your Live Editor just above the </head> tag. Make sure to enter your Account ID in the var account_id value. Click here to learn how to add Wingify SmartCode to your website.
To check if you have correctly installed the SmartCode on your webpage, enter the URL in the SmartCode Checker of your Wingify Account. See SmartCode Checker in Wingify to know what different results mean.INFO: Your Wingify account ID is present in the panel at the top of the Wingify app. - Click Save.
Enable Revenue Tracking
Log in to the admin dashboard of your Volusion webstore, select Design, and click Site Content.
Scroll down till Article ID 130. If the article is not ID 130 in your store, use Search to find the article where Spot Key is ROI_Javascripts.
Click the Article ID.
In the Article Body field, click the HTML icon in the Easy Editor toolbar.
-
Enter or paste your script into the Article Body section and click Save. Click here to learn more about the revenue tracking goal in Wingify.
<script type="text/javascript">
var_vis_opt_revenue = "REPLACE_THIS_WITH_ACTUAL_REVENUE";
window._vis_opt_queue = window._vis_opt_queue || [];
window._vis_opt_queue.push(function() {
_vis_opt_revenue_conversion(_vis_opt_revenue);
});
window.VWO = window.VWO || [];
window.VWO.push(['track.revenueConversion', _vis_opt_revenue]);
</script>If your account is enabled with Data360, you need to insert the following line immediately below the <script> tag in your custom code.
var_vis_opt_revenue = "REPLACE_THIS_WITH_ACTUAL_REVENUE";
Also, replace the value of the revenue property with _vis_opt_revenue.
Finally, your code should be in the following format:
<script> var _vis_opt_revenue = "REPLACE_THIS_WITH_ACTUAL_REVENUE"; // Do not change anything in the following two lines window.VWO = window.VWO || []; VWO.event = VWO.event || function () {VWO.push(["event", ...arguments])}; // Replace the property values with your actual values VWO.event(<“eventName”>, { <“propertyName”>: <“PropertyValue”>, <“revenueProperty”>: _vis_opt_revenue, }); </script><script>
var _wingify_revenue = "REPLACE_THIS_WITH_ACTUAL_REVENUE";
// Do not change anything in the following two lines
window.Wingify = window.Wingify || [];
Wingify.event = Wingify.event || function () {Wingify.push(["event", ...arguments])};
// Replace the property values with your actual values
Wingify.event(<“eventName”>, {
<“propertyName”>: <“PropertyValue”>,
<“revenueProperty”>: _wingify_revenue,
});
</script> -
You can customize the revenue variable to hold a value other than the order total. For eg: If you want the order total less shipping cost and tax, you can modify the code as follows:
var _vis_opt_revenue = window.Order[2]– window.Order[4]– window.Order[5];
You can customize the revenue goal by adding other details as follows:
Order[0] = Order ID
Order[2] = Payment Amount
Order[3] = Affiliate Commissionable Value
Order[4] = Sales Tax
Order[5] = Total Shipping Cost
Click here to know more about customizing the revenue tracking code on Volusion.
And that’s it. Your Volusion web store is now integrated with Wingify. You can now go ahead and create a test on your website.