
- Server-side (recommended): SamCart’s webhook sends each order to Zapier or Make, which reads the click ID SamCart saved with the order and calls your ClickFlare postback.
- Browser: an order script in each SamCart product fires a conversion to ClickFlare when the buyer reaches the order summary page.
At a glance
To set up SamCart with ClickFlare:- Add a tracking domain and conversions.
- Create the campaign and SamCart offer.
- Install Webhooks in SamCart.
- Add the webhook rules.
- Send the postback to ClickFlare.
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.
- Access to your SamCart marketplace settings, products and Apps.
- For the server-side route: a Zapier or Make account. See the Zapier and Make guides.
Setup
Set up your own tracking domain
trk.yourdomain.com before anything else. The postback and the scripts are built on it. See Tracking domains.Create the custom conversions
ct, and the two must match exactly.Create the campaign and the SamCart offer
Choose how SamCart reports the sale
Route 1: Webhook through Zapier or Make
SamCart’s webhook sends a fixed JSON body with its own field names, so it can’t post to ClickFlare directly. Zapier or Make sits in between and turns it into a ClickFlare postback.Create the catch URL
Install Webhooks in SamCart
https://, and click Connect.Add the rules
order.total is the full basket. If you also send upsells separately, report the sale with the front-end value instead, or the upsell revenue counts twice.Place a test order and find the click ID
attribution_enhanced object. Find your click_id value in it and note the field path. SamCart doesn’t document the exact layout of that object, so map it from a real sample.Send the postback to ClickFlare
CLICK_ID to the field you found, ORDER_TOTAL to order.total and ORDER_ID to order.id. For upsells use ct=upsell, the product’s price as payout and ORDER_ID-PRODUCT_ID as txid, so each upsell on the same order stays a separate conversion. Turn the Zap or scenario on./cf/cv with cf_click_id, payout, txid, ct and param1 to param20, for example {"cf_click_id": "CLICK_ID", "payout": "ORDER_TOTAL", "txid": "ORDER_ID", "ct": "sale"} with the same fields mapped. Either form works. Keep the order ID in txid: it keeps repeated deliveries from counting twice. See Postback parameters.Refunds
Send refunds as their own conversion withct=refund and a negative payout, for example payout=-47.00. A different ct adds a new row instead of replacing the sale, so the refund stays visible in its own column and net revenue drops. SamCart sends partial refunds as a separate trigger, Product partially refunded.
SamCart notes that refund events carry less data than orders. Check a real refund in your Zap: if it has no attribution data, the Zap has to find the click ID another way, for example by looking up the original order.
Route 2: Order script in SamCart
Add the ClickFlare script to every checkout
Add the conversion script to each product
click_id=OPTIONAL placeholder and put SamCart short codes in the URL:Add scripts to bump and upsell products
##total_amount## script above, and give bump and upsell products their own script with their price and a unique transaction ID:##total_amount##, the bump and upsell value is already in it. Pick one approach per funnel so revenue isn’t counted twice.Using your own thank-you page
SamCart short codes
Verify the setup
Click through the campaign
click_id= followed by a long ID.Place a test order
Check SamCart
click_id. The Events section shows whether the webhook was delivered.Check ClickFlare
txid and ct.Troubleshooting
The webhook never reaches Zapier or Make
The webhook never reaches Zapier or Make
Conversions arrive without a campaign
Conversions arrive without a campaign
click_id={cf_click_id} with braces, that the lander CTA uses the ClickFlare click URL, and that the Zap maps the click ID field from the attribution data, not a UTM field.Each sale is counted twice
Each sale is counted twice
Order scripts don't fire
Order scripts don't fire
FAQ
Does ClickFlare integrate with SamCart?
Does ClickFlare integrate with SamCart?
Can I use SamCart's Zapier app instead of the webhook?
Can I use SamCart's Zapier app instead of the webhook?
Are subscription renewals tracked?
Are subscription renewals tracked?
ct if it carries the attribution data. Test with one renewal first.Can I send the sale back to my traffic source?
Can I send the sale back to my traffic source?