xpay✦ Commerce
Directory
WooCommerce plugins
UTM Attribution for WooCommerce
UTM Attribution for WooCommerce
See which campaigns, search engines and social sites bring visitors and WooCommerce sales — tracked in your own database, no third-party service.
Will this break my store?
What the WordPress.org registry says about keeping UTM Attribution for WooCommerce running.
Tested to 7.1.4
Tested against the WordPress branch in use today.2 months ago
At least 9.1 releases a year since launch. WordPress.org only lists versions still available for download, so the real number may be higher.7.4
Your host must be running at least this version.6.4
woocommerce
These must be installed and active first.1
A single maintainer. Worth knowing if the plugin is load-bearing for your store.Maintenance & trust
Scored on how UTM Attribution for WooCommerce is looked after — not on how many stores run it.
Maintenance
35 / 35WordPress compatibility
20 / 20Support responsiveness
Not enough dataMerchant satisfaction
Not enough dataListing transparency
6 / 10Ratings
No one has rated this plugin on WordPress.org yet. That is a statement about the ratings page, not about the plugin — plenty of well-kept plugins never collect them.
UTM Attribution for WooCommerce records how each visitor reached your store and credits their WooCommerce orders to that visit, so you can see visits, conversions and revenue per campaign right in your WordPress admin. Everything is stored in two tables in your own database. No external analytics account, tracking script or CDN is involved.
How visits are recorded
- UTM-tagged links —
utm_source,utm_medium,utm_campaign,utm_termandutm_contentare saved whenever a visitor lands on a tagged URL. - Untagged traffic — Visitors without UTM tags are classified from the referrer: organic (Google, Bing, Yahoo, DuckDuckGo, Baidu, Yandex), social (Facebook, X/Twitter, Instagram, LinkedIn, Pinterest, Reddit, Telegram), referral (any other site), or direct.
- Noise filtered out — Bots, crawlers, uptime monitors, HTTP tools, shop staff, sitemaps,
/.well-known/files, 404 pages, feeds, AJAX and non-GET requests don’t create visits. Repeat requests from the same browser and source without cookies within 30 minutes count once, and reloading the same tagged link within 30 minutes doesn’t count twice. - Click deduplication — An optional
utm_site_idparameter lets you give each link click a unique ID so it is recorded only once.
How orders are attributed
- The visit is remembered in a signed, HttpOnly cookie (30 days by default). A new UTM click replaces it, so the most recent campaign gets the credit (last-touch).
- At checkout — classic or block checkout — the visit is saved on the order. When the order later reaches processing or completed, the conversion is recorded, even if that happens through a payment webhook, an admin action or cron.
- Refunds and cancellations are kept in sync: revenue is net of refunds, and cancelled, refunded or failed orders drop out of the reports.
- Optional user stitching can credit logged-in customers’ orders to their most recent visit within the cookie lifetime.
Reports
- Dashboard — Total visits, conversions, conversion rate and revenue, a visits-and-conversions chart, and a top campaigns table.
- Date ranges — Today, Last 7 / 30 / 90 days, This Year, or a custom range, all in your site’s timezone. Visits are counted by visit date, and conversions and revenue by order date.
- Visits and Conversions lists — Paginated tables of every recorded visit and attributed order, with links to the order.
- CSV export — Visits, conversions and top campaigns, with spreadsheet formula injection blocked.
- Revenue totals include orders in the store’s currency only.
Privacy
- IP addresses are never stored. A salted SHA-256 hash is stored instead, or nothing at all if you turn hashing off.
- Landing URLs keep only the page path and UTM parameters. Other query values, such as order keys or emails, are dropped.
- Visit data is included in the WordPress Export Personal Data and Erase Personal Data tools.
- The IP hash, user agent, referrer and user ID are removed from visits older than 365 days. Campaign totals are kept. The retention period is adjustable.
Settings
UTM Attribution → Settings lets you turn each traffic filter on or off, add your own user agents, URL paths and internal domains to ignore, and set the attribution window, user stitching, IP hashing and personal data retention.
Developer friendly
Filters for bot and path patterns, excluded users, internal domains, the cookie lifetime, which order statuses count as conversions, the user capability, IP hashing, user stitching, capture skipping and data retention, plus actions when the plugin loads and when a conversion is recorded. Compatible with WooCommerce High-Performance Order Storage (HPOS).
Does this plugin require WooCommerce?
Yes. Orders are attributed through WooCommerce, and the report screens are hidden while WooCommerce is inactive.
How does the plugin attribute an order to a visit?
The visit ID is stored in a signed, HttpOnly cookie when the visitor lands. At checkout it is also saved on the order. When the order reaches “processing” or “completed”, the plugin links it to that visit, even when the status change comes from a payment gateway webhook or an admin.
Which campaign gets credit if a customer clicks several links?
The most recent one. Each new UTM-tagged click replaces the visit stored in the cookie.
Can I change how long the attribution cookie lasts?
Yes. Use the utm_attribution_cookie_lifetime_days filter:
add_filter( 'utm_attribution_cookie_lifetime_days', function() { return 60; } );
Are IP addresses stored?
No. A SHA-256 hash of the IP, salted with your site’s auth salt, is stored instead. If you don’t need it, turn hashing off and no IP data is stored at all:
add_filter( 'utm_attribution_enable_ip_hashing', '__return_false' );
How long is visitor data kept?
Visits are kept for reporting. Once a visit is 365 days old, its IP hash, user agent, referrer and user ID are removed. Change the period, or return 0 to keep that data:
add_filter( 'utm_attribution_pii_retention_days', function() { return 90; } );
Can I change which order statuses trigger a conversion?
Yes, use the utm_attribution_conversion_order_statuses filter:
add_filter( 'utm_attribution_conversion_order_statuses', function() { return array( 'completed' ); } );
Plugin details
Tags on WordPress.org
