Varly

Description

Varly shows how visitors use your site, with heatmaps, session recordings and surveys, and runs A/B tests to find out which version of a page works better. This plugin connects your WordPress site to Varly. It works on any WordPress site, with or without WooCommerce.

You need a Varly account. Varly is a paid service; see varly.ai/pricing.

What the plugin does

  • Connect to Varly in one click. Click Connect to Varly, pick your site in Varly, and you’re done. There’s nothing to copy. You can also paste your site key yourself.
  • Adds the Varly snippet to the top of every page, so A/B tests show without flicker. It skips the admin, the customizer, feeds, REST requests, post previews and page builder editors. Optionally, it leaves out visits by logged-in administrators (and shop managers).
  • Works with caching and speed plugins. It keeps WP Rocket, LiteSpeed Cache, W3 Total Cache, Autoptimize, SiteGround Speed Optimizer, Perfmatters, Hummingbird, WP-Optimize, WP Fastest Cache, Jetpack Boost and Cloudflare Rocket Loader from delaying, deferring or combining the snippet.
  • Follows your cookie banner. Varly never shows its own banner. It reads the choice from Cookiebot, Complianz, CookieYes, Borlabs Cookie and other banners, directly or through Google Consent Mode, and supports the WP Consent API. What Varly does before a visitor accepts follows your consent settings in Varly.
  • Shows the connection status: whether Varly receives visits, and whether orders arrive.

With WooCommerce

  • Sends each order to Varly once it is paid, linked to the visit that led to it, so A/B test results and click impact can count revenue. Orders are sent from your server in the background, so checking out never gets slower. An order that is never paid is not sent on its own. After an order was sent, a refund, a cancellation, a failed payment, a change to the order, or moving it to the trash or deleting it updates that order in Varly.
  • Sends your order list once a day, so Varly can compare its revenue with your shop. This list holds all orders, paid or not, with their status.
  • Sends add-to-cart events, which you can pick as a goal for A/B tests and funnels.
  • Runs on the cart and checkout too, so you can test, record and survey there. What visitors type in your site’s fields is never recorded or sent, checkout recordings hide all text, and payment fields are never recorded. You can leave the checkout out with one setting; your cart and the order confirmation page keep the snippet. See the FAQ “What happens on the cart and checkout?”.
  • Compatible with the block checkout and the classic checkout, and with High-Performance Order Storage (HPOS).

What Varly receives about orders

  • Per order: the order number, the total (minus refunds, or 0 when it is canceled, refunded or its payment failed), the currency, the number of items, the order time, where the order was made (web shop, admin, point of sale or subscription renewal), whether it was canceled or refunded, and the visitor and session ID of the visit, if the visitor accepted cookies.
  • In the daily order list: per order the number, time, total, tax, shipping, refunded amount, currency, status (paid, unpaid, canceled or refunded) and where it was made.

Never names, addresses, email addresses, products or payment details. The section External services below says when each of these is sent.

For developers

  • varly_print_snippet (filter, bool): add the snippet to this page or not. Use it to leave out other pages than the checkout.
  • varly_exclude_current_user (filter, bool): leave out the current user’s visits. The snippet still loads, so Varly’s visual editor and previews keep working. This needs pages not to be cached for logged-in users.
  • VARLY_APP_URL and VARLY_CDN_URL (constants in wp-config.php): other Varly addresses, for example for a test setup.
  • In the browser, window.Varly offers track(name, props), ids() and consent(granted). See the Varly help.

External services

This plugin connects your site to Varly (https://varly.ai), the service it is made for. It sends data to Varly only as described here.

  • The Varly snippet loads in your visitors’ browsers from https://cdn.varly.ai on every page, including the cart and checkout unless you leave the checkout out (see the FAQ). In the browser, it waits for the visitor’s consent in your cookie banner, as set in your Varly account, and then sends Varly what visitors do on your site: page views, clicks, scroll depth, session recordings (with text masking; never what visitors type in your site’s fields), survey answers, A/B test views and, with WooCommerce, add-to-cart events. Without consent it sends nothing, unless you turned on an option for visitors without consent in Varly.
  • Connecting (when an administrator clicks Connect to Varly): the browser opens https://varly.ai with your site’s address and name, whether WooCommerce is active, and the plugin version. Your server then sends a one-time code and, with WooCommerce, the address of your order received page to https://varly.ai/api/wordpress/connect and receives your site key and, if you chose to, an order API key.
  • Status (once a day in the background, and when an administrator opens Settings Varly, at most every two minutes): your server asks https://varly.ai/api/wordpress/status whether Varly receives visits for your site key, whether the snippet waits for consent, on which domain the snippet sets its cookies, and whether the order API key works. It sends along the address on your site that can keep the visitor ID for Safari (see the FAQ), and hears whether you turned that on in Varly.
  • The list of parts to hide (every five minutes in the background, while connected): your server asks https://cdn.varly.ai/p/ for the parts of your pages that running A/B tests change. The answer is empty unless you chose “hide before the page is drawn” in Varly. Nothing about your site or visitors is sent, only your site key.
  • Disconnecting (when an administrator clicks Disconnect, and when the plugin is deleted): your server asks https://varly.ai/api/wordpress/disconnect to stop the order API key. Never from a copy of your site, such as a staging site: your live shop still uses that key.
  • Orders (WooCommerce, when an order is paid; after that, for an order that was sent, when it is refunded, canceled, edited, moved to the trash or deleted, when a refund is deleted, or when a later payment fails): your server sends https://varly.ai/api/orders the order number, total, currency, number of items, the order time, where the order was made (web shop, admin, point of sale or subscription renewal), whether it was canceled or refunded, and the visitor and session ID of the visit, if the visitor accepted cookies. With privacy mode on in Varly, it sends the anonymous ID from the checkout form instead (see the FAQ). An order that is never paid is not sent this way. No names, addresses, email addresses, products or payment details.
  • Order list (WooCommerce, once a day in the background, and when an administrator clicks Send order list to Varly now): your server sends https://varly.ai/api/orders the orders of the last 90 days, the first time, and after that the orders that changed. The list holds all orders, paid or not, except checkouts that were never finished: per order the number, time, total, tax, shipping, refunded amount, currency, status (paid, unpaid, canceled or refunded) and where it was made. Varly compares this with the orders it received and shows where its revenue differs from your shop. No names, addresses, email addresses, products or payment details. A copy of your site on another address than the one you connected, such as a staging site, sends no orders and no order list.

Varly is provided by Joba Holding B.V. in the Netherlands, with data stored in the EU. Privacy policy, data processing agreement, subprocessors.

Screenshots

Installation

  1. In WordPress, go to Plugins Add New, search for “Varly”, and click Install Now, then Activate. Or upload the plugin zip under Plugins Add New Upload Plugin.
  2. Go to Settings Varly and click Connect to Varly.
  3. Log in to Varly if you aren’t already, pick your site and click Connect. With WooCommerce, an owner in Varly can also choose to send orders.
  4. You’re back in WordPress. In Varly, turn tracking on under Install. Varly waits until a visitor accepts cookies in your cookie banner (unless you set that differently in Varly), so make sure your site has a cookie banner. Then open your site in a private window and accept cookies. Settings Varly shows when the first visit arrives.

If you use a caching plugin, clear its cache once after connecting.

FAQ

Do I need a Varly account?

Yes. Create one at varly.ai and add your site. Then click Connect to Varly in Settings Varly.

Does it work without WooCommerce?

Yes. On any WordPress site, the plugin adds the snippet, so you get heatmaps, recordings, surveys and A/B tests. The order features switch on by themselves when WooCommerce is active.

Connect to Varly says my site isn’t listed

Varly only lists sites whose domains include your WordPress address, so a site can’t be connected to the wrong place. In Varly, add the domain under Settings Tracking & privacy Domains, then click Check again on the Connect page.

Varly shows no visits

Check three things. Tracking is on in Varly: open your site there and look under Install. Your site has a cookie banner: Varly waits until a visitor accepts cookies, so without a banner nobody can accept and nothing is measured (the next question names the exceptions). And you accepted cookies yourself: open your site in a private window, accept cookies in the banner, and a few minutes later click Check status again under Settings Varly. The line Data in Varly on that page tells you which of these it is.

Does Varly set cookies before a visitor accepts?

No. Varly waits for consent in your cookie banner. Until then it sets no cookies and sends nothing, unless you turned on one of the optional settings in Varly for visitors without consent (privacy mode, tests before consent, anonymous heatmaps); see Cookie consent. When Varly does nothing at all before consent on your site, the snippet is marked so that cookie banners with automatic blocking, such as Cookiebot and Complianz, don’t block it; blocking it would only cause flicker. If your Varly settings let it do something before consent (no consent needed, or an option for visitors without consent), the banner keeps blocking it as before.

Which cookie banners work?

Cookiebot, CookieScript, OneTrust, Usercentrics and TrustArc directly, and every banner that sends Google Consent Mode.

For banners that are WordPress plugins, this plugin reads the visitor’s stored choice itself and passes it on to Varly. A returning visitor is then recognized right away, without waiting for the banner’s script, and Varly’s cookies are removed when a visitor declines:

  • Complianz: the category Statistics. Nothing to switch on.
  • CookieYes: the category Analytics. Nothing to switch on.
  • Borlabs Cookie: add a service with the ID varly in Borlabs Cookie; visitors who accept that service are measured.
  • WP Consent API: any banner that works with the WP Consent API plugin, the category Statistics.

In Varly, leave Settings Tracking & privacy Consent banner on Detect automatically. If you picked Google Consent Mode there, Varly only follows Consent Mode: switch on Consent Mode in your banner as well, or change the setting to Detect automatically.

I use a caching or speed plugin

The plugin tells WP Rocket, LiteSpeed Cache, W3 Total Cache, Autoptimize, SiteGround Speed Optimizer, Perfmatters, FlyingPress, Hummingbird, WP-Optimize, Breeze, NitroPack, WP Fastest Cache, Jetpack Boost and Cloudflare Rocket Loader to leave the snippet alone: it adds attributes to the script tag that these plugins read (data-cfasync="false", data-no-optimize, data-no-defer, data-noptimize, data-no-minify, data-no-delay-js, nitro-exclude, nowprocket, data-jetpack-boost="ignore") and adds Varly to their exclusion lists through their own filters. Clear the cache once after connecting. If you use another speed plugin, exclude scripts from cdn.varly.ai from options like Delay JavaScript and Combine JavaScript.

Why isn’t there a separate anti-flicker script?

The snippet loads at the top of the page and prevents flicker itself: until a test’s change is made, it hides only the parts of the page that test changes, for a moment at most, never the whole page. A separate script that hides the whole page would slow every page down.

What happens on the cart and checkout?

From version 1.4.0 the plugin adds the snippet to the cart and the checkout too, whatever their address, so you can run A/B tests, recordings, heatmaps and surveys there. You decide what runs on these pages, and you are responsible for it.

Varly is careful there by default. What visitors type in your site’s fields, such as their name, address or email, is never recorded or sent, on any page. On the checkout, session recordings also hide all text on the page, such as a name or address shown back to the visitor. Payment fields from your payment provider sit in a frame of that provider, and Varly never records frames. Forms with card fields are not measured at all.

To leave the checkout out, go to Settings Varly and tick “Leave the checkout out”. The snippet is then not added to the checkout at all. Your cart and the order confirmation page keep it, and orders still reach Varly from your server. On the checkout, a small script of the plugin hands the visit over with the order either way; see the next question.

Is your payment form on your own checkout page, for example with card fields of your payment provider? Then PCI DSS, the card industry’s security standard, asks you to keep a list of every script on that page and check it for changes. Add the Varly snippet to that list, or leave the checkout out.

Are orders of visitors who declined cookies linked to a visit?

No. With a cookie banner the plugin can read (Complianz, CookieYes, Borlabs Cookie or one that works through the WP Consent API), an order is linked to the visit only when the visitor’s stored choice is yes, also when they change their choice on the checkout itself.

The one exception is privacy mode, a setting of your site in Varly (off by default). With privacy mode, visitors who haven’t accepted cookies take part in your A/B tests anonymously, with a random ID in the browser’s local storage and no cookie. On the checkout, the plugin puts that ID in the checkout form itself, so the order counts in the test. It sets no cookie for this, and never does it when the browser sends Do Not Track or Global Privacy Control. Varly only keeps the ID when privacy mode is on. See Cookie consent.

Orders don’t show up in Varly

An order is sent once it is paid (status Processing or Completed, or another status your shop counts as paid). Orders that are not paid yet, such as Pending payment or On hold, are not sent on their own; they only appear, with their status, in the daily order list. WordPress runs background tasks when someone visits your site, so an order can take a minute or two. Settings Varly shows the last order sent or the last error, and each order that failed has a note from Varly.

How do I keep Safari visitors in the same test version?

Safari deletes cookies and storage written by scripts after 7 days. A visitor who comes back later is a new visitor to Varly and can see the other version of a running test. From version 1.3.0 your own site can keep a copy of Varly’s visitor ID in a cookie it sets itself, _varly_keep (one year). Cookies set by a site’s own server are not deleted after 7 days.

It is off until you turn it on: in Varly, open Settings Tracking & privacy and tick “Recognize returning Safari visitors for longer than 7 days”. It sets one more cookie after consent, so add _varly_keep to your cookie list first. The copy is only made for visitors who accepted cookies, and removed when they decline. The Varly snippet asks your site for it only in Safari and only while the copy is missing, at an address of its own (/wp-json/varly/v1/keep) that is never served from a page cache. Settings Varly in WordPress shows whether it is on.

What does “hide before the page is drawn” do?

It is a choice in Varly, under Settings A/B testing, and off by default. Normally Varly loads beside your page and hides the parts a test changes once it is there. On a slow connection it can arrive after the page is drawn, and the visitor sees the original for a moment. With this choice, the plugin puts a short list and a small script in the page head: the parts that a running test changes stay invisible from the first moment, only on the pages where the test runs, until Varly has loaded. At most 1.5 seconds, also when Varly never loads. The rest of the page shows as fast as before. When the list changes, the plugin empties your page cache.

What happens when I delete the plugin?

It removes its settings, its cached status, its background tasks and the Varly fields it saved with orders, and Varly stops the order API key. Your orders stay as they are. Your data in Varly stays in your Varly account. Deactivating the plugin also removes its background tasks.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Varly” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Varly” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.4.2

  • Fixed: with a site key that Varly does not know, Settings Varly no longer shows a green Snippet line. It says the snippet is added but does nothing yet, and what to check.
  • Check again is now called Check status again, and tells you that it checked.
  • Clearer messages after Disconnect and for a key that is not valid, and clearer help with the order API key and with longer recognition in Safari (you set that in Varly under Settings Tracking & privacy).
  • The Save Changes button and the Settings link on the Plugins screen follow the language of your WordPress admin.

1.4.1

  • Settings Varly now says so when your site has no cookie banner the plugin can find: Varly only measures visitors who accept cookies, so without a banner nothing is measured.

1.4.0

  • Changed: the snippet now also runs on the cart and checkout, so you can test, record and survey there. What visitors type in your site’s fields is never recorded or sent, checkout recordings hide all text, and payment fields are never recorded.
  • New: “Leave the checkout out” under Settings Varly. With it on, the snippet is not added to the checkout; your cart and the order confirmation page keep it.
  • The add-to-cart events and order linking now also work from the cart page.

1.0.0 to 1.3.1

  • 1.3: two optional settings in Varly, both off until you turn them on: hide the parts a test changes before the page is drawn, and recognize returning Safari visitors for longer than 7 days (cookie _varly_keep).
  • 1.2: the revenue check with a daily order list, reading the visitor’s choice from Complianz, CookieYes and Borlabs Cookie, and orders of visitors in privacy mode. A copy of your shop on another address, such as a staging site, sends no orders.
  • 1.1: Connect to Varly, a settings page that shows whether visits and orders arrive, use on any WordPress site with or without WooCommerce, and add-to-cart events.
  • 1.0: first version.