Skip to main content
Zapier and ClickFlare Integration Zapier connects thousands of apps through automated workflows called Zaps. Each Zap starts with a trigger and runs one or more actions. Its Webhooks by Zapier app lets a Zap receive data from any tool and send data to any URL, and that’s how it talks to ClickFlare. The connection works in both directions:
  • ClickFlare → Zapier. ClickFlare’s Custom Webhook sends an event (a conversion, a purchase, a click) to a Zapier Catch Hook. The Zap passes it on to Google Sheets, your CRM, Slack or any other app.
  • Zapier → ClickFlare. A Webhooks by Zapier POST step sends a conversion to ClickFlare’s postback endpoint as JSON. Any app Zapier connects to (a form tool, a CRM, a payment platform, a partner program) can then report conversions to ClickFlare, as long as it has the click ID.

At a glance

To set up Zapier with ClickFlare:
  1. Create a Catch Hook in Zapier.
  2. Map the event in ClickFlare.
  3. Set up the conversion trigger.
  4. Add the POST to ClickFlare.

How the data flows


What you’ll need

  • A ClickFlare account with your own tracking domain for postbacks. See Tracking domains.
  • A Zapier account. Zapier’s help pages list Webhooks by Zapier as available on its Free, Professional, Team and Enterprise plans. Check your own account for what your plan includes, and for task limits.
  • For Zapier → ClickFlare: the click ID stored somewhere the trigger app can return it, for example a hidden form field or a CRM field.
  • For API calls: an API key from Settings → API Keys.

Send ClickFlare events to Zapier

1

Create a Catch Hook in Zapier

In the Zap editor, click the trigger step, search for Webhooks by Zapier and pick the Catch Hook event. Click Continue. Leave Pick Off A Child Key empty to use the whole body. In the Test tab, click Copy to copy the webhook URL.Use Catch Raw Hook instead only if you need the request headers or the unparsed body. Its limit is 2MB, against 10MB for Catch Hook.
2

Add a Webhooks integration in ClickFlare

Go to Integrations, click Conversion API → New integration and choose Webhooks. Pick the Workspace and give it a Name, for example “Purchases to Zapier”.
3

Map the event

Under Event Type Mapping:
  1. Pick the ClickFlare Event, for example the conversion or a custom conversion such as Purchase.
  2. Set the Request Method to POST.
  3. Paste the Zapier URL as the Webhook URL.
  4. Add the values you need with ClickFlare macros, in the URL or the body. For example:
ClickFlare replaces each macro with the real value when the event fires. With a POST and a JSON body, it sets Content-Type: application/json for you.A ClickFlare Webhooks integration for Zapier: the Sale event, POST, the Zapier webhook URL and a JSON body with click_id, payout and campaign macros
4

Filter, save and test

To fire only on some events, click Add Conditions: for example payout greater than 0, one campaign or offer, or one country. Click Next, then Save.Trigger a real event, go back to the Zap’s Test tab and click Test trigger. Zapier splits the request into fields you can map in the next steps. Then add your actions and turn the Zap on.
You can map up to 10 events per Webhooks integration, and the same event more than once. A Purchase can go to Zapier and to your CRM at the same time, each with its own URL and headers. For per-campaign Zaps, set the webhook on the campaign instead. See Custom Webhook.

Report conversions from Zapier to ClickFlare

ClickFlare accepts conversions as a JSON POST on the same endpoint as its postback:
The body keys are cf_click_id (required), payout, ct, txid and param1 to param20. ct must match a custom conversion created under Settings → Custom Conversions. See Custom conversions.
1

Make sure the click ID reaches the other app

The app that triggers the Zap must know the ClickFlare click ID. Pass {cf_click_id} in the offer or lander URL and store it, for example in a hidden form field, a CRM field or a partner platform’s sub ID. Without it, ClickFlare has nothing to match.
2

Set up the trigger

Pick the trigger that means “conversion” in that app: a new form entry, a deal moved to Won, a new payment. For a platform that sends its own webhook, use a Catch Hook trigger and paste its URL into that platform, as in the Hotmart and PartnerStack guides.
3

Add a Webhooks by Zapier POST action

Click +, search for Webhooks by Zapier and choose the POST event. Fill in:Leave nothing else in Data. If Data is empty, Zapier sends every field from the previous step.
4

Test the step

Run the step test with a real click ID from a recent ClickFlare click. The conversion should appear on that campaign and in Logs → Event Logs.
Need the conversion to replace or stay apart from an earlier one on the same click? Send txid in Data: a different txid adds a conversion, the same txid replaces the earlier one. A Webhooks by Zapier GET to /cf/cv with click_id, payout, ct and txid in the query works too. See Postback parameters.

Read ClickFlare data in a Zap

A Zap can also call the ClickFlare REST API. Authentication is one header, api-key, with a key from Settings → API Keys. See API overview.
  • For a simple read, use a Webhooks by Zapier GET step to https://public-api.clickflare.io/api/campaigns/list with the api-key header in Headers.
  • For the report endpoint, POST /api/report, use Custom Request. Its body has nested arrays (groupBy, metrics), and Custom Request sends raw JSON exactly as you type it. Check it with a JSON validator first: Zapier doesn’t format it for you.
The API key has the same rights as your account. Anyone who can edit the Zap can see it.

Limits and behavior worth knowing

  • Turned-off Zaps. When a Zap is off or deleted, Zapier answers its Catch Hook URL with a 404, after a delay of up to several hours. Turn it back on and it returns 200 again.
  • Ownership. The hook URL contains the owner’s Zapier ID. It only changes if the Zap moves to another user, and then you must paste the new URL into ClickFlare.
  • Arrays. If a request body is a JSON array of objects, Zapier runs the Zap once per object.
  • Payload size. 10MB for Catch Hook, 2MB for Catch Raw Hook, 5MB for webhook actions. Rate limits apply to Webhooks by Zapier.
  • Several Zaps from one event. Zapier can combine hook URLs owned by the same user, but it’s simpler to map the event several times in ClickFlare.

Verify the setup

1

ClickFlare → Zapier

Fire a test event in ClickFlare, then open the Zap’s history. The run should show the click ID and payout as real values, not as {cf_click_id}.
2

Zapier → ClickFlare

Run the POST step with a recent click ID. Check that the conversion appears in ClickFlare under the right custom conversion and payout.

Troubleshooting

  • The Zap is off. Turned-off Zaps return 404 to ClickFlare.
  • An event filter in ClickFlare blocks the event. Check the conditions.
  • The Zap was transferred to another user and the URL changed.
The macro is misspelled, or the event you mapped doesn’t have that value. Check the macro name in the ClickFlare event mapping.
  • cf_click_id is empty or isn’t a ClickFlare click ID. Check the field you mapped.
  • ct doesn’t match a custom conversion exactly.
  • The URL isn’t your tracking domain with /cf/cv.
  • Payload Type isn’t JSON.
See Troubleshooting S2S postbacks.
The amount field from the trigger is empty or has a currency symbol. Send the amount without a currency symbol, for example 25.00. A Formatter by Zapier step can clean it up.

FAQ

Yes, both ways. ClickFlare’s Custom Webhook sends events to a Zapier Catch Hook, and a Webhooks by Zapier POST step sends conversions to ClickFlare’s /cf/cv as JSON.
Any event you can map in the Webhooks integration: visits, clicks, conversions and custom conversions. Up to 10 mappings per integration.
No. ClickFlare matches every conversion to a click by its click ID. Make sure the trigger app stores it.
POST with JSON for most cases. Both carry the same values, txid included. Use the GET postback if you prefer a URL.

Custom Webhook

Send any event out

Make

The same with Make

API overview

Keys and endpoints