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
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
<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
Webhook URL
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.
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
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.
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
Domain
Head Code
Set custom code before the </head> tag of all pages in this Funnel.
Footer Code
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
Open Webhooks
Inside Workspace Settings, scroll the menu and click Webhooks near the bottom.
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.
No endpoints yet - click Add new endpoint to add one.
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
<script async src="https://q.yourdomain.com/t/s-cf/abcd1234.js"></script>
Checkout URL pattern
2 Webhook URL
Paste this URL into the CF 2.0 endpoint form on the next step.
Fill in the endpoint form
Back in ClickFunnels, fill the endpoint form in this order:
- Name - call it
TRUEMETRIKS PURCHASE TRACKING(or anything you will recognize later). - URL - paste the Webhook URL you just copied.
- Event types - pick the three events TrueMetriks needs:
contact.created,orders/invoice.paid, andorders/invoice.refunded. - 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
2URL
Paste the Webhook URL you just copied.
3Event types
Endpoint scopes
4Funnels
ClickFunnels Classic (1.0)
Open your funnel
In the top navigation click Click Funnels. From the Funnels list click the funnel you want to track.
Funnels
Open Funnel Settings
Inside the funnel, click the SETTINGS tab in the top right of the funnel toolbar.
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
<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
Webhook URL
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.
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.
Edit Settings For This Funnel
NAME
DOMAIN
HEAD TRACKING CODE
Funnel wide tracking code for the head tag
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.
Click + New Webhook
On the Active Funnel Webhooks page, click + New Webhook in the top right.
Back
Active Funnel Webhooks
No active webhooks yet - click + New Webhook to add one.
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
<script async src="https://q.yourdomain.com/t/s-cf/abcd1234.js"></script>
Checkout URL pattern
2 Webhook URL
Paste this URL into the CF 2.0 endpoint form on the next step.
Fill in the webhook form
Back in ClickFunnels, fill the New Funnel Webhook form in this order:
- URL - paste the Webhook URL you just copied.
- Event - keep
All Events(simplest). If you prefer to subscribe explicitly, the minimum needed iscontact_createdandpurchase_created. Refunds and recurring charges come throughpurchase_updated, which is included inAll Events. - Version -
1 - Adapter -
attributes
Click Create Funnel Webhook at the bottom.
New Funnel Webhook
Need some help setting this up? Review our support document.
1URL
Paste the Webhook URL you just copied.
2Event
Or pick at minimum contact_created and purchase_created.
3Version
4Adapter
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.