
- The ClickFlare script goes in the store view’s HTML Head, so every page records the visit and keeps the click ID in the browser.
- A conversion script on the checkout success page reports the order to ClickFlare with the order number and total.
At a glance
To set up Adobe Commerce with ClickFlare:- Set up a tracking domain and campaign.
- Create the store as an offer.
- Add the script to the HTML Head.
- Allow your tracking domain in CSP.
- Add the conversion to the success page.
How the data flows
What you’ll need
- A ClickFlare account with your own tracking domain. Shared domains get flagged by ad platforms and blocked by browsers. See Tracking domains.
- Adobe Commerce Admin access to Content → Design → Configuration.
- Someone who can edit the theme’s checkout success page and your Content Security Policy.
Setup
Set up your own tracking domain
trk.yourdomain.com before anything else. Both scripts load from it, and the conversion script only finds the click ID when they use the same domain as the campaign. See Tracking domains.Create the custom conversion (optional)
sale, Include in Conversions and Include in Revenue turned on. The value in ct must match it exactly. See Custom conversions.Create the campaign
Create the store as an offer
Add the script to the HTML Head
Allow your tracking domain in CSP
trk.yourdomain.com, to the CSP allowlist. Do this before the next step: the success page is part of checkout, so a conversion script loaded from a domain that isn’t allowlisted can be blocked there too.Add the conversion script to the success page
click_id=OPTIONAL placeholder. See Conversion tracking pixel.Hand the script to your developer with this brief: on the checkout success page only, output the script with the order’s values in the URL:payout: the order total, as a plain number with no currency sign.txid: the order number the customer sees. It keeps a reload of the success page from counting twice.ct=sale: leave it out if you skipped the custom conversion.
Why the transaction ID matters
ClickFlare keeps one conversion per click ID unless the transaction ID differs. With the order number astxid:
- A buyer who reloads the success page sends the same order number, and ClickFlare doesn’t count it twice.
- A second order from the same click has a new number and counts as its own conversion.
txid, the second order replaces the first.
Server-side option
Adobe Commerce webhooks call an external URL when something happens in the store, and you choose which fields to send and what to name them. On cloud and on-premises installs a developer defines them inwebhooks.xml; on Adobe Commerce as a Cloud Service they are under System → Webhooks in the Admin. Because field names are yours to set, a webhook could post JSON straight to ClickFlare with the keys cf_click_id, payout and ct, with no Zapier or Make in between.
Two things make this a developer project:
- The click ID isn’t on the order. Adobe Commerce has no Admin setting that saves URL parameters with orders. Your developer has to save the click ID during the visit and copy it onto the quote or order so the webhook can send it.
- Webhooks run in real time and can stop the store operation that triggered them if they fail. Have your developer make sure a failed call to ClickFlare never blocks an order.
Verify the setup
Click through the campaign
click_id= followed by a long ID.Check the scripts load
/cf/scripts/ on your tracking domain. On the checkout, check the console for CSP errors that name your tracking domain.Place a test order
/cf/cv with a real total and order number.Check ClickFlare
txid is the order number.Troubleshooting
The script runs on the store but not on checkout
The script runs on the store but not on checkout
The script only runs on one store
The script only runs on one store
Conversions arrive without a campaign
Conversions arrive without a campaign
click_id={cf_click_id} with braces.Conversions have no revenue
Conversions have no revenue
payout empty or with a currency sign. It must be a plain number. See Troubleshooting S2S postbacks for the general checks.FAQ
Does ClickFlare integrate with Adobe Commerce?
Does ClickFlare integrate with Adobe Commerce?
Can I add the conversion script in the Admin without a developer?
Can I add the conversion script in the Admin without a developer?
Does this work with Google Ads?
Does this work with Google Ads?
Are refunds reported?
Are refunds reported?
Can I send the order back to my traffic source?
Can I send the order back to my traffic source?