Skip to content
🚀 Find us on Product Hunt

Google Analytics 4 Tracking Setup for GoHighLevel

Quick answer: Use the free container builder wizard to select Google Analytics 4 and your events, enter your tracking ID, then import the generated file into Google Tag Manager - no manual tag setup needed for any of the 5 events below.

GA4 configuration and ecommerce event tracking via a native Google tag. This container uses a native GTM tag type for this platform.

Build my Google Analytics 4 container →

Events you can track

conversion events

engagement events

By Humayun Kabir Naim — Last updated: 9 November 2026

Quick answer

GoHighLevel already tracks inside its own CRM — form submissions, survey responses and calendar bookings land on contact records with source attribution. What it does not do is hand those actions to GA4 as reportable events. That is GTM's one job here: install it once per funnel or website — Sites → Funnels (or Websites) → Settings, head snippet in Head tracking code, body snippet in Body tracking code — and let Custom HTML "bridge" tags hear the moment a form, survey or calendar announces success, then push an event your GA4 tag can fire on. Every conversion here is a lead, not a purchase: forms, surveys and bookings all map to generate_lead. Two traps account for every broken GHL setup: GTM installed at funnel level and page level (every pageview twice), and two senders for the same event (a native integration and a GTM tag both firing). Pick one install level and one sender per event, and the setup below holds.

What gets tracked

Five events — the smallest surface on this site, because GHL funnels exist to do one thing: turn a visitor into a lead.

GoHighLevel actionHow GTM sees itGA4 event
Page ViewGTM's own Page View trigger — no bridge neededpage_view
Form SubmissionBridge tag listening for the form's native success messagegenerate_lead
Survey CompletedBridge tag listening for the survey's completion messagegenerate_lead
Calendar BookingBridge tag listening for the booking widget's completion messagegenerate_lead
Thank-You Page ViewPage View trigger limited to the thank-you stepgenerate_lead (fallback route — read the warning below)

Four of the five need a bridge: forms, surveys and calendars run inside embedded widgets, so a page-level GTM trigger never sees the action. The widget does announce success to the parent page — the bridge hears it and turns it into a dataLayer.push. Page View needs none: GTM's native trigger handles it.

The thank-you row needs care: it is an alternative to the form bridge on that funnel, never an addition — run both and every lead counts twice.

There is no ecommerce here — no purchase, no items, no revenue. The free TagManagerBuilder tier covers up to 3 events per container; the full container carries all five. Running ads on Meta too? Same five events, same bridges: GoHighLevel + Meta. See all options on the GoHighLevel hub.

Before you start

  1. Decide what stays native. GHL attribution lives inside the CRM and needs nothing from GTM. GTM's job is the view outside: GA4 as the source of truth your reports and ad platforms share, plus engagement events GHL never sees (outbound clicks, downloads, scroll depth).
  2. Inventory the existing senders. Check whether the sub-account has a native GA4/analytics connection on, and whether any snippet was pasted into a funnel's tracking fields. A native integration and a GTM Google tag both sending page views is the double-sender trap in its commonest form.
  3. One container and one GA4 property per sub-account. Agencies: each client gets its own, so one client's leads never land in another's reports.
  4. Access to the funnel or website Settings tab — where the tracking code fields live. Page-level access can work, but funnel level is the default.
  5. A test submission and booking you can delete later. Every check below uses real actions in the real funnel; the test leads are the receipt.

Route 1: Use the free TagManagerBuilder container

Open the GTM Container Builder, choose GoHighLevel, then Google Analytics 4, and tick the events you want. Enter your GA4 Measurement ID, download the JSON, then in GTM use Admin → Import Container with Merge → Overwrite conflicting tags, triggers, and variables. The container holds the Google tag, the bridge tags, their Custom Event triggers, and the GA4 event tags mapped to generate_lead. You still install GTM on the funnel (Step 1) and test before publishing.

Route 2: Build it manually in GTM

Step 1 — Install GTM once, at funnel level

In GoHighLevel: Sites → Funnels (or Websites) → open the funnel → Settings tab. Paste GTM's <head> snippet into Head tracking code and the <body> snippet into Body tracking code, then Save. The alternative — the page builder's Tracking Code panel on a single step — is for scripts that run on one page only. Never do both: the same container at both levels loads twice, doubling every pageview and event on that page. GHL injects scripts dynamically, so GTM usually won't appear in View Page Source — normal, not a failed install. Judge it in GTM Preview, never in the source.

GoHighLevel funnel Settings with GTM code in the Head and Body tracking code fields

Step 2 — The Google tag

Tags → New → Google tag, Measurement ID (G-EXAMPLE123), trigger All Pages. This sends page_view on every step and carries the configuration the event tags inherit. If the sub-account's native GA4 connection is on, turn it off — this tag replaces it.

Step 3 — The bridge tags

One Custom HTML tag per conversion type. The form version shows the pattern — it waits for a message from GoHighLevel's form domains and pushes a named event:

<script>
  window.addEventListener('message', function(e) {
    var origin = e.origin || '';
    if (origin.indexOf('forms.gohighlevel.com') === -1 &&
        origin.indexOf('forms.msgsndr.com') === -1) { return; }
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({ event: 'goHighLevelFormSubmission' });
  });
</script>

Trigger it on All Pages (or only the steps carrying forms) and name it for what it hears: GHL — Form Bridge. The survey and calendar bridges follow the same shape, pushing their own event names (for example goHighLevelCalendarBooking). Be clear about what this code is: a practitioner-community technique, not an official GoHighLevel API — the widgets' messages are not a documented contract and can change. That is why testing is not optional, and why the listener checks the message's origin.

Custom HTML bridge tag in GTM listening for a GoHighLevel form submission

Step 4 — Triggers and GA4 event tags

For each bridge event, create a Custom Event trigger matching the pushed name, then a GA4 event tag: event name generate_lead, on that trigger. Where the push carries detail — a form name, a calendar ID — pass it as an event parameter; it's the difference between "a booking happened" and "the discovery-call calendar produced this lead". The fallback: if a form can't be heard, fire generate_lead from a Page View trigger limited to the thank-you step's URL — and remove that form bridge, so the routes never overlap.

Step 5 — One sender per event, then mark the key event

Walk the workspace once: for each event, is exactly one thing sending it? Then publish, submit a test lead, and mark generate_lead in GA4 (Admin → Key events). Import it into Google Ads if the funnel runs ads.

Page View trigger in GTM limited to the GoHighLevel thank-you step

Test it

GTM Preview showing the form bridge event with the GA4 lead tag fired
  1. Click Preview in GTM and connect to the funnel — the container loading at all is your install check, since View Page Source won't show it.
  2. Submit the test form. In the Preview timeline the bridge event (goHighLevelFormSubmission) appears, and the GA4 generate_lead tag sits under Tags Fired on it.
  3. Complete a test booking. The calendar bridge event appears the same way — if the form worked and this doesn't, see Troubleshooting.
  4. Open GA4 DebugView: one page_view per step viewed, one generate_lead per test action. Two of anything means a second sender or install — fix that first.
  5. If you used the thank-you route, submit again and confirm exactly one generate_lead, not one per route.
  6. Publish (Submit), check GA4 Realtime with one more test lead, then delete the test contacts.
GA4 DebugView showing generate_lead received from a GoHighLevel form Calendar booking arriving in GA4 as generate_lead with its calendar parameter

GoHighLevel-specific troubleshooting

I pasted the code but GTM "isn't installed" — it's not in View Page Source. GHL injects tracking code dynamically, so it often never shows in static page source. Ignore the source: if Tag Assistant connects in GTM Preview, the install is live; if not, check the snippets are saved in the funnel's Settings tab.

Every pageview counts twice. The container sits at both levels — funnel Settings and a page's Tracking Code panel — and loads twice. Remove the page-level copy. Same symptom with one install? That's the double sender: native GA4 connection and GTM Google tag both sending page_view.

The form event fires inside the form's iframe but never reaches my page. That's the architecture, not a bug: the submission happens inside the widget, and only its success message crosses to the parent page — where the bridge must run. If the form sits on a page without your container (a WordPress page, say), the push has nowhere to land: install GTM there too, or track that form via its thank-you step.

Forms track fine, but calendar bookings never appear. The calendar is a separate widget with its own completion message — a form listener won't hear it, so it needs its own bridge. Embedded calendars bite harder: the booking is announced on the host page, so bridge and container must live there.

The thank-you page is on a different funnel step — or there isn't one. The thank-you sits on its own step, sometimes on another domain or a page outside the funnel — and a Page View trigger only fires where the container is installed, so that step needs it too. If the form shows an inline success message with no thank-you step, that route doesn't exist: the bridge is the only option.

My GA4 numbers never match GoHighLevel's numbers. Expect close, not identical. GHL counts CRM contacts, including leads recovered by workflows; GA4 counts browser events it was allowed to see — and a consent banner holding the Google tag until a visitor agrees widens it further. Reconcile on one funnel, one week, one event first.

Next: Consent Mode v2 and the Server-Side Tracking guide.

GTM installed at both funnel and page level in GoHighLevel, annotated to remove one

Frequently asked questions

Does GoHighLevel already send my form submissions to GA4?

No. GoHighLevel records it on the contact with its own attribution, and its native analytics connections cover basic page-view reporting — but form, survey and calendar conversions do not arrive in GA4 as events on their own. Getting them there as generate_lead is what the bridge setup on this page does.

Where exactly do I paste the GTM code in GoHighLevel?

Sites → Funnels (or Websites) → open the funnel → Settings tab: head snippet in Head tracking code, body snippet in Body tracking code, then Save — that installs GTM on every funnel step. A single page can take code via the builder's Tracking Code panel, but never put the container in both places.

Why can't I see the GTM code when I view the page source?

Because GoHighLevel adds tracking scripts dynamically in the browser instead of writing them into the page's static HTML — the container can be installed and firing while invisible in View Page Source. Verify installs in GTM Preview and GA4 DebugView.

Are these conversions purchases? What should I optimise towards?

No — nothing is bought. Form submissions, survey completions and calendar bookings are lead events: they map to generate_lead, get marked as a key event once, and become the conversion your ads optimise towards. Mapping them to purchase would invent revenue.

My form or calendar is embedded on another website. Will the bridge still work?

Yes — provided GTM is installed on the page doing the embedding: the widget announces success to the host page, and the bridge listener there pushes the event. If the host page is on a site without your container, install it there too, or that embed's conversions stay invisible.

Do I need a separate GTM container for every funnel?

No. Install the same container at funnel level on every funnel or website you want tracked — bridges and tags are shared, and parameters like the calendar ID keep reports separable. Do use separate containers per client sub-account in an agency setup, so each client's data stays in its own property.

Share with