> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orbitforms.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

<img src="https://mintcdn.com/orbitai-d647f397/T1yKN7sdBmMTM8cv/_images/integrations/google.svg?fit=max&auto=format&n=T1yKN7sdBmMTM8cv&q=85&s=b48c316782bb71ee9ad22bc72e1462f3" alt="Google Analytics" width="32" height="32" data-path="_images/integrations/google.svg" />

[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 →](/integrations/google-tag-manager)
</Warning>

## 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.

<CardGroup cols={2}>
  <Card title="Form Views" icon="eye">
    Track when visitors land on your form
  </Card>

  <Card title="Form Submissions" icon="paper-plane">
    Measure conversions when forms are submitted
  </Card>

  <Card title="User Behavior" icon="chart-bar">
    See how users interact with your forms
  </Card>

  <Card title="Traffic Sources" icon="chart-pie">
    Understand where your form visitors come from
  </Card>
</CardGroup>

## 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.
</Tip>

## 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:

<Steps>
  <Step title="Go to Google Analytics">
    Visit analytics.google.com and sign in with your Google account.
  </Step>

  <Step title="Open Admin settings">
    Click on the gear icon (Admin) in the bottom left corner of the screen.
  </Step>

  <Step title="Select your property">
    In the Property column (middle column), make sure the correct GA4 property is selected.
  </Step>

  <Step title="Click Data Streams">
    Under the Property column, click on "Data Streams" to view your configured streams.
  </Step>

  <Step title="Select your web stream">
    Click on your web data stream. If you don't have one, you'll need to create one first.
  </Step>

  <Step title="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.
  </Step>
</Steps>

<Info>
  **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)
</Info>

## 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.

<Steps>
  <Step title="Open your form in OrbitForms">
    Go to your dashboard and click on the form you want to track.
  </Step>

  <Step title="Click the 'Integrate' tab">
    In the form editor, find and click the "Integrate" tab at the top.
  </Step>

  <Step title="Find Google Analytics 4">
    Scroll down to find "Google Analytics 4" under the Tracking & Analytics section.
  </Step>

  <Step title="Enter your Measurement ID">
    Paste the Measurement ID you copied from Google Analytics (e.g., G-XXXXXXXXXX).
  </Step>

  <Step title="Save your form">
    Click the Save button. GA4 tracking is now active on your form.
  </Step>
</Steps>

<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.
</Warning>

## Step 3: Verify Your Setup

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

<Steps>
  <Step title="Open your form">
    In a new browser tab, open your form by clicking "View Form" in OrbitForms or navigating to your form URL.
  </Step>

  <Step title="Go to Google Analytics Realtime">
    In Google Analytics, click on Reports → Realtime in the left sidebar.
  </Step>

  <Step title="Check for page_view">
    You should see your form page appear in the Realtime overview. Look for the page\_view event.
  </Step>

  <Step title="Submit a test form">
    Fill out and submit your form with test data to trigger a form\_submit event.
  </Step>

  <Step title="Verify form_submit event">
    In the Realtime report, click on "Event count by Event name" and look for the form\_submit event.
  </Step>
</Steps>

## Setting Up Conversions (Optional)

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

<Steps>
  <Step title="Go to Admin">
    In Google Analytics, click the gear icon (Admin) in the bottom left.
  </Step>

  <Step title="Click Events">
    Under the Property column, click on "Events" to see all tracked events.
  </Step>

  <Step title="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.
  </Step>

  <Step title="Mark as conversion">
    Toggle the switch in the "Mark as conversion" column to turn it on for form\_submit.
  </Step>
</Steps>

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.

<Info>
  **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.
</Info>

## Troubleshooting

<AccordionGroup>
  <Accordion title="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>

  <Accordion title="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>

  <Accordion title="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>

  <Accordion title="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](/integrations/cometly).
  </Accordion>

  <Accordion title="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.
  </Accordion>
</AccordionGroup>

## Resources

<CardGroup cols={2}>
  <Card title="Google Analytics Dashboard" icon="link" href="https://analytics.google.com">
    Access your analytics
  </Card>

  <Card title="Set up Analytics for a website" icon="book" href="https://support.google.com/analytics/answer/9304153">
    Google's setup guide
  </Card>

  <Card title="Find your Measurement ID" icon="magnifying-glass" href="https://support.google.com/analytics/answer/9267568">
    Google's guide
  </Card>

  <Card title="Set up conversion events" icon="bullseye" href="https://support.google.com/analytics/answer/9143382">
    Google's conversion guide
  </Card>
</CardGroup>

***

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