ClickFunnels install

TrueMetriks tracks every ClickFunnels lead, purchase, subscription charge, and refund so you can attribute them back to your ads. Here is how to set it up.

What gets tracked

ClickFunnels needs two pieces: a tracking snippet in your funnel head (PageView and InitiateCheckout) and a webhook in your ClickFunnels account (Lead, Purchase including every recurring subscription and payment-plan charge, and Refund). Both ClickFunnels versions use the same setup and the same Webhook URL, so skip to the version you use below.

ClickFunnels 2.0

How to install TrueMetriks on ClickFunnels 2.0

Copy the tracking snippet from your dashboard

In your TrueMetriks dashboard, go to Settings > Tracking, pick the ClickFunnels tile, and click Copy on the Tracking snippet.

Showing setup for ClickFunnels

Install on ClickFunnels

Paste the snippet in your funnel head and add the webhook URL in your ClickFunnels workspace for purchase events.

1 TRACKING SNIPPET

HTML
<script async src="https://q.yourdomain.com/t/s-cf/abcd1234.js"></script>

ClickFunnels 2.0: Funnel settings → Head Code. Classic: Funnel settings → Head Tracking Code.

Checkout URL pattern

checkout

Webhook URL

https://q.yourdomain.com/api/webhooks/clickfunnels/abc123...

CF 2.0: Workspace Settings → Webhooks → Add endpoint. Subscribe to contact.created, orders/invoice.paid, orders/invoice.refunded. Classic: Funnel Settings → Manage Funnel Webhooks → All Events.

Settings → Tracking → ClickFunnels - copy the snippet, set the Checkout URL pattern, and copy the Webhook URL.

Checkout URL pattern. By default the tracker fires InitiateCheckout whenever the page URL contains the word checkout, so make sure your checkout step has checkout in its URL. If you use a different word (order, cart, payment, etc.), change the value in the Checkout URL pattern field on this card and click Save.

Open Funnels in ClickFunnels

In ClickFunnels, click Funnels in the left sidebar. On the Funnels page, click the funnel you want to track.

Funnels

All Archived Imported
Name Steps Pageviews
Your Awesome Funnel 2 10
Left sidebar → Funnels - click your funnel from the list to open it.

Open Funnel Settings

Once you are inside the funnel, click the gear icon in the top right corner. That opens Funnel Settings in a side panel.

Your Awesome Funnel
Funnel Editor Workflows Optins Orders Stats
Start of Funnel
Cart Page /cart-page
Thank You Page /thank-you-page
Inside the funnel - click the gear icon in the top right to open Funnel Settings.

Paste the snippet into Head Code

In the Funnel Settings panel, scroll to Head Code, paste the Tracking snippet you copied earlier, then click Save.

Your Funnel Settings

Name

Your Awesome Funnel

Domain

yourbrand.myclickfunnels.com (default)

Head Code

<script async src="https://q.yourdomain.com/t/s-cf/abcd1234.js"></script>

Set custom code before the </head> tag of all pages in this Funnel.

Footer Code

Funnel Settings → Head Code - paste the snippet, then Save.

Repeat this on every funnel you want tracked. ClickFunnels 2.0 head code is scoped per-funnel, not workspace-wide.

Open Workspace Settings

To capture leads, purchases, and refunds you also need to install a webhook. In the ClickFunnels 2.0 left sidebar, scroll to the bottom and click Workspace Settings.

ClickFunnels

  • Funnels
  • Products
  • Customers
  • Learn & Connect
Left sidebar - scroll to the bottom and click Workspace Settings.

Open Webhooks

Inside Workspace Settings, scroll the menu and click Webhooks near the bottom.

CU

Back to

your workspace

Workspace Settings

  • General
  • Billing
  • Domains
  • Integrations
  • URLs
  • Webhooks
  • Audit Logs
Inside Workspace Settings - click Webhooks at the bottom of the menu.

Click Add new endpoint

You land on the Webhooks endpoints page. Click Add new endpoint to open the endpoint form.

WORKSPACE SETTINGS  :  WEBHOOKS

Webhooks endpoints

Webhooks endpoints

Below is a list of external endpoints we will try to deliver webhooks to.

Name URL

No endpoints yet - click Add new endpoint to add one.

Workspace Settings → Webhooks - click Add new endpoint.

Copy the Webhook URL from your dashboard

Before filling the endpoint form, jump back to your TrueMetriks install card and copy the Webhook URL (the second value on the card, under the tracking snippet).

Showing setup for ClickFunnels

Install on ClickFunnels

Paste the snippet in your funnel head and add the webhook URL in your ClickFunnels workspace for purchase events.

TRACKING SNIPPET

HTML
<script async src="https://q.yourdomain.com/t/s-cf/abcd1234.js"></script>

Checkout URL pattern

checkout

2 Webhook URL

https://q.yourdomain.com/api/webhooks/clickfunnels/abc123...

Paste this URL into the CF 2.0 endpoint form on the next step.

Back to the TrueMetriks install card - this time copy the Webhook URL.

Fill in the endpoint form

Back in ClickFunnels, fill the endpoint form in this order:

  1. Name - call it TRUEMETRIKS PURCHASE TRACKING (or anything you will recognize later).
  2. URL - paste the Webhook URL you just copied.
  3. Event types - pick the three events TrueMetriks needs: contact.created, orders/invoice.paid, and orders/invoice.refunded.
  4. Endpoint scopes > Funnels - pick the funnel (or funnels) you want this endpoint to fire on. Leave Pages empty.

Click Create endpoint at the bottom.

WORKSPACE SETTINGS  :  WEBHOOKS

TRUEMETRIKS PURCHASE TRACKING

Edit webhooks endpoint settings

1Name

TRUEMETRIKS PURCHASE TRACKING

2URL

https://q.yourdomain.com/api/webhooks/clickfunnels/abc123...

Paste the Webhook URL you just copied.

3Event types

contact.created orders/invoice.paid orders/invoice.refunded

Endpoint scopes

4Funnels

Your Awesome Funnel
Add endpoint - paste the Webhook URL, pick the three events, and scope to your funnel.

ClickFunnels Classic (1.0)

How to install TrueMetriks on Classic ClickFunnels

Open your funnel

In the top navigation click Click Funnels. From the Funnels list click the funnel you want to track.

Click Funnels Follow-Up Funnels Backpack Help

Funnels

All Funnels Archived Marketplace
Type Funnel Name Steps Last Updated
LAUNCH Your Funnel 7 about 2 hours ago
Click Funnels → Funnels - click your funnel to open it.

Open Funnel Settings

Inside the funnel, click the SETTINGS tab in the top right of the funnel toolbar.

TEST FUNNEL
STEPS STATS CONTACTS SALES SETTINGS
Click the SETTINGS tab on the right of the funnel toolbar.
Inside your funnel - click SETTINGS in the top right.

Paste the snippet into Head Tracking Code

The code you need is the Tracking snippet on your TrueMetriks install card - the same snippet you would use for CF 2.0.

Showing setup for ClickFunnels

Install on ClickFunnels

Paste the snippet in your funnel head and add the webhook URL in your ClickFunnels workspace for purchase events.

1 TRACKING SNIPPET

HTML
<script async src="https://q.yourdomain.com/t/s-cf/abcd1234.js"></script>

ClickFunnels 2.0: Funnel settings → Head Code. Classic: Funnel settings → Head Tracking Code.

Checkout URL pattern

checkout

Webhook URL

https://q.yourdomain.com/api/webhooks/clickfunnels/abc123...

CF 2.0: Workspace Settings → Webhooks → Add endpoint. Subscribe to contact.created, orders/invoice.paid, orders/invoice.refunded. Classic: Funnel Settings → Manage Funnel Webhooks → All Events.

Settings → Tracking → ClickFunnels - copy the snippet, set the Checkout URL pattern, and copy the Webhook URL.

Copy that snippet, then on the funnel Settings page scroll down to Head Tracking Code, paste it in, and click Save Funnel Settings at the bottom of the page.

Your Funnel STEPS STATS CONTACTS SALES SETTINGS

Edit Settings For This Funnel

NAME

Your Funnel

DOMAIN

yourfunnel.com

HEAD TRACKING CODE

<script async src="https://q.yourdomain.com/t/s-cf/abcd1234.js"></script>

Funnel wide tracking code for the head tag

Funnel Settings → Head Tracking Code - paste the snippet, then Save.

Open Manage Your Funnel Webhooks

Stay on the same Settings page and scroll further down to the Webhooks block. Click Manage Your Funnel Webhooks.

Webhooks

Use webhooks to send data to an external system. Funnel Webhooks are triggered when a new contact is created or updated and when a new purchase is created or updated.

Same Settings page, scroll down to Webhooks - click Manage Your Funnel Webhooks.

Click + New Webhook

On the Active Funnel Webhooks page, click + New Webhook in the top right.

Your Funnel Steps Stats Contacts Sales Settings

Back

Active Funnel Webhooks

No active webhooks yet - click + New Webhook to add one.

Active Funnel Webhooks - click + New Webhook in the top right.

Copy the Webhook URL from your dashboard

Before filling the form, jump back to your TrueMetriks install card and copy the Webhook URL (the second value on the card, under the tracking snippet).

Showing setup for ClickFunnels

Install on ClickFunnels

Paste the snippet in your funnel head and add the webhook URL in your ClickFunnels workspace for purchase events.

TRACKING SNIPPET

HTML
<script async src="https://q.yourdomain.com/t/s-cf/abcd1234.js"></script>

Checkout URL pattern

checkout

2 Webhook URL

https://q.yourdomain.com/api/webhooks/clickfunnels/abc123...

Paste this URL into the CF 2.0 endpoint form on the next step.

Back to the TrueMetriks install card - this time copy the Webhook URL.

Fill in the webhook form

Back in ClickFunnels, fill the New Funnel Webhook form in this order:

  1. URL - paste the Webhook URL you just copied.
  2. Event - keep All Events (simplest). If you prefer to subscribe explicitly, the minimum needed is contact_created and purchase_created. Refunds and recurring charges come through purchase_updated, which is included in All Events.
  3. Version - 1
  4. Adapter - attributes

Click Create Funnel Webhook at the bottom.

New Funnel Webhook

Need some help setting this up? Review our support document.

1URL

https://q.yourdomain.com/api/webhooks/clickfunnels/abc123...

Paste the Webhook URL you just copied.

2Event

All Events

Or pick at minimum contact_created and purchase_created.

3Version

1

4Adapter

attributes
New Funnel Webhook - paste the URL, pick All Events, Version 1, Adapter attributes, then Create.

Classic ClickFunnels scopes webhooks per-funnel. If you have multiple funnels, repeat these steps on each one - paste the same Webhook URL every time.

How to test

After installing the snippet (and the webhook), the next step is verifying everything is firing correctly. See Test your integration for the full walkthrough.

Something not firing? See Troubleshooting.

Frequently asked questions

Which ClickFunnels version do I have - Classic or 2.0?

If your dashboard URL contains myclickfunnels.com you are on ClickFunnels 2.0. If it contains app.clickfunnels.com and your funnels live under Click Funnels > Funnels, you are on Classic ClickFunnels (1.0). Both are supported.

Does the same Webhook URL work for both versions?

Yes. TrueMetriks auto-detects the ClickFunnels version from the webhook payload shape and headers. Copy the same Webhook URL into either Workspace Settings (2.0) or per-funnel Manage Funnel Webhooks (Classic).

Are subscriptions and payment plans tracked?

Yes. On ClickFunnels 2.0 every recurring charge fires an orders/invoice.paid webhook that TrueMetriks records as its own Purchase event. On Classic, recurring charges fire purchase_updated which TrueMetriks also records per-charge. Refunds (orders/invoice.refunded on 2.0, purchase_updated with a refund flag on Classic) are logged for reconciliation.

What is the Checkout URL pattern?

ClickFunnels does not natively fire a checkout event on the page. TrueMetriks watches the URL and, when it contains the word you configure (default checkout), fires an InitiateCheckout event so you get a checkout-step funnel in the dashboard. Set it to whatever appears in your checkout-page slug.

Do I need to install the webhook on every funnel?

On ClickFunnels 2.0 you install the webhook once at workspace level and scope it to the funnels you want, via the Funnels field on the endpoint. On Classic, webhooks are per-funnel - install one webhook per funnel you want tracked, using the same Webhook URL each time.

Why am I only seeing PageView and not Purchase events?

PageView comes from the head snippet. Purchase comes from the webhook. If you see PageView but no Purchase after a test order, your webhook is missing, archived, or pointing at the wrong URL. Open the dashboard install card and re-copy the Webhook URL.

Need help with this?

Reach us instantly on WhatsApp, or send us a message and we will get back to you. On workdays we usually respond in less than 24 hours.

or send us a message