This plugin connects your WordPress site to Opinly. It tracks visits and conversions and records the traffic source behind each conversion, so you can see which sources bring in revenue.
A conversion is one of two things:
- A WooCommerce order. Each completed order is sent to Opinly with its total and currency.
- A form submission. This works with or without WooCommerce. In your Opinly dashboard you can mark a form, such as a contact or signup form, as a conversion. This is handy for sites that collect leads rather than sell online.
You don't need WooCommerce. Without a store you still get visit, click, form and traffic-source tracking. Add a store later and order revenue starts reporting on its own.
Setup
If you connect your site from the Opinly dashboard, Opinly installs and sets up the plugin for you. There is nothing to paste and no theme to edit.
If you install the plugin yourself, go to Settings > Opinly and paste your Connect Key. You will find the key under Analytics > Setup in your Opinly dashboard.
How it works
- The tracker ships inside the plugin and loads like any other WordPress script. Nothing is fetched from a remote server. The only data that leaves your site is the anonymous analytics sent to the Opinly API.
- On the WooCommerce order-received page, the tracker records a purchase with the order total and the visitor's anonymous id.
- When an order is completed, the plugin also sends a signed webhook to Opinly from the server as a backup. Opinly matches the two by order id, so an order is never counted twice.
Privacy and consent
- Each visitor gets a random, anonymous id stored in their browser. If a consent plugin that supports the WordPress Consent API (or a cookie banner) is active, the tracker follows its decision for the "statistics" category.
- If a visitor submits a form that contains an email address, that email is sent to Opinly to identify them and credit their conversion to the right source. No other field values are sent. The plugin records which fields a form has and that it was submitted, not what was typed.
The simplest way is to connect your site from the Opinly dashboard (Analytics > Setup). Opinly installs and configures the plugin for you.
To install it by hand:
- Install and activate the plugin.
- In the Opinly dashboard, open Analytics > Setup and copy your Connect Key. It starts with "conn-".
- In WordPress, go to Settings > Opinly, paste the key, and click Connect.
- Tracking is now live. On WooCommerce stores, completed orders report to Opinly.