Skip to content

Meta AdsPublished 14 min read

ClickFunnels 2.0 Conversion Tracking: Meta, GA4, Google Ads

What the built-in Meta and GA4 settings in ClickFunnels 2.0 actually send, what they miss, and how to track purchases, upsells and leads correctly for ad platforms.

Muhammad Qitmeer, founder of Augere Labs
Muhammad Qitmeer
Co-founder and CEO, Augere Labs
Share

ClickFunnels 2.0 conversion tracking has two native pieces: a Meta Pixel and Conversions API connection, and a GA4 connection, both set in Site & Blog, Site Settings, Tracking Codes. They cover page views and leads well, but purchase values, one-click upsells and Google Ads conversions still need your own code or a webhook. The safest setup uses the native settings for the basics and adds a small, controlled layer for revenue and ad click IDs.

This is for agency owners, PPC managers and developers who inherit ClickFunnels 2.0 funnels and need numbers that match the order list. It covers where tracking code goes, what each native setting sends, how to pass purchase value, how to stop upsells from inflating results, cross-domain issues, storing UTMs and gclid on contacts, and how to test before you trust any of it.

Where do you add tracking code in ClickFunnels 2.0?

You add tracking code at one of three levels in ClickFunnels 2.0: the site, the funnel, or a single page. Each level has a header and a footer field, and code at a higher level runs on everything below it.

LevelWhere to find itRuns onUse it for
SiteSite & Blog app, Site Settings, Header Code or Footer CodeEvery site page, blog post, store page and funnel page in the workspaceGoogle Tag Manager, a single Google tag, consent banner
FunnelThe funnel's settings, Head Code or Footer CodeEvery page in that one funnelCode that only one client offer needs
PagePage editor, Settings, Show Code, Header Code or Footer Code tabThat page onlyConversion events on confirmation pages

ClickFunnels' own help article calls the funnel field "Head Code" in one place and "Header Code" in another, so look for either label. One practical gotcha from the same article: the editor refuses to save header or footer code that contains unclosed template syntax such as two opening curly braces. If you paste a snippet that uses that syntax, wrap it in raw and endraw Liquid tags or remove it.

The rule that saves the most trouble: load each tag once, at one level. If GTM sits at site level, do not also paste a Google tag at funnel level. Most double counting in ClickFunnels accounts comes from the same pixel loaded at two levels, or from a native integration plus a pasted copy of the same pixel.

Does ClickFunnels 2.0 have a built-in Facebook Conversions API?

Yes. ClickFunnels 2.0 has a native Meta Pixel and Conversions API connection that takes a Dataset ID and an access token in Site Settings. You do not need Zapier or a third-party tool for basic CAPI.

The official setup, per the ClickFunnels Meta Pixel and Conversions API article, goes like this:

  1. Create or pick a dataset. In Meta Events Manager, open Data Sources, click Connect Data, choose Web, and create a dataset or select the client's existing one. Choose the setup option that uses both the Conversions API and Meta Pixel.
  2. Copy the Dataset ID. On the dataset's Settings tab, copy the Dataset ID. This is the same number people still call the Pixel ID.
  3. Generate an access token. On the same Settings tab, under the direct integration section, click Generate access token and copy it.
  4. Paste both into ClickFunnels. In the Site & Blog app, open Site Settings, scroll to Tracking Codes, and fill in Facebook Pixel ID and Facebook Access Token. Optionally add a test code to Facebook Test Event Code.
  5. Save. Click Update Site. The connection applies across the site, funnel pages and landing pages.
  6. Remove the test code after testing. If you leave Facebook Test Event Code filled in, live server events can be treated as test events and not used for optimization.

The article names PageView on page visits, Lead on opt-in form submits and Purchase on completed purchases. What it does not explain is how browser and server copies of the same event are deduplicated, and you cannot edit the server payload or add custom parameters. Third-party CAPI vendors say the native setup has no deduplication. I would not take that claim or its opposite on faith. Check it on the client's own dataset, as described in the testing section below.

The mistake to avoid with the native Meta setup

Do not paste the Meta base code into Header Code when the Facebook Pixel ID field is already filled. That loads the pixel twice and sends two browser PageViews and two Purchases per order. If the client already has a Meta pixel in GTM, pick one route. Either use the native fields and remove the GTM pixel tags, or clear the native fields and run Pixel plus CAPI through GTM and a server container, where you control the event ID. The second route takes more work but gives you real deduplication and better customer data. Our Meta Conversions API deduplication guide covers how matching event names and event IDs work.

How do you connect GA4 to ClickFunnels 2.0?

You connect GA4 to ClickFunnels 2.0 by pasting the GA4 Measurement ID into the GA4/GTM Measurement ID field in Site Settings, Tracking Code. An optional Measurement Protocol API secret lets ClickFunnels send one server-side event.

The ClickFunnels GA4 article describes three settings:

  • GA4/GTM Measurement ID. Your G- ID from the GA4 web data stream. Browser events go out through gtag.js.
  • GA4/GTM Api Secret. A Measurement Protocol secret created under the same data stream. With it, ClickFunnels sends a server-side generate_lead event. That is the only server event it lists right now.
  • Add GTagJS Script. Turn this on if nothing else loads GA4 on the site. Turn it off if GTM or another snippet already loads it, otherwise you get duplicate page views.

The native GA4 setup does not document a purchase event with revenue. So for any funnel that sells, plan your own purchase event. If you rely on Enhanced Measurement alone, GA4 shows traffic and leads but no revenue, and the client's GA4 revenue report stays at zero.

For agencies that already run GTM everywhere, a cleaner pattern is: install GTM at site level in Header Code, turn Add GTagJS Script off, and keep the Measurement ID field only if you want the native server-side generate_lead. If you also fire generate_lead from GTM on the same opt-in, you will count leads twice. Choose one source per event and write it down in the client's tracking plan.

How do you track ClickFunnels 2.0 purchases with the right value?

Track ClickFunnels 2.0 purchases by firing your own purchase event on the page customers see right after a successful order, with the value set to that offer's price, or by sending the real order total from a webhook. ClickFunnels does not document a page variable for the order total, so pick the method that matches how the funnel is priced.

Method 1: fixed value per confirmation page

Most ClickFunnels offers have a fixed price per step. The page after the order form only loads after a successful charge, so a page-level footer script on that step can fire a purchase with a known value. Put it in the page's Footer Code, not the funnel's, so it only runs on that step.

<script>
    (function () {
      var key = "cf_purchase_frontend_" + location.pathname;
      try {
        if (sessionStorage.getItem(key)) { return; }
        sessionStorage.setItem(key, "1");
      } catch (e) {}
  
      var orderRef = "cf-" + Date.now() + "-" + Math.floor(Math.random() * 1e6);
  
      window.dataLayer = window.dataLayer || [];
      window.dataLayer.push({ ecommerce: null });
      window.dataLayer.push({
        event: "cf_purchase",
        step: "frontend",
        transaction_id: orderRef,
        value: 47.00,
        currency: "USD",
        ecommerce: {
          transaction_id: orderRef,
          value: 47.00,
          currency: "USD",
          items: [{ item_id: "frontend-offer", item_name: "Front end offer", price: 47.00, quantity: 1 }]
        }
      });
    })();
  </script>

In GTM, trigger your GA4 purchase tag, Meta Purchase tag (if Meta runs through GTM) and Google Ads conversion tag on the cf_purchase custom event. The sessionStorage guard stops a refresh from firing a second purchase in the same tab. The generated ID is not the real order ID, so it will not deduplicate across devices, but it stops the common refresh and back button repeats. Read why GA4 shows duplicate transactions for the wider pattern.

The weakness: an order bump, a coupon or a quantity change makes the fixed value wrong. If the client uses bumps on most orders, use method 2 for revenue and keep method 1 only as a signal for ad optimization.

Method 2: real totals from a webhook

ClickFunnels 2.0 sends webhooks for order and contact events. Create one under Workspace Settings, Webhooks, point it at your endpoint, and choose API version V2. The ClickFunnels webhook event list includes order.completed, one-time-order.completed, subscription.activated, contact.created, contact.identified and form_submission.created, among others. Note the developer docs say order.completed fires for a paid one-time order and also when a subscription's service period ends, so filter on what you actually want to count.

A small server function can take the order payload and send:

  • Meta. A Conversions API Purchase with the real value and the order ID as event_id. Only do this if you have turned off the native Purchase or can match its event ID, or you will double count.
  • GA4. A Measurement Protocol purchase with the order ID as transaction_id. This needs the visitor's GA client ID, so capture the _ga cookie value into a contact field at opt-in. See sending offline events with GA4 Measurement Protocol.
  • Google Ads. An offline click conversion keyed on the stored gclid, with the order ID set so Google can drop repeats. See offline conversion imports from a CRM.

Look at a real webhook payload from a test order before mapping fields. Field names inside the payload vary by event and version, and it is better to read them from a live delivery than from memory.

Why do ClickFunnels upsells double count conversions?

ClickFunnels upsells double count because the same purchase tag often fires on every page after checkout, so one buyer who sees an upsell and a downsell creates two or three Purchase events. The fix is a separate, clearly named event per step, and only the steps you mean to count marked as primary conversions.

The common setups that cause it:

  • Purchase tag at funnel level. Funnel-level Footer Code runs on the upsell, downsell and thank-you pages too. Every page view after checkout becomes a purchase.
  • Same event on accept and decline paths. If accept and decline on an upsell both lead to the same next page, a page-load event on that page fires whether or not the buyer took the offer. Page loads cannot tell them apart.
  • Native Purchase plus GTM Purchase. The native Meta connection sends a Purchase, and a GTM tag sends another with a different event ID.
  • Webhook plus page event without a shared ID. The server sends the real order and the browser sends the fixed-value event, with no common ID for deduplication.

A layout that holds up:

Funnel stepEventValueGoogle Ads goal
Opt-in thank-you or order form page viewgenerate_lead (one source only)Optional lead valueSecondary
First page after the order formpurchase, step frontendFront-end pricePrimary
Page reached only by accepting upsell 1purchase, step upsell_1Upsell pricePrimary or secondary, by choice
Page reached by either pathNo purchase eventNoneNone
Final thank-you pageNo purchase event (or a non-revenue page_view only)NoneNone

If the funnel routes accept and decline to the same next page, either change the routing so accepted upsells land on a dedicated page, or count upsell revenue from the webhook only. In Google Ads, set the front-end conversion's count to "Every" so separate purchases in one session all record, but use transaction IDs so the same one is not recorded twice. In Meta, send upsells as Purchase with their own value, or as a custom event if you want campaigns to optimize only on the front-end sale. If counts are already inflated, start with fixing Meta duplicate events.

How do you set up Google Ads conversion tracking in ClickFunnels 2.0?

Set up Google Ads conversion tracking in ClickFunnels 2.0 by loading the Google tag or GTM once at site level and firing the Google Ads conversion on the specific confirmation step, not across the funnel. ClickFunnels does not have a native Google Ads conversion field, so this is always your own code.

  1. Create the conversion actions. In Google Ads, create a website purchase action and, if the funnel collects leads, a separate lead action. Use "Use different values for each conversion" for purchases.
  2. Load the tag once. Put GTM in Site Settings Header Code. If you use the Google tag directly instead, paste it once at site level.
  3. Fire on the right step. Trigger the Google Ads conversion tag from the cf_purchase data layer event above, passing value, currency and transaction ID.
  4. Add enhanced conversions. The opt-in or order form collects email and phone. Capture them on submit and pass them as user-provided data. The enhanced conversions setup guide covers the GTM side.
  5. Add the conversion linker. In GTM, a Conversion Linker tag on all pages keeps the gclid available across funnel steps.
  6. Set consent. If the client runs ads in the EEA or UK, set up Consent Mode before any of this goes live. See the Consent Mode v2 guide.

For high-ticket funnels where the real sale happens on a call, track the opt-in or booking as a secondary conversion and import the closed deal later from the CRM using the stored gclid. Optimizing on cheap opt-ins alone tends to pull in leads that never buy.

Does cross-domain tracking matter for ClickFunnels funnels?

Cross-domain tracking matters when the visitor moves between two different domains during the funnel, such as from a WordPress site on the client's main domain to a ClickFunnels funnel on a separate domain. If the whole funnel, including the order form, lives on one domain, you usually do not need it.

Typical cases where it does matter:

  • Main site to funnel domain. The ad lands on client.com and the order form is on offer-client.com or a myclickfunnels.com subdomain. GA4 starts a new session on the funnel domain and the sale is credited to a referral from the client's own site.
  • Funnel to external booking or payment page. A Calendly embed, an external payment link, or a separate members' area on another domain.

Fixes, in order of preference: put the funnel on a subdomain of the main domain (for example go.client.com), which avoids most cookie issues. If that is not possible, add both domains in the GA4 data stream's domain configuration and confirm the _gl parameter appears on links between them. Add the client's own domains to the unwanted referrals list. Our GA4 cross-domain and self-referral guide walks through testing it. For Meta, the fbclid only arrives on the landing page, so if the funnel is on another domain, pass it through the link or the native pixel on the funnel domain will not see it.

How do you save UTMs and gclid on ClickFunnels 2.0 contacts?

Save UTMs and gclid on ClickFunnels 2.0 contacts by creating custom contact attributes, adding matching inputs to the opt-in form, and filling them with a small script from the URL or a first-party cookie. ClickFunnels does not document automatic UTM fields on the contact profile, and a public feature request asks for it.

  1. Create the attributes. Go to Workspace Settings, Contact Attributes, Add Contact Attribute. Create Text Field attributes for utm_source, utm_medium, utm_campaign, utm_term, utm_content, gclid, gbraid, wbraid, fbclid and, if you will use Measurement Protocol, ga_client_id. Set them to hidden visibility if you do not want them shown on the profile.
  2. Add inputs to the form. Add an input element per attribute to the opt-in or order form and map it to the attribute with the input's Custom Type setting. Hide the inputs from view.
  3. Find the rendered names. Publish, open the live page, and inspect each input to read its name attribute. Use those exact names in the script.
  4. Store values on landing. The script below saves parameters from the first page into a cookie, so they survive the move from a landing page to a later form step.
  5. Fill on load. The same script writes the stored values into the inputs before the visitor submits.
<script>
    (function () {
      var keys = ["utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "gclid", "gbraid", "wbraid", "fbclid"];
      var fieldNames = {
        utm_source: "utm_source", utm_medium: "utm_medium", utm_campaign: "utm_campaign",
        utm_term: "utm_term", utm_content: "utm_content", gclid: "gclid",
        gbraid: "gbraid", wbraid: "wbraid", fbclid: "fbclid"
      };
      var params = new URLSearchParams(location.search);
  
      function readCookie(name) {
        var parts = document.cookie.split("; ");
        for (var i = 0; i < parts.length; i++) {
          var p = parts[i].split("=");
          if (p[0] === name) { return decodeURIComponent(p.slice(1).join("=")); }
        }
        return "";
      }
  
      keys.forEach(function (k) {
        var v = params.get(k);
        if (v) {
          document.cookie = "cf_" + k + "=" + encodeURIComponent(v) + "; path=/; max-age=7776000; SameSite=Lax";
        }
      });
  
      function fill() {
        keys.forEach(function (k) {
          var v = readCookie("cf_" + k);
          var el = document.querySelector("input[name='" + fieldNames[k] + "']");
          if (v && el && !el.value) { el.value = v; }
        });
      }
      if (document.readyState === "loading") {
        document.addEventListener("DOMContentLoaded", fill);
      } else {
        fill();
      }
    })();
  </script>

Put this in Site Settings Footer Code so it runs on every page, then edit the fieldNames map to match the names you found. Submit a test lead with a tagged URL and open the contact to confirm each value saved. If the client pushes contacts to a CRM, map these fields through.

How do you test ClickFunnels 2.0 tracking before trusting it?

Test ClickFunnels 2.0 tracking by placing real test orders through every path of the funnel and checking each platform's live view, not just the browser. A funnel with one upsell and one downsell has at least three purchase paths, and each one needs a pass.

  1. Use test mode or a cheap live product. Run the payment processor in test mode if the funnel supports it, or create a low-price test product you refund afterward.
  2. Meta. Fill Facebook Test Event Code, buy through the funnel, and watch Test Events. Check whether each Purchase shows a browser and a server copy, and whether Events Manager marks them as deduplicated. Then remove the test code.
  3. GA4. Use DebugView with GTM preview or the GA debugger extension. Confirm one purchase per paid step, with value and currency, and one generate_lead per opt-in.
  4. Google Ads. Use Tag Assistant to see the conversion fire with value and transaction ID. In Google Ads, the conversion action's status and the diagnostics tab show whether hits are arriving.
  5. Refresh test. Reload the confirmation page and use the back button. No second purchase should fire.
  6. Decline path. Decline every upsell. Only the front-end purchase should exist.
  7. Contact record. Open the test contact and confirm the UTMs, click IDs and GA client ID were saved.
  8. Webhook log. If you use webhooks, check the delivery log in ClickFunnels and your endpoint's logs for each test order.

After a week of live traffic, compare purchases in Meta, GA4 and Google Ads against the ClickFunnels order list for the same dates. They will never match exactly, because of consent, ad blockers and attribution windows, but a platform showing more purchases than the order list means something is still firing twice.

Getting it fixed for a client

Most ClickFunnels 2.0 accounts we look at have the same short list of problems: a pixel loaded twice, a purchase tag at funnel level that fires on upsell pages, no revenue in GA4, and no click IDs stored on contacts, so offline imports are impossible. Each fix is small, but finding which one applies takes a careful pass through every funnel step and every platform. If you want a second set of eyes on a client funnel, request a free tracking check and we will tell you what is firing, what is missing, and what is double counting.

Just one quick fix, not a whole account? Our founder takes small fixed-price jobs on Fiverr: Meta Conversions API and duplicate event fix

Frequently asked questions

Is ClickFunnels 2.0 conversion tracking different from ClickFunnels Classic?

Yes. ClickFunnels 2.0 puts site-wide tracking in the Site & Blog app under Site Settings and has native fields for a Meta Dataset ID, access token and GA4 Measurement ID. Guides written for Classic refer to different menus and do not apply.

Does the ClickFunnels 2.0 GA4 integration send purchase revenue?

ClickFunnels documents browser events through gtag.js and one server-side generate_lead event. It does not document a purchase event with revenue, so add your own purchase event or send orders from a webhook.

Can I use Google Tag Manager on ClickFunnels 2.0?

Yes. Paste the GTM container code into Site Settings Header Code so it loads on every page. Turn off the native Add GTagJS Script toggle if GTM already loads GA4, or page views will double.

Which ClickFunnels 2.0 webhook should I use for purchases?

The developer docs list order.completed and one-time-order.completed among others. order.completed also fires when a subscription service period ends, so test with a real order and filter the payload to the purchases you want to count.

Why does Meta show more purchases than ClickFunnels orders?

Usually the pixel is loaded twice, through the native field and pasted code, or a purchase event fires on every page after checkout. Check Test Events for duplicate browser copies and move purchase events to page-level code on the right steps.

Muhammad Qitmeer

Written by

Muhammad Qitmeer, founder of Augere Labs

Augere Labs is the white-label tracking partner behind marketing agencies. If a client account has numbers you don't trust, I'm happy to look at it with you and tell you straight what's wrong.

Connect on LinkedIn