Skip to main content
ClickFunnels and ClickFlare Integration ClickFunnels is a funnel and sales page builder. Your opt-in pages, sales pages, order forms, one-click upsells and thank-you pages all run on ClickFunnels. ClickFlare tracks the ad click. This guide connects the two so every funnel sale is attributed to the campaign, traffic source and ad that brought the buyer. Data moves one way, from the buyer’s browser on your funnel to ClickFlare:
  • The ClickFlare script goes in the funnel’s Head Code, so every step records the visit and keeps the click ID in the browser.
  • A conversion script in the thank-you page’s code reports the sale to ClickFlare when the page loads.
Server-side reporting is usually more reliable than a page script, because ad blockers and cookie limits can’t stop it. ClickFunnels has webhooks, but their order data has no documented field that carries your ClickFlare click ID, so this guide uses the thank-you page. See About ClickFunnels webhooks.

At a glance

To set up ClickFunnels with ClickFlare:
  1. Set up a tracking domain and conversions.
  2. Create the campaign and funnel offer.
  3. Add the script to the funnel.
  4. Get the conversion script.
  5. Add it to the thank-you page.
Each step is explained in Setup.

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.
  • A ClickFunnels workspace with access to funnel settings and the page editor.
  • Your funnel on a domain you connected to ClickFunnels, so all steps share one domain.

Setup

1

Set up your own tracking domain

Add a custom tracking domain such as trk.yourdomain.com before anything else. The tracking script and the conversion script both load from it, and the conversion script only finds the click ID when they use the same domain as the campaign. See Tracking domains.
2

Create the custom conversions (optional)

Go to Settings → Custom Conversions and click Add. Create Sale (sale) with Include in Conversions and Include in Revenue, and Upsell (upsell) with Include in Revenue if you track upsells. The parameter is the value you put in ct, and the two must match exactly. See Custom conversions.
3

Create the campaign

Go to Campaigns → New Campaign, pick your traffic source and tracking domain, and choose:
  • Redirect if the traffic source allows redirects. You can rotate landers and funnels.
  • Direct for Google Ads and other sources that don’t. The ad links straight to the funnel, and the script records the visit.
Create one campaign per traffic source. See Creating a campaign.
4

Create the funnel as an offer

In the campaign path, create the offer inline with the URL of the first funnel step and the ClickFlare tokens:
For a direct campaign, turn on the Direct Tracking switch in the offer. Save the campaign and copy the tracking script and campaign URL from its Tracking tab.
Keep the braces: {cf_click_id}. Without them the funnel receives the literal text cf_click_id.
5

Add the ClickFlare script to the funnel

In ClickFunnels, open the funnel’s settings and paste the script in Head Code. It then loads on every page in that funnel:
To cover every page on your ClickFunnels site instead, including other funnels, store pages and blogs, paste it in Site & Blog → Site Settings → Header Code. Use one place, not both. See Direct tracking.
6

Get the conversion script

In ClickFlare, go to Settings → Tracking URLs and copy the JavaScript conversion script. It reads the click ID from the visitor’s browser. Remove the click_id=OPTIONAL placeholder and set the payout and transaction ID:
Use the price of the funnel’s main product as the payout. See Conversion tracking pixel.
7

Add it to the thank-you page

Open the thank-you page in the page editor. Go to Settings → Show Code (in a funnel page, Settings is under the Customize gear icon) and paste the script in the Footer Code tab. Footer Code runs after the page has loaded, which suits a conversion. Save.Code added in the page editor applies to that page only, which is what you want here: the conversion should fire on the thank-you page and nowhere else.

Payout and transaction ID

ClickFunnels’ help center doesn’t document variables that put the order ID or order total into page code. That shapes the conversion script:
  • Payout is fixed per page. Type the value of what the buyer bought on the way to that page. If one funnel sells several price points, give each its own thank-you page, or set the offer’s payout in ClickFlare instead.
  • Use a fixed txid per step. ClickFlare keeps one conversion per click ID and transaction ID. A fixed value like main means a buyer who reloads the thank-you page doesn’t count twice, while a different value on another step (upsell1) counts as its own conversion on the same click.
If you have ClickFunnels order data available on the page through your own code, use the real order ID as txid and the real total as payout instead.

Upsells and order bumps

ClickFunnels’ one-click upsell (OTO) pages come after the order form. A page script only knows that the page loaded, not what the buyer accepted, so:
  • Order bumps are part of the main order. The fixed payout can’t tell whether the bump was taken. Report the main product’s price, or add the bump’s value if most buyers take it.
  • Upsells can be tracked when the page after an accepted upsell is different from the page after a declined one. Add the conversion script to the accepted page with its own txid and ct=upsell:
If accepted and declined buyers land on the same page, a page script can’t separate them. Test your funnel’s routing before relying on upsell numbers.

About ClickFunnels webhooks

ClickFunnels can send webhooks on the Scale, Optimize and Dominate plans, from Workspace Settings → Webhooks → Add New Endpoint. Events include order.completed, one-time-order.completed and one_time_order.refunded. Webhooks are sent as a fixed JSON body you can’t rewrite, so they would need Zapier, Make or a small script between ClickFunnels and ClickFlare. The blocker is the click ID. ClickFunnels doesn’t document URL parameters in the order or contact payload. To check your own account:
  1. Create a webhook endpoint pointing to a test URL from a service like webhook.site.
  2. Click through your ClickFlare campaign and place a test order.
  3. Look for your click_id value in the delivered JSON. You can also see deliveries in Workspace Settings → Webhooks, under Deliveries.
If the click ID is there, you can route the webhook through Zapier or Make and send the postback server-side, including refunds with ct=refund and a negative payout. If it isn’t, stay with the thank-you page script.

Verify the setup

1

Click through the campaign

Open the ClickFlare campaign URL in a private window. The funnel URL should show click_id= followed by a long ID.
2

Check the scripts load

In your browser’s network tab, look for the request to /cf/scripts/ on your tracking domain on the first funnel step.
3

Place a test order

Use ClickFunnels’ test mode for the checkout. On the thank-you page, look for the request to /cf/cv.
4

Check ClickFlare

The sale should appear on the campaign with its payout. In Logs → Event Logs, check the txid and ct.

Troubleshooting

ClickFunnels won’t save Header or Footer Code that contains template syntax it can’t render, such as an unclosed {{ or {%. The ClickFlare scripts don’t contain either. If you added your own code, wrap that part in {% raw %} and {% endraw %}, or remove it.
  • Check that the conversion script is on the thank-you page itself, not in the funnel Head Code. Funnel-wide code would fire on every step.
  • Check that the visitor came through the ClickFlare campaign URL.
  • Turn off ad blockers while testing.
The conversion script found no click ID. Check that the tracking script loads on the first funnel step, that both scripts use the same tracking domain as the campaign, and that every funnel step is on the same domain.
The script has no txid. Add a fixed one such as txid=main.

FAQ

Yes, through direct tracking. The ClickFlare script in the funnel’s Head Code records the visit, and a conversion script on the thank-you page reports the sale.
Yes. Use a direct campaign. The ad links straight to the funnel and the script records the visit without a redirect.
Yes. Once ClickFlare records the sale, it can pass it to the traffic source through that source’s postback or conversion API integration.

Direct tracking

How the on-page script works

Conversion pixel

Get the conversion script

Funnelish

Another funnel builder