WingifyGuides

Integrate Wingify with WordPress

This article covers the following: * Overview * Configuration and Setup + Install the Wingify Plugin (via Plugin Directory) + Install the Wingify Plugin with ZIP (Optional) + Configure General Settings + Configure WooCommerce Settings + Configure Server-Side Tracking (Optional) * Verify Event Tracking in Wingify * WooCommerce Events Imported Into Wingify + Product Viewed + Add To Cart + Remove from Cart + Purchase * Troubleshooting * Best Practices

#Overview

Installing the Wingify plugin for your WordPress sites enables you to create and run Wingify campaigns without writing a single line of code. After integrating the plugin, you can create unlimited tests from Wingify without any page tagging. The plugin also automatically tracks WooCommerce events, such as product views, add-to-cart actions, and purchases, which you can analyze using Wingify Data Platform.

#Configuration and Setup

#Install the Wingify Plugin (via Plugin Directory)

  1. Log in to your WordPress dashboard.
  2. Navigate to Plugins > Add New.
  3. Search for VWO in the search bar.
  4. Click Install Now next to the Visual Website Optimizer.
  5. Click Activate after installation.

#Install the Wingify Plugin with ZIP (Optional)

As an alternate method, you can also download the plugin from a ZIP file. To do so:

  1. Download the plugin here.
  2. Log in to your WordPress dashboard.
  3. Navigate to Plugins > Add New.
  4. Click on Upload Plugin > Choose ZIP file
  5. Click Install Now, then Activate.

upload-plugin.png
upload-plugin.png

#Configure General Settings

  1. Go to Settings > VWO in the WordPress sidebar.
  2. Enter your Account ID. You can find it on the top right of your Wingify dashboard.
  3. Choose the Code Type:
    • Asynchronous (Recommended): Loads faster without blocking elements.
    • Synchronous: Not recommended due to performance concerns.
  4. Click Save Change.

code-configuration.png
code-configuration.png

#Configure WooCommerce Settings

  1. In the VWO Configuration page, navigate to the WooCommerce tab.
  2. Turn on the Enable WooCommerce Event Tracking toggle.
  3. Enable the events you wish to track:
    • Product Viewed: Tracks product detail page views.
    • Add To Cart: Tracks when a product is added to the cart.
    • Product Removed From Cart: Tracks when an item is removed from the cart.
    • Purchase Order: Tracks completed purchases (Thank You page).
  4. Click Save Changes.

woocommerce settings.png
woocommerce settings.png

#Configure Server-Side Tracking (Optional)

Server-side tracking allows event data to be sent directly from your server to Wingify, ensuring better accuracy by bypassing browser-based blockers.

  1. From the WooCommerce tab, turn on the Enable Server-Side Tracking toggle.
  2. Click Save Changes.

#Verify Event Tracking in Wingify

  1. Log in to your Wingify account.
  2. Navigate to Data Platform > Events.
  3. Perform relevant actions on your WooCommerce store.
  4. After performing actions on your store, go to Wingify Data Platform > Events. If the events appear under Unregistered Events, click to register them for consistent tracking.

Note: If you are using the WordPress Rocket Loader plugin, exclude the Wingify SmartCode domain from Rocket Loader to prevent page flicker. On the WordPress Rocket dashboard, go to FILE OPTIMIZATION > JavaScript Files, and add the appropriate domain under the Excluded JavaScript Files section in both the Load JavaScript deferred and Delay JavaScript Execution sections.

Account created Domain to exclude
Before June 14, 2026 dev.visualwebsiteoptimizer.com
On/after June 14, 2026 edge.wingify.net

The following image shows where to add the domain.

vwo-javascript.png
vwo-javascript.png

Note: To check if you have correctly installed the SmartCode on your webpage, enter the URL in the SmartCode Checker in the Configurations> Websites and Apps section of your Wingify Account. See SmartCode Checker in Wingify to know what different results mean.

If you are using the Cloudflare Rocket Loader plugin, ensure you enable the Skip Deferred Execution setting in the Wingify plugin as shown in the following image to avoid any flicker on the site.

advanced-settings.png
advanced-settings.png

#WooCommerce Events Imported Into Wingify

The following are WooCommerce events that will be imported into Wingify, along with their properties:

#Product Viewed

Wingify Event API Name: woocommerce.productViewed

#Payload:

Property API Name Description
price Price of the product
currency Currency of the product price
productId Product ID
productTitle Product Title
productUrl Product URL
productCategory Product Category
productSku Product SKU
quantity Quantity viewed
variantId Variant ID of the viewed product

#Add To Cart

Wingify Event API Name: woocommerce.addToCart

#Payload:

Property API Name Description
price Price of the product
currency Currency of the product price
productId Product ID
productTitle Product Title
productUrl Product URL
productCategory Product Category
productSku Product SKU
quantity Quantity added to cart
variantId Variant ID of the added product

#Remove from Cart

Wingify Event API Name: woocommerce.removeFromCart

#Payload:

Property API Name Description
price Price of the product
currency Currency of the product price
productId Product ID
productTitle Product Title
productUrl Product URL
productSku Product SKU
quantity Quantity removed from cart
variantId Variant ID of the removed product

#Purchase

Wingify Event API Name: woocommerce.purchase

#Payload:

Property API Name Description
orderId ID of the order
productId CSV of line item product IDs
productSku CSV of line item product SKUs
productPrice CSV of line item prices in store currency
productQuantity CSV of line item quantity
discount Discount applied to the order
shippingPrice Shipping price for the transaction in local currency
totalTax Total amount of tax on the order in local currency
totalPrice Total Cart value, including tax in local currency
currencyCode Local currency of the transaction

#Troubleshooting

Issue Cause Solution
Smartcode is getting added to the footer causing the SmartCode detected at wrong position warning. A custom code or a plugin moves all the script tags to the bottom of the page. Some plugins or custom functions may move all scripts from the to the bottom of the page to improve load times. Examples include optimization, caching, or script management plugins. Ensure you perform the following: Review installed plugins or custom code that handle script placement. Identify the plugin or script that defers or relocates JavaScript execution. Exclude the Wingify Smartcode from being deferred or moved to the bottom. This ensures the SmartCode does not get altered/moved to the bottom.

#Best Practices

  • Ensure WooCommerce is installed and active before enabling WooCommerce settings.
  • Use incognito mode to test if tracking works correctly (to avoid caching or cookie conflicts).
  • Disable any conflicting optimization or caching plugins temporarily if SmartCode doesn’t load.
  • If SmartCode is not available after activation, clear the cache after activating the plugin.

#Need more help?

For more information or further assistance, contact Wingify Support.