> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.formester.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Connect to Google Analytics (GA4)

# How to Track Form Submissions as a Key Event in Google Analytics
Tracking form submissions as key events in Google Analytics 4 (GA4) allows you to see exactly where your leads are coming from, measure conversion rates, and optimize your campaigns. Using **Formester** along with **Google Tag Manager (GTM)** makes this setup simple and efficient.

### Why Track Form Submissions
* **Measure Conversions**: Know which campaigns or pages are driving submissions.
* **Optimize Marketing**: Understand the source of your leads and improve targeting.
* **Analyze Behavior**: Combine with GA4 and other analytics tools to see user interactions.

### Steps to Track Form Submissions
${youtube}[](cdZzx_KMHgE?feature=shared)

### Step 1: Prepare Your Form and GTM Container
1. Open your **Formester dashboard** and select the form you want to track.
2. Ensure your form is connected to a **GTM container** (if not, follow the steps to install GTM in Formester).

### Step 2: Configure Variables in GTM
1. Open your GTM container and go to **Variables → Configure**.
2. Enable all elements under **Clicks** and **Forms**.
3. These variables will help you detect which interactions trigger your events.

### Step 3: Create a Trigger for Form Submission
1. Go to **Triggers → New** and rename it (e.g., `All Clicks`).
2. Select **All Clicks → Clicks → All Elements**.
3. Save the trigger.
> Tip: Use the **Tag Assistant** in preview mode to interact with the form. This helps you identify specific clicks (like the submit button) and refine your trigger to only fire on relevant actions, for example, `Click ID = form-submit`.

### Step 4: Create a GA4 Event Tag
1. Navigate to **Tags → New** and name it `GA4 Form Submission`.
2. Select **Google Analytics → GA4 Event**.
3. Paste your **GA4 Measurement ID** from your data stream.
4. Set the **Event Name** (e.g., `form_submission`).
5. Assign the **form submission trigger** created in Step 3.
6. Save the tag.

### Step 5: Test the Event
1. Click **Preview** in GTM and open your form URL.
2. Interact with the form and submit it.
3. Check **GA4 Debug View** to see if the `form_submission` event fires correctly.

### Step 6: Mark Form Submission as a Key Event in GA4
1. Go to **GA4 → Admin → Events → Create Event**.
2. Name the event `form_submission`.
3. Enable **Mark as Key Event**.
4. Save the event.
Now, the form submission is tracked as a key event, and you can view it in reports such as **Traffic Acquisition** or create filters and dimensions to see which pages, campaigns, or sources generated these leads.

### Benefits of Tracking Form Submissions
* Measure which channels drive the most leads.
* Retarget users who started filling the form but did not submit.
* Improve form conversion rates by analyzing drop-offs.
* Gain accurate insights for marketing and product decisions.

By combining **Formester**, **GTM**, and **GA4**, you can create a fully automated workflow for tracking leads, optimizing campaigns, and understanding user behavior.