Integrations — ClickFunnels

Affiliate tracking for your ClickFunnels funnel. One snippet, ten minutes.

Paste one script tag into Funnel Settings, keep the ?via= links your affiliates already share, and Qanary attributes every step of the funnel — order bumps and upsells included.

funnel settings → tracking code → header tracking code. that's the whole install.

Beyond ClickFunnels's built-in tools

A funnel has a lot of steps. Attribution should survive all of them.

However you're tracking referrals on ClickFunnels today — a spreadsheet, a generic pixel, or nothing yet — attribution needs to survive ad blockers, the commission math needs to survive an audit, and the payout needs to go out on a rail you already use. Here's what one script tag adds:

Tracking it yourself

Basic click tracking at best — no coupon-code fallback for ad blockers or podcasts, no fraud check before a commission is owed, and payouts mean a manual spreadsheet.

Qanary

One script tag in Funnel Settings → Tracking Code → Header Tracking Code. Coupon-code fallback, fraud checks before commission, and payouts through Wise or PayPal — the same system whether you're on ClickFunnels or anywhere else.

How it works

Paste, stamp, verify. Three steps.

1. Paste the tracking snippet — Funnel Settings → Tracking Code → Header Tracking Code. It sets the first-party attribution cookie when a visitor lands with ?via=AFFILIATE_CODE and records the touchpoint.

2. Carry the referral into checkout — if you run Stripe Checkout via a server action or the Stripe plugin, read Qanary.checkoutStamp() in the page workflow and send stamp.ref into client_reference_id (Stripe) or customData.qanary_ref (Paddle).

3. Verify — open your site with a test ?via=, run a test-mode checkout, and confirm the conversion lands attributed — or ask your coding agent to run the MCP diagnose_attribution tool.

tracking code · clickfunnels
<script src="https://app.qanary.cloud/qanary.js"
  data-qanary="YOUR_PROGRAM_SLUG" async></script>

Paste this exact tag into Funnel Settings → Tracking Code → Header Tracking Code, publish, and it's live. Swap YOUR_PROGRAM_SLUG for the program slug from your Qanary dashboard.

What the snippet does

One tag. Three jobs.

Sets the attribution cookie

Reads ?via=AFFILIATE_CODE off the URL the moment a visitor lands and records the touchpoint — no configuration beyond the program slug.

Stays attributed through the funnel

One cookie set on the landing step carries through opt-in, order bumps, and upsells — the whole funnel counts as one attributed visit.

Verifiable end to end

Ask your coding agent to run diagnose_attribution and it walks visit → identify → webhook → attribution → ledger, so a stalled conversion is never a mystery.

Common ClickFunnels setups

Whatever's built into your funnel.

Multi-step funnel with upsells

The cookie set at the landing step carries through order bumps and upsells — the affiliate gets credit for the whole funnel, not just the first page.

Course or coaching offer

Selling a course or coaching package through a funnel? The snippet attributes the sale the same way regardless of what's being sold.

Paid and affiliate traffic side by side

Ad campaigns and affiliate links can point at the same funnel — attribution only fires when ?via= is present, so paid traffic isn't miscredited.

Migrating from another tool

Swap the old tracking snippet for Qanary's in the same Tracking Code field — existing ?via= links your affiliates already shared keep working.

At a glance

See it side by side.

Capability Tracking it yourself Qanary
Setup time on ClickFunnels Custom dev project ~10 minutes
Attribution survives multi-step upsells No Yes
Fraud checked before commission is owed No Yes
Falls back with no page to instrument No Yes, via coupon codes
Why this beats a spreadsheet

It works the day you publish.

FAQ

Fair questions.

Where exactly does the snippet go in ClickFunnels?

Funnel Settings → Tracking Code → Header Tracking Code. Set it at the funnel level so it applies across every step, not just one page.

Does the snippet slow down my site?

No — it loads with the async attribute, so it fetches in the background and never blocks page rendering.

Does attribution survive order bumps and upsells?

Yes — the cookie is set once on the first page a visitor lands on and persists across every step in the funnel, so upsell purchases still attribute to the original affiliate.

Does this replace ClickFunnels' own affiliate tools?

It doesn't need to replace anything — Qanary adds coupon-code fallback for ad blockers, fraud checks before a commission is owed, and flexible payouts through Wise or PayPal, running as one system alongside however you currently manage affiliates.

Can an AI agent install this for me?

Yes — point Claude Code, Cursor, or Codex at Qanary's llms.txt and it can install the tracking snippet and wire a webhook from a single prompt. See the AI agent page for the exact setup.

Go deeper

Everything you need to start tracking.

Paste the snippet. Start tracking tonight.

Join the waitlist now; when registration opens, wire your ClickFunnels funnel in ten minutes.

Join the waitlist