
- The ClickFlare script loads on your storefront through BigCommerce’s Script Manager and keeps the visitor’s click ID in the browser.
- A conversion script in BigCommerce’s Affiliate Conversion Tracking box runs on the order confirmation page and reports the order to ClickFlare with BigCommerce’s order ID and order amount.
At a glance
To set up BigCommerce with ClickFlare:- Create the campaign.
- Create the store as an offer.
- Add the script in Script Manager.
- Edit the conversion script.
- Add it to Affiliate Conversion Tracking.
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.
- Admin access to the BigCommerce control panel, including Storefront and Advanced Settings.
- A Stencil storefront (or Catalyst 1.1 or later) with Optimized One-Page Checkout turned on. BigCommerce only renders scripts on the checkout and order confirmation pages with that checkout type. It is the default for new Stencil stores; older stores have to switch manually. Legacy Blueprint themes don’t render Script Manager scripts at all.
Setup
Set up your own tracking domain
trk.yourdomain.com before anything else. The tracking script and the conversion script are both loaded from it, and the conversion script only finds the click ID when both use the same domain as the campaign. See Tracking domains.Create the custom conversion (optional)
sale. Turn on Include in Conversions and Include in Revenue. You’ll add ct=sale to the conversion script later; the two must match exactly. See Custom conversions.Skip this step if the default conversion column is enough.Create the campaign
- Redirect if your traffic source allows redirects. It lets you rotate landers and stores.
- Direct for Google Ads and other sources that don’t allow redirects. The ad links straight to the store, and the ClickFlare script on the store records the visit.
Create the store as an offer
Add the ClickFlare script in Script Manager
Get the conversion script from ClickFlare
click_id=OPTIONAL placeholder:&ct=sale if you skipped the custom conversion.Add it to Affiliate Conversion Tracking
- Advanced Settings → Data Solutions: choose Affiliate Conversion Tracking, click Connect, and paste the script in Conversion Tracking Code, or
- Advanced Settings → Web Analytics → Affiliate Conversion Tracking.
%%ORDER_AMOUNT%% and %%ORDER_ID%% with the real values on every order.Add an organic campaign (optional)
cpid of the Script Manager script. Without cpid the script only tracks visitors who arrive from a ClickFlare link.Order variables
BigCommerce fills these variables into the Affiliate Conversion Tracking code:%%ORDER_ID%% as the transaction ID. ClickFlare keeps one conversion per click ID unless the transaction ID differs, so a buyer who reloads the confirmation page sends the same order ID again and isn’t counted twice, while a second order from the same click has a new ID and counts on its own.
The variables carry no currency. Set the offer’s payout currency in ClickFlare to your store currency.
Why not a webhook
BigCommerce has order webhooks, includingstore/order/created, store/order/statusUpdated and store/order/refund/created. Their payloads carry the order ID and, for status changes, the old and new status ID. They don’t carry the order total, and BigCommerce doesn’t store the ClickFlare click ID on the order.
To report orders server-side, a developer would need to save the click ID on the order during checkout, catch the webhook, look up the order through the BigCommerce API and then send the postback. That isn’t covered here. The confirmation page script needs no code beyond the steps above.
What the browser route means in practice:
- An ad blocker or a browser that blocks the script can stop a conversion from being reported.
- The buyer has to reach the order confirmation page.
- Refunds and cancellations are not reported. Adjust them in ClickFlare if you need net revenue.
Verify the setup
Click through the campaign
click_id= followed by a long ID, not the text {cf_click_id}.Check the scripts load
/cf/scripts/ on your tracking domain.Place a test order
/cf/cv with a real amount and order number in place of the variables.Check the conversion in ClickFlare
txid.Troubleshooting
No conversions arrive
No conversions arrive
- Check that Optimized One-Page Checkout is turned on. Without it, Affiliate Conversion Tracking scripts don’t render on the confirmation page.
- Check that the conversion script uses your own tracking domain, the same one as the campaign.
- Check that the visitor came through the ClickFlare campaign URL. A direct visit to the store has no click ID unless you set up an organic campaign.
- Turn off ad blockers while testing.
The tracking script doesn't load
The tracking script doesn't load
- The theme must contain
{{footer.scripts}}(or{{head.scripts}}for a head script). Marketplace Stencil themes do; a custom theme may not. - Blueprint themes don’t render Script Manager scripts.
- On Catalyst, scripts load deferred and may not run on client-side page changes. Check the first page the buyer lands on.
The conversion has no revenue or shows %%ORDER_AMOUNT%%
The conversion has no revenue or shows %%ORDER_AMOUNT%%
Conversions arrive without a campaign
Conversions arrive without a campaign
click_id={cf_click_id} with braces. See Troubleshooting S2S postbacks for the general checks.FAQ
Does ClickFlare integrate with BigCommerce?
Does ClickFlare integrate with BigCommerce?
Does this work with Google Ads?
Does this work with Google Ads?
Can I report each product separately?
Can I report each product separately?
/api/storefront/order/ followed by the order ID, and some partners call it from the same Affiliate Conversion Tracking box to read products. Doing that for ClickFlare is custom code; test it carefully before relying on it.Can I send the order back to my traffic source?
Can I send the order back to my traffic source?
Can I use Zapier or Make instead?
Can I use Zapier or Make instead?