ClickFunnels 2.0 and Whop Checkout
Learn how to track conversions when using ClickFunnels 2.0 as your funnel and Whop as your checkout platform. Capture leads and purchases with AnyTrack.
Overview
Section titled “Overview”This guide covers the setup for funnels that use ClickFunnels 2.0 for lead capture and the Whop platform for checkout. AnyTrack bridges the two platforms so you can track the complete customer journey — from optin to purchase — and sync conversions to your ad platforms via Conversion APIs.
What you’ll achieve:
- Track leads captured on ClickFunnels 2.0 optin pages
- Automatically fire an
InitiateCheckoutevent when visitors reach the Whop checkout - Capture successful payments from Whop via webhook
- Send conversion data to Google Ads, Meta, TikTok, and other ad platforms
How It Works
Section titled “How It Works”Step 1: Visitor fills out the optin form
ClickFunnels 2.0 captures the contact data (email, name, phone) and stores it in the dataLayer
Step 2: Visitor reaches the Whop checkout page
A tracking script reads the contact data from the dataLayer and fires an InitiateCheckout event to AnyTrack
Step 3: Visitor completes the purchase on Whop
Whop sends the payment data to AnyTrack via webhook
Step 4: AnyTrack syncs conversions to ad platforms
AnyTrack sends the conversion data to all connected ad platforms via Conversion API
Setup Guide
Section titled “Setup Guide”Step 1 — Integrate ClickFunnels 2.0 with AnyTrack
Section titled “Step 1 — Integrate ClickFunnels 2.0 with AnyTrack”Follow the standard ClickFunnels 2.0 integration guide to:
- Add the AnyTrack Tracking Tag to your ClickFunnels site.
- Set up the ClickFunnels 2.0 webhook in AnyTrack.
This ensures AnyTrack tracks all visitor activity and optin events on your funnel pages.
Step 2 — Add the Checkout Tracking Script
Section titled “Step 2 — Add the Checkout Tracking Script”On the ClickFunnels page where the Whop checkout widget is embedded, add the following script. This script reads the contact data captured by your optin form and fires an InitiateCheckout event to AnyTrack.
<script>!function(){ let attempts = 0; const captureCheckout = () => { attempts += 1; const { contactEmailAddress, contactFirstName, contactLastName, contactPhoneNumber, contactCountry, contactPostalCode } = window.dataLayer?.find(entry => entry.contactEmailAddress) || {};
if (contactEmailAddress) { window.AnyTrack?.("trigger", "InitiateCheckout", { refId: contactEmailAddress, email: contactEmailAddress, firstName: contactFirstName, lastName: contactLastName, phone: contactPhoneNumber, country: contactCountry, zipcode: contactPostalCode }); return true; } return attempts >= 10; };
if (captureCheckout()) return; const interval = setInterval(() => { if (captureCheckout()) clearInterval(interval); }, 300);}();</script>How this script works:
- It polls the ClickFunnels
dataLayerfor contact data submitted via the optin form. - Once the email address is found, it fires an
InitiateCheckoutevent with the lead’s details. - If no data is found after 10 attempts (3 seconds), it stops polling.
⚠️ Important
The optin form must be on a page before the Whop checkout page. The script relies on contact data already being present in the
dataLayerwhen the checkout page loads.
Step 3 — Set Up the Whop Webhook
Section titled “Step 3 — Set Up the Whop Webhook”Connect Whop to AnyTrack to capture successful payment events:
- In your AnyTrack dashboard, go to the Integration Catalog.
- Search for Whop and click Install Integration.
- Copy the Webhook URL provided by the integration.
- Log in to your Whop account and navigate to your webhook settings.
- Add a new webhook and paste the AnyTrack Webhook URL.
- Select the successful payment event as the trigger.
- Save the webhook configuration.
Step 4 — Test Your Setup
Section titled “Step 4 — Test Your Setup”Verify the full funnel is working:
- Visit your ClickFunnels funnel and submit the optin form with test data.
- Proceed to the Whop checkout page and verify the
InitiateCheckoutevent appears in your AnyTrack Event Log. - Complete a test purchase on Whop.
- Check your AnyTrack dashboard for the purchase conversion.
Tracked Events
Section titled “Tracked Events”| Event | Description | Data Source |
|---|---|---|
PageView | Visitor lands on a funnel page | AnyTrack JS Tag |
Lead | Visitor submits the optin form | ClickFunnels Webhook |
InitiateCheckout | Visitor reaches the Whop checkout page | Checkout Script |
Purchase | Visitor completes payment on Whop | Whop Webhook |
Connect Your Ad Platforms
Section titled “Connect Your Ad Platforms”Once tracking is active, connect your advertising platforms to receive conversion data:
⚠️ Important
After connecting ad accounts through AnyTrack, remove any existing tracking pixels from your ClickFunnels and Whop pages to prevent duplicate tracking.
Troubleshooting
Section titled “Troubleshooting”InitiateCheckout event not firing
Section titled “InitiateCheckout event not firing”- Verify the optin form is on a page before the checkout page — the script needs contact data in the
dataLayer. - Check that the AnyTrack Tracking Tag is installed on the page where the Whop widget is embedded.
- Open the browser console and confirm
window.dataLayercontains an entry withcontactEmailAddress.
Purchase conversions not appearing
Section titled “Purchase conversions not appearing”- Verify the Whop webhook is configured with the correct AnyTrack Webhook URL.
- Check the webhook is set to trigger on the successful payment event.
- Inspect the Event Log in your AnyTrack integration page for errors.
Attribution data missing
Section titled “Attribution data missing”- Ensure the AnyTrack tag is installed on all pages in the funnel, not just the checkout page.
- Confirm visitors go through the optin form before reaching the checkout — direct links to the checkout page skip the lead capture step.
ClickFunnels 2.0 & Whop Checkout - Frequently Asked Questions
FAQ was last reviewed on 2026-06-10