OpL Insights

Docs Platform guides

WooCommerce

Install the OpL Insights plugin on WooCommerce and connect your store.

The OpL Insights plugin adds tracking to your WooCommerce store, sends products, carts, checkout steps and orders, and creates the store's site in OpL Insights when you click Connect. It adds an Insights page under WooCommerce and an Insights card to the WordPress dashboard.

Before you start

  • WordPress 6.0 or later, WooCommerce 7.0 or later (tested with 9.4), PHP 7.4 or later with cURL.
  • The store reachable over https from the internet.
  • An OpL Insights account. You create the account key in it.

Install

Download version 1.0.0   Supported versions

  1. In WordPress admin, go to Plugins > Add New Plugin > Upload Plugin, choose opl-insights.zip and click Install Now.
  2. Click Activate.

Connect the store

  1. In OpL Insights, go to Account > API keys and click Create key. Copy the key: it starts with oplk_.
  2. In WordPress, go to WooCommerce > OpL Insights, paste the key under Account key and click Connect.

List every address customers use under Store addresses, for example both www. and the bare domain.

Password-protected staging stores: enter the username and password under Site password before you connect. Behind Cloudflare: add a WAF custom rule, URI Query String contains opl_insights/verify, action Skip; see Cloudflare for the full steps.

What is tracked

  • Product, category and search pages, with the product's SKU, price (tax included) and category.
  • The cart, each time it changes, including AJAX add-to-cart and the block cart.
  • Checkout steps: checkout started, shipping chosen and payment chosen on the classic checkout. The block checkout reports checkout started and the order.
  • Orders, once each, on the order-received page.
  • Signed-in customers, as set under Customer identification.

Insights in WordPress

WooCommerce > Insights shows the key figures, the checkout funnel, products, search, visitors and site health, and opens recordings and the full OpL Insights already signed in. Users listed under Ask OpL Insights can ask questions there. The dashboard card shows the last 7 days.

Page caching

The tracking script is the same for every visitor, so page caches can keep it. Signed-in customers are identified only on pages that are not cached for them, which most cache plugins already do for logged-in users.