API Reference

Google Analytics 4 / API Reference

ga4_setup_lead_gen_property

GA4 analytics tool. One-shot lead gen property setup — creates standard key events and a lead audience. Sets up: generate_lead, form_submit, phone_click, email_click, sign_up as key events. Creates a 'Lead Submitters' audience with 30-day membership. Args: property_id: GA4 property ID. Leave blank to use default. google_ads_customer_id: Optional. If provided, creates a Google Ads link.

This is a read-only tool: it returns setup lead gen property for your Google Analytics 4 account. It changes nothing.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Setup lead gen property in my Google Analytics 4 account.

It takes 0 required and 2 optional parameters.

Parameters

ParameterTypeRequiredDescription
property_idstringNoProperty Id
google_ads_customer_idstringNoGoogle Ads Customer Id

Related Google Analytics 4 tools

Before you can call it

This tool needs a connected Google Analytics 4 account. The Google Analytics 4 connect guide covers the OAuth flow and the permissions it asks for, and the quickstart gets a client talking to the server in about five minutes.

Workflows that use this

Rather than calling tools one at a time, these skills run a whole procedure against the same account:

Start using MCP Ads