# Track form submissions with Google Analytics 4 and Google Tag Manager

Source: https://docs.businessapp.io/business-app/crm/forms/track-form-submissions-ga4/

## What is form submission tracking?

Form submission tracking records each completed form on your website as an event in Google Analytics 4 (GA4). You set up your Business App form to send visitors to a thank-you page on your website after they submit it. Then you use Google Tag Manager (GTM) to send an event to GA4 every time someone views that thank-you page.

Because a visitor reaches the thank-you page only after submitting the form, each thank-you page view in GA4 represents one form submission.

## Why is form submission tracking important?

-   **See which channels bring in leads**: Compare form submissions by traffic source, campaign, and landing page in GA4.
-   **Measure your marketing**: Use form submissions as a key event to judge how well your ads, emails, and social media posts perform.
-   **Keep your reporting in one place**: View form submissions next to the rest of your website traffic data in GA4.

## What's included with form submission tracking?

-   **Redirect to URL setting**: Your Business App form sends visitors to the thank-you page you choose after they submit it.
-   **Page View trigger**: A GTM trigger that fires when a visitor loads your thank-you page.
-   **GA4 Event tag**: A GTM tag that sends a `form_submission` event to your GA4 property when the trigger fires.
-   **Verification tools**: GTM `Preview` mode and the GA4 `Realtime` report confirm that each submission is recorded.

## Before you start

You need:

-   A GA4 property and its Measurement ID (it starts with `G-`). See [Measurement ID](https://support.google.com/analytics/answer/12270356) in the Google Analytics Help Center.
-   A GTM container installed on every page of your website, including the thank-you page. See [Create an account and container](https://support.google.com/tagmanager/answer/6103696) in the Tag Manager Help Center.
-   A dedicated thank-you page on your website, for example `https://www.example.com/thank-you`. Use this page only as the destination after a form submission.
-   Your Business App form embedded on your website.

To get the embed code for your form, go to `CRM` → `Forms`, click the three-dot menu (`⋮`) on the form's row, and click `Embed`. In the `Embed form` window, click `Copy code` and paste the code into the page on your website where you want the form to appear. For more detail, see [Build and publish a form](https://docs.businessapp.io/business-app/crm/forms/form-builder/#step-4-publish-your-form).

![The Embed form window with the form&#39;s embed code and the Copy code button](https://docs.businessapp.io/assets/images/form-embed-modal-d09eeb9a216296a6208cb038e4291d2a.png)

> **Info:** Business App forms don't have a built-in field for a GA4 Measurement ID or a GTM container. You set up tracking in GTM, using the thank-you page as the signal that a form was submitted.

## Track form submissions in GA4

### Step 1: Send visitors to your thank-you page

1.  In Business App, go to `CRM` → `Forms`.
2.  Open the form you want to track:
    -   To change an existing form, click the three-dot menu (`⋮`) on the form's row and click `Edit`.
    -   To start a new form, click `Create form`.
3.  Click the `Settings` tab.
4.  Under `Submission settings` → `After submission`, select `Redirect to URL`.
5.  In the `Redirect link` field, enter the full URL of your thank-you page, for example `https://www.example.com/thank-you`.
6.  Click `Save`.

After a visitor submits the form, they go to your thank-you page instead of the form's success page.

![The form editor Settings tab with Redirect to URL selected under After submission and a thank-you page URL in the Redirect link field](https://docs.businessapp.io/assets/images/form-settings-redirect-url-d22ff69fd56a7f16d4565175ab2947e8.png)

### Step 2: Create a Page View trigger in Google Tag Manager

1.  Sign in to Google Tag Manager and open the container installed on your website.
2.  Click `Triggers` → `New`.
3.  Name the trigger, for example `Thank-you page view`.
4.  Click `Trigger Configuration` and select `Page View`.
5.  Under `This trigger fires on`, select `Some Page Views`.
6.  Set the condition to `Page Path` `contains` `/thank-you`. Replace `/thank-you` with the path of your own thank-you page.
7.  Click `Save`.

For more detail, see [Triggers](https://support.google.com/tagmanager/answer/6106961) in the Tag Manager Help Center.

### Step 3: Create a GA4 Event tag

1.  In Google Tag Manager, click `Tags` → `New`.
2.  Name the tag, for example `GA4 event: form submission`.
3.  Click `Tag Configuration` and select `Google Analytics` → `Google Analytics: GA4 Event`.
4.  Enter your GA4 Measurement ID in the `Measurement ID` field.
5.  Enter `form_submission` in the `Event Name` field.
6.  Click `Triggering` and select the `Thank-you page view` trigger you created in step 2.
7.  Click `Save`.
8.  Click `Submit`, add a version name, and click `Publish`.

For more detail, see [Set up Google Analytics events in Tag Manager](https://support.google.com/tagmanager/answer/13034206) in the Tag Manager Help Center.

> **Tip:** Use a short, lowercase event name with underscores, such as `form_submission`. If you track more than one form, give each form its own thank-you page and event name (for example, `quote_request` and `newsletter_signup`) so you can tell them apart in GA4.

### Step 4: Check that tracking works

1.  In Google Tag Manager, click `Preview`. Tag Assistant opens in a new tab.
2.  Enter the URL of the page on your website that has your form, and click `Connect`.
3.  In the window that opens, fill out and submit the form.
4.  When your thank-you page loads, go back to the Tag Assistant tab and check that your GA4 Event tag appears under `Tags Fired`.
5.  In GA4, go to `Reports` → `Realtime` and check that `form_submission` appears in the `Event count by Event name` card.

For more detail, see [Preview and debug containers](https://support.google.com/tagmanager/answer/6107056) and [Realtime report](https://support.google.com/analytics/answer/9271392).

## View form submissions in GA4

The `Realtime` report shows events from the last 30 minutes. Standard GA4 reports can take 24 to 48 hours to show new events.

To build a report of form submissions over time:

1.  In GA4, click `Explore` and open a `Free form` exploration.
2.  Add `Event name` as a dimension and `Event count` as a metric.
3.  Add a filter where `Event name` exactly matches `form_submission`.
4.  Add other dimensions, such as `Session source / medium` or `Landing page`, to see where your submissions come from.

To count form submissions as conversions in GA4, mark `form_submission` as a key event. See [Mark events as key events](https://support.google.com/analytics/answer/13128484) in the Google Analytics Help Center.

## Troubleshoot form submission tracking

If `form_submission` doesn't appear in GA4, check the following:

-   **The redirect isn't set**: Open the form in Business App, click the `Settings` tab, and check that `Redirect to URL` is selected under `After submission` and that the URL is correct. Click `Save` after any change.
-   **The trigger doesn't match**: Check that the `Page Path` condition in your trigger matches the path of your thank-you page exactly as it appears in your browser's address bar.
-   **The GTM container isn't on the thank-you page**: Open your thank-you page with Tag Assistant connected and check that your container loads.
-   **The container isn't published**: Changes in GTM take effect on your website only after you click `Submit` and `Publish`.
-   **The Measurement ID is wrong**: Check that the `Measurement ID` in your GA4 Event tag matches the ID of the GA4 property you're viewing.

## Frequently asked questions

**Is there a place in Business App forms to enter my GA4 Measurement ID?**

No. Business App forms don't have a built-in field for a GA4 Measurement ID, a GTM container, or an analytics setting. You set up tracking in GTM using the thank-you page method in this article.

**Does the Google Analytics (GA4) integration in Business App track my form submissions?**

No. The `Google Analytics (GA4)` card in `Administration` → `Integrations` connects your GA4 property so your website analytics appear in Business App reports. It doesn't send form submission events to GA4. See [Google Analytics (GA4)](https://docs.businessapp.io/business-app/administration/integrations/google-analytics/).

**Why use a thank-you page instead of tracking the form directly?**

A visitor reaches your thank-you page only after they submit the form, so each page view is a reliable signal of one submission. The thank-you page method works with a standard GTM `Page View` trigger and doesn't depend on how the form displays on your page.

**Can I track more than one form?**

Yes. Give each form its own thank-you page, then create a separate trigger and GA4 Event tag for each page with its own event name.

**Why are my GA4 numbers higher than the submissions in Business App?**

GA4 counts every view of your thank-you page, including visitors who open it directly or refresh it. Keep the thank-you page out of your website's menus and don't link to it from other pages.

**Why are my GA4 numbers lower than the submissions in Business App?**

Visitors who block cookies or tracking scripts, or who close the browser before the thank-you page loads, aren't counted in GA4. Business App records every submission, so use your CRM as the full count of leads.

**Where do I see which campaign a lead came from?**

In GA4, add a dimension such as `Session source / medium` or `Session campaign` to your form submission report. To save campaign details on the contact record in Business App, add UTM fields to your form. See [Forms](https://docs.businessapp.io/business-app/crm/forms/).

**How long does it take for form submissions to appear in GA4?**

Events appear in the `Realtime` report within a few seconds. Standard GA4 reports can take 24 to 48 hours to show new events.
