> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useorbitcrm.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Analytics 4 Integration

> Track form views and submissions with GA4

![Google Analytics](https://mintcdn.com/orbitai-d647f397/T1yKN7sdBmMTM8cv/_images/integrations/google.svg?fit=max\&auto=format\&n=T1yKN7sdBmMTM8cv\&q=85\&s=b48c316782bb71ee9ad22bc72e1462f3)

[Visit Google Analytics](https://analytics.google.com)

> [!WARNING]
>
> **Already using Google Tag Manager?** If you already have GA4 configured inside Google Tag Manager, **do not** also add your Measurement ID here. This will cause duplicate events and skew your analytics data.
>
> **Choose one method:**
>
> * **Direct GA4:** Add your Measurement ID here for simple, quick setup
> * **Via GTM:** Manage GA4 through Google Tag Manager for centralized control of all your tags
>
> [Learn about Google Tag Manager integration →](https://docs.useorbitcrm.ai/integrations/google-tag-manager.md)

## Overview

Google Analytics 4 (GA4) integration allows you to track form views, submissions, and user behavior directly in your Google Analytics dashboard. Monitor your form performance alongside your other website analytics for a complete picture of user engagement.

> [card] Form Views
>
> Track when visitors land on your form

> [card] Form Submissions
>
> Measure conversions when forms are submitted

> [card] User Behavior
>
> See how users interact with your forms

> [card] Traffic Sources
>
> Understand where your form visitors come from

## What Gets Tracked

When you add your GA4 Measurement ID to a form, OrbitForms automatically sends the following events to Google Analytics:

| Event Name | When It Fires |
| - | - |
| `page_view` | When a visitor loads your form (automatic GA4 behavior) |
| `form_submit` | When a user successfully submits the form |

> [!TIP]
>
> You can mark `form_submit` as a conversion in GA4 to track form submissions as goals and measure conversion rates.

## Step 1: Get Your GA4 Measurement ID

Your GA4 Measurement ID starts with "G-" and can be found in your Google Analytics account. Follow these steps to find it:

**1. Go to Google Analytics**

Visit analytics.google.com and sign in with your Google account.

**2. Open Admin settings**

Click on the gear icon (Admin) in the bottom left corner of the screen.

**3. Select your property**

In the Property column (middle column), make sure the correct GA4 property is selected.

**4. Click Data Streams**

Under the Property column, click on "Data Streams" to view your configured streams.

**5. Select your web stream**

Click on your web data stream. If you don't have one, you'll need to create one first.

**6. Copy the Measurement ID**

Your Measurement ID is displayed at the top right of the stream details panel. It starts with "G-" followed by 10 characters.

> [!NOTE]
>
> **Don't have a GA4 property yet?** You'll need to create a GA4 property in Google Analytics first. See Google's guide: [Set up Analytics for a website (GA4) →](https://support.google.com/analytics/answer/9304153)

## Step 2: Add GA4 to Your Form in OrbitForms

Once you have your Measurement ID, add it to your form in OrbitForms to start tracking events.

**1. Open your form in OrbitForms**

Go to your dashboard and click on the form you want to track.

**2. Click the 'Integrate' tab**

In the form editor, find and click the "Integrate" tab at the top.

**3. Find Google Analytics 4**

Scroll down to find "Google Analytics 4" under the Tracking & Analytics section.

**4. Enter your Measurement ID**

Paste the Measurement ID you copied from Google Analytics (e.g., G-XXXXXXXXXX).

**5. Save your form**

Click the Save button. GA4 tracking is now active on your form.

> [!WARNING]
>
> **Important:** Enter only the Measurement ID (e.g., `G-XXXXXXXXXX`), not the full tracking script. Universal Analytics IDs starting with `UA-` are not supported.

## Step 3: Verify Your Setup

After adding your Measurement ID, verify that events are being received in Google Analytics using the Realtime report.

**1. Open your form**

In a new browser tab, open your form by clicking "View Form" in OrbitForms or navigating to your form URL.

**2. Go to Google Analytics Realtime**

In Google Analytics, click on Reports → Realtime in the left sidebar.

**3. Check for page\_view**

You should see your form page appear in the Realtime overview. Look for the page\_view event.

**4. Submit a test form**

Fill out and submit your form with test data to trigger a form\_submit event.

**5. Verify form\_submit event**

In the Realtime report, click on "Event count by Event name" and look for the form\_submit event.

## Setting Up Conversions (Optional)

Mark form submissions as conversions to track them as goals, see conversion rates, and use them for Google Ads optimization.

**1. Go to Admin**

In Google Analytics, click the gear icon (Admin) in the bottom left.

**2. Click Events**

Under the Property column, click on "Events" to see all tracked events.

**3. Find form\_submit**

Look for the form\_submit event in the list. If it's not there yet, you may need to wait for a submission.

**4. Mark as conversion**

Toggle the switch in the "Mark as conversion" column to turn it on for form\_submit.

Benefits of marking as conversion:

* See conversion rates in your reports
* Track goal completion over time
* Import conversions to Google Ads for optimization
* Set up conversion alerts and reports

## Viewing Your Data

Once set up, you can view your form data in several places within Google Analytics:

* **Realtime Report** — See live form views and submissions as they happen
* **Reports → Engagement → Events** — View form\_submit event totals and trends
* **Reports → Engagement → Conversions** — Track form submissions as conversions (if enabled)
* **Explore** — Create custom reports to analyze form performance by traffic source, device, etc.

> [!NOTE]
>
> **Note:** While Realtime reports show data immediately, standard reports can take 24-48 hours to fully process. Use the Realtime report to verify your setup is working correctly.

## Troubleshooting

> [accordion] Events not showing up in Realtime?
>
> Make sure you entered the Measurement ID correctly (starts with "G-"). Also check that you're looking at the correct GA4 property and that the form has been saved.

> [accordion] Invalid Measurement ID error?
>
> Make sure your ID starts with "G-" followed by 10 characters (e.g., G-XXXXXXXXXX). Universal Analytics IDs (UA-XXXXXX) are not supported—you need a GA4 property.

> [accordion] form\_submit event not appearing?
>
> The event only fires when the form is successfully submitted. Make sure you complete and submit the form with valid data. Also check if you have an ad blocker or privacy extension that might be blocking the GA4 script.

> [accordion] Numbers don't match form submissions?
>
> Browser-based tracking can be blocked by ad blockers and privacy extensions, leading to undercounting. For more accurate tracking that bypasses blockers, consider using [Cometly's server-side integration](https://docs.useorbitcrm.ai/integrations/cometly.md).

> [accordion] Events delayed in standard reports?
>
> GA4 standard reports can take 24-48 hours to process data. This is normal behavior. Use the Realtime report to verify events are being received immediately.

## Resources

> [card] [Google Analytics Dashboard](https://analytics.google.com)
>
> Access your analytics

> [card] [Set up Analytics for a website](https://support.google.com/analytics/answer/9304153)
>
> Google's setup guide

> [card] [Find your Measurement ID](https://support.google.com/analytics/answer/9267568)
>
> Google's guide

> [card] [Set up conversion events](https://support.google.com/analytics/answer/9143382)
>
> Google's conversion guide

***

**Ready to Track Your Forms?** Set up Google Analytics 4 in minutes and start measuring your form performance. [Get Started](https://app.useorbitcrm.ai/signin)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.