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

# Build GA4 funnel explorations with Claude, ChatGPT, and AI

> Analyze conversion journeys, step completion, abandonment, open and closed funnels, user segments, and next actions using HireOtto's Google Analytics 4 MCP server.

Use HireOtto's GA4 MCP server to analyze how users progress through a defined sequence of events. Find where users abandon a conversion journey, compare devices or segments, and investigate what happens after each step.

The workflow uses Google's native GA4 funnel reporting API. It does not create or save an exploration in the Analytics interface.

## Why use funnel exploration instead of an event report?

Standard reports can tell you how many users triggered product view, add-to-cart and purchase events independently. They cannot establish that the same users completed those events in the intended order.

Funnels answer a sequential question: how many users entered, progressed, and abandoned a defined journey? Use standard reports for independent event counts and funnels for ordered user progression.

## Before you start

* Connect HireOtto at `https://ga4.hireotto.com/mcp` using the [GA4 quickstart](https://docs.hireotto.com/google-analytics/quickstart.md).
* Complete read-only Google Analytics authorization and identify the property ID.
* Confirm the events and supported exploration fields that represent your journey.

For GA4 property PROPERTY\_ID, list observed event names and event counts over the last 28 complete days. Inspect configured key events. Help me identify the events representing my conversion journey. Do not change anything.

A configured key event is not necessarily an observed event. A funnel step does not have to be a key event.

## Build your first closed funnel

A closed funnel requires entry through its first defined step. Start with three common website events before substituting your actual conversion journey.

For GA4 property PROPERTY\_ID, build a closed funnel from session\_start to page\_view to scroll over the last 28 complete days. Show active users, completion rates, abandonment and overall progression. Return a summary and separate CSVs for both subreports. Do not change anything.

```json theme={null}
{
  "property_id": "PROPERTY_ID",
  "request_json": {
    "dateRanges": [{"startDate": "28daysAgo", "endDate": "yesterday"}],
    "funnel": {
      "isOpenFunnel": false,
      "steps": [
        {"name": "Session", "filterExpression": {"funnelEventFilter": {"eventName": "session_start"}}},
        {"name": "Page view", "filterExpression": {"funnelEventFilter": {"eventName": "page_view"}}},
        {"name": "Scroll", "filterExpression": {"funnelEventFilter": {"eventName": "scroll"}}}
      ]
    }
  },
  "output_mode": "summary_and_csv",
  "max_rows": 1000
}
```

## Understand completion and abandonment

An illustrative closed ecommerce funnel:

| Step | Active users | Completion to next step | Abandonment |
| - | - | - | - |
| Product viewed | 1,000 | 30% | 700 |
| Add to cart | 300 | 50% | 150 |
| Checkout started | 150 | 60% | 60 |
| Purchase | 90 | — | — |

Overall closed-funnel completion is 90 divided by 1,000, or 9%. Step completion and overall completion are different metrics. Use the native completion and abandonment metrics when available; a final-step completion value is not the overall conversion rate.

## Open versus closed funnels

| Type | Entry behavior | Use |
| - | - | - |
| Closed | First defined step only | Measure progression from a starting population |
| Open | Entry at later steps allowed | Explore journeys with multiple entry points |

Set `funnel.isOpenFunnel` to true for an open funnel.

Compare open and closed funnels for GA4 property PROPERTY\_ID with the same events and dates. Show how later entrants affect step populations. Explain which is appropriate for measuring completion from the first step.

Later steps can exceed earlier steps in open funnels. Use `funnelStepNewVsContinuing` where returned. Do not calculate open-funnel completion using closed-funnel assumptions.

## Analyze a specific conversion journey

### SaaS signup

Discover the observed signup initiation and registration completion events for GA4 property PROPERTY\_ID. Build a closed funnel from website visit to pricing-page view to signup initiation to completed registration. Use page-location filters. Do not invent event names.

### Lead generation

For GA4 property PROPERTY\_ID, analyze a closed funnel from a relevant landing-page view to form\_start to the confirmed lead-generation event over the previous 28 complete days. Identify the largest observed abandonment point.

### Ecommerce purchase

For GA4 property PROPERTY\_ID, verify view\_item, add\_to\_cart, begin\_checkout and purchase exist. If so, build a closed purchase funnel over the last 28 complete days. Show active users, completion and abandonment at each step.

These are example journeys. Missing or incorrectly implemented events can produce little or no data.

## Filter steps to specific pages

Use supported funnel field filters or event parameter filter expressions. For example, a step representing a pricing-page view:

```json theme={null}
{
  "name": "Pricing page",
  "filterExpression": {
    "funnelEventFilter": {
      "eventName": "page_view",
      "funnelParameterFilterExpression": {
        "funnelParameterFilter": {
          "eventParameterName": "page_location",
          "stringFilter": {"matchType": "CONTAINS", "value": "/pricing"}
        }
      }
    }
  }
}
```

Choose filters that match your instrumentation and URL structure. A Core reporting dimension is not automatically a valid funnel field. See Google's [exploration API schema](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema).

## Control sequencing and timing

Use `isDirectlyFollowedBy` on a step when it must immediately follow the preceding step. Use `withinDurationFromPriorStep` to constrain elapsed time, for example `"3600s"` for one hour.

Compare a standard closed funnel with a version requiring the final event to occur within one hour of the preceding step. Keep all other filters and dates identical. Explain how the timing constraint changes progression.

Keep step definitions and constraints consistent across comparisons.

## Compare progression by device or segment

Add this field to the native request to compare device categories:

```json theme={null}
{
  "funnelBreakdown": {
    "breakdownDimension": {"name": "deviceCategory"},
    "limit": "5"
  }
}
```

Break down my closed conversion funnel by device category. Compare desktop and mobile step progression, show underlying user counts, flag small samples and keep reserved total rows separate.

Native segments can analyze supported user, session or event subsets. Do not sum overlapping segments or combine RESERVED\_TOTAL with its breakdown rows. Breakdown limits can restrict coverage.

## Investigate what users do next

Add this field to the native request:

```json theme={null}
{
  "funnelNextAction": {
    "nextActionDimension": {"name": "eventName"},
    "limit": "5"
  }
}
```

Analyze the next actions after each step in my conversion funnel using eventName. Show the most common actions and no-next-action categories. Separate observed behavior from hypotheses about why users leave.

Next actions are returned in the visualization subreport. A limited action list is not exhaustive.

## Track progression over time

Set `funnelVisualizationType` to `TRENDED_FUNNEL` for dated funnel observations when supported.

Build a trended closed funnel for the last 28 complete days. Show changes in progression at each step. Keep missing dates distinct from confirmed zero values.

Do not sum daily active users to reproduce the period-level unique-user total.

## Read results and coverage

| Subreport | Purpose |
| - | - |
| `funnel_table` | Step populations, completion, abandonment and breakdowns |
| `funnel_visualization` | Step progression, trends, new versus continuing users or next actions |

Each has separate headers, rows and metadata. Inspect these coverage fields:

| Field | Meaning |
| - | - |
| `api_returned_rows` | Rows received from Google |
| `returned_rows` | Rows collected within the local cap |
| `row_count` | Null; native total available row count is not provided |
| `api_limit_reached` | Native limit reached; coverage may be incomplete |
| `truncated` | Local collection cap omitted returned rows |
| `inline_row_count` | Rows displayed inline |
| `export_row_count` | Rows included in CSV |
| `metadata` | Native reporting metadata, including sampling information when supplied |

There is no offset pagination. If the native limit is reached, narrow scope or increase the supported limit where appropriate.

## Export funnel data

Default output is `summary`. Use `summary_and_csv` for inline data plus separate CSV exports, or `csv_only` for exports without inline rows. Only subreports containing rows produce exports.

Each successful request costs 5 credits including both subreports; CSV generation adds no separate reporting charge.

See the [tool reference](https://docs.hireotto.com/google-analytics/tools-reference.md#run-ga4-funnel-exploration) for full parameters and limits.

## Interpretation limits

* Funnel progression is observed behavior, not proof of the cause of abandonment.
* Funnel active users are not event totals or sessions.
* Missing rows do not establish zero users.
* Incomplete instrumentation, sampling, privacy restrictions, row limits and small samples affect interpretation.
* A funnel does not establish incremental advertising impact or CRM lead quality.

Use [configuration inspection](https://docs.hireotto.com/google-analytics/tools-reference.md#get-ga4-property-configuration) and appropriate browser or app debugging when investigating measurement issues.

## Common errors

| Problem | What to check |
| - | - |
| Unsupported field | Use the exploration API schema rather than Core metadata alone |
| Invalid step | Check the native filter expression |
| No data | Check property, dates, events, filters and timing |
| Later step exceeds earlier step | Check whether the funnel is open |
| Missing categories | Inspect breakdown and row limits |
| Unsupported offset | Remove offset; native funnel pagination is unsupported |
| Access denied | Confirm property and Google API access; demo properties may deny API access |
| No CSV link | Confirm CSV output was requested and the subreport contains rows |

## Related resources

* [GA4 quickstart](https://docs.hireotto.com/google-analytics/quickstart.md)
* [Custom GA4 reporting](https://docs.hireotto.com/google-analytics/custom-reporting.md)
* [GA4 tools reference](https://docs.hireotto.com/google-analytics/tools-reference.md)
* [Google funnel reporting endpoint](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1alpha/properties/runFunnelReport)
* [Exploration API schema](https://developers.google.com/analytics/devguides/reporting/data/v1/exploration-api-schema)


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