What ClickMagick Adds to a WooCommerce Store
WooCommerce and Google Analytics tell you what sold. ClickMagick tells you which ad, keyword or email sold it, follows buyers across devices, filters bot clicks, and can send purchases back to Meta, Google, TikTok and Microsoft.
For a WordPress store running paid ads, that's the difference between "ads seem to work" and knowing which campaigns pay for themselves.
Setup Overview

- Add click tracking code site-widePaste ClickMagick's code into your theme header or a header-scripts plugin.
- Add engagement code to checkoutThis records checkout visits and collects the buyer's email for their visitor profile.
- Add sales tracking codeClickMagick's guide uses the free WooCommerce Conversion Tracking plugin to place it on the order-received page.
- Add a WooCommerce webhookIn WooCommerce settings, create a webhook with the topic Order updated, pointing to your ClickMagick URL.
- Remove duplicate sales code if you rely on the webhookFollow ClickMagick's guidance so sales aren't counted twice.
- Place a test orderConfirm it appears in ClickMagick with the right source and value.
Why the Webhook Matters
Page-based sales tracking depends on the thank-you page loading in the buyer's browser. ClickMagick points out that WooCommerce doesn't always load that page reliably, for example when a payment gateway redirects oddly or the buyer closes the tab.
A webhook sends the order from your store's server instead, so sales are recorded even when the page doesn't load.
| Thank-you page code | Order webhook | |
|---|---|---|
| Depends on the browser | Yes | No |
| Affected by blockers | Can be | No |
| Captures status changes | No | Yes, on order updates |
| Setup effort | Plugin and code | A few fields in WooCommerce settings |
Useful Order Details
ClickMagick's sales code supports tokens for details like order number, subtotal and customer ID. Passing the subtotal rather than the total, for example, keeps shipping and tax out of your ROAS calculation.
WooCommerce or Shopify?

Shopify users get a dedicated ClickMagick app that installs tracking automatically. WooCommerce takes a few more steps, but the result is the same: sales credited to the right ads. See ClickMagick for Shopify if you're on both.
Common Mistakes
- Caching plugins serving pages without the tracking code. Exclude it from minification if needed.
- Counting tax and shipping as revenue.
- No UTMs on ads, so sales appear without a clear source.
- Not testing after theme or checkout plugin changes.
Find out which ads really sell from your WooCommerce store.
Try ClickMagick FreeFrequently Asked Questions
Does ClickMagick work with WooCommerce?
Yes. You add ClickMagick's tracking code to your WordPress site and send orders to ClickMagick, either with sales tracking code or, more reliably, with a WooCommerce webhook.
Why use a webhook instead of thank-you page code?
ClickMagick notes that WooCommerce doesn't always load the thank-you page reliably, so a webhook set to the Order updated topic makes sure sales aren't missed.
Is there a ClickMagick WordPress plugin?
ClickMagick's guide uses a free WordPress plugin called WooCommerce Conversion Tracking to place sales code, plus a WooCommerce webhook as the recommended backup.
Can I track order numbers and subtotals?
Yes. ClickMagick supports tokens in its sales tracking code for values such as order number, subtotal and customer ID.
Should I use ClickMagick or a WooCommerce plugin for attribution?
Simple UTM plugins show where orders came from. ClickMagick adds cross-device tracking, bot filtering, multiple attribution models and sends conversions to ad platforms.