---
agent:
  instructions: "Use this search API to find a ready-to-deploy Next Gen Zap for what the user wants to automate, with keywords or a natural-language description, instead of reading every zap. Results are returned in Markdown, each with the zap's SKILL.md install guide."
  endpoint: "https://zapier.sh/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://zapier.sh/developers/"
---

# Google Analytics 4 + Datadog Integrations: Connect with Zapier MCP
> zapier.com/apps/google-analytics-4/integrations/datadog
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Google Analytics 4 and Datadog in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP** (default for AI clients — self-contained for OAuth clients; no further docs needed):
  - Endpoint: `https://mcp.zapier.com/api/v1/connect` (Streamable HTTP only; SSE is not supported).
  - Auth: OAuth 2.0 + PKCE + Dynamic Client Registration. Do not create a server at `mcp.zapier.com` or ask for an API token; Zapier auto-provisions the server during browser sign-in.
  - Client setup: Claude Code `claude mcp add --transport http zapier https://mcp.zapier.com/api/v1/connect`; Cursor `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; VS Code and other clients `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; OpenCode `opencode.json` `{ "type": "remote", "url": "https://mcp.zapier.com/api/v1/connect" }`; Terminal auto-installer `npx @zapier/install-zapier`.
  - Setup guides: Claude https://docs.zapier.com/mcp/get-started/connect/claude.md; Claude Code https://docs.zapier.com/mcp/get-started/connect/claude-code.md; ChatGPT https://docs.zapier.com/mcp/get-started/connect/chatgpt.md; Cursor https://docs.zapier.com/mcp/get-started/connect/cursor.md; Codex https://docs.zapier.com/mcp/get-started/connect/codex.md.
  - After sign-in: call `discover_zapier_actions` for `google-analytics-4` and `datadog`, then `enable_zapier_action`. If Google Analytics 4 or Datadog isn't connected in Zapier yet, running an action returns a browser OAuth link for the user.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: once New Metric Post is enabled, call `datadog_new_metric_post`. Each operation below lists its MCP tool name.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "datadog", owner: "me" });

const { data } = await zapier.runAction({
  app: "datadog",
  actionType: "write",
  action: "series_v2",
  connection: connection.id,
  inputs: {
    series__metric: "", // Metric Name
    series__points: "", // Data Point
  },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action datadog write series_v2 \
  --inputs '{"series__metric":"","series__points":""}'
```

## Google Analytics 4

### Identity
Google Analytics 4 is a powerful web analytics platform that provides businesses with deep insights into user behavior and website performance.

- App slug: google-analytics-4
- Operations published here: 6 (1 event, 4 functions, 1 query)

### Authentication
Zapier connects to Google Analytics 4 via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.130.2 and @zapier/zapier-sdk-cli v0.93.2; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection google-analytics-4
```

### Capabilities

#### Events (1)

Events fire when something happens in Google Analytics 4. Use them to start a run.

##### New Conversion Event
Triggers when a new conversion event is created.

- Type: read · Key: `new_conversion_event`
- Requires: nothing
- MCP tool: `google_analytics_4_new_conversion_event` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "google-analytics-4", actionType: "read", action: "new_conversion_event" })`
- CLI: `npx zapier-sdk run-action google-analytics-4 read new_conversion_event`

#### Functions (4)

Functions change something in Google Analytics 4.

##### Create Conversion Event for a Property
Creates a new Conversion Event for a Property.

- Type: write · Key: `conversionEvent`
- Requires: eventName
- MCP tool: `google_analytics_4_create_conversion_event_for_a_p` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-analytics-4", actionType: "write", action: "conversionEvent" })`
- CLI: `npx zapier-sdk run-action google-analytics-4 write conversionEvent`

##### Create Measurement
Creates a new measurement property secret.

- Type: write · Key: `measurement`
- Requires: measurementDisplayName
- MCP tool: `google_analytics_4_create_measurement` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-analytics-4", actionType: "write", action: "measurement" })`
- CLI: `npx zapier-sdk run-action google-analytics-4 write measurement`

##### Run Report for a Property
Run Report for a Property.

- Type: write · Key: `runReport`
- Requires: startDate, endDate, dateName
- Optional: dimensionFilter_dimension, dimensionFilter_comparison, dimensionFilter_matchType, dimensionFilter_caseSensitive, dimensionFilter_dimensionFilterValue, metricFilter_metric, metricFilter_comparison, metricFilter_operation, metricFilter_metricFilterValue, offset, limit, currency, keepEmptyRows, returnPropertyQuota
- MCP tool: `google_analytics_4_run_report_for_a_property` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-analytics-4", actionType: "write", action: "runReport" })`
- CLI: `npx zapier-sdk run-action google-analytics-4 write runReport`

##### Send Measurement Events for an Application
Send Measurement Events for given application.

- Type: write · Key: `sendEvents`
- Requires: nothing
- MCP tool: `google_analytics_4_send_measurement_events_for_an_` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "google-analytics-4", actionType: "write", action: "sendEvents" })`
- CLI: `npx zapier-sdk run-action google-analytics-4 write sendEvents`

#### Queries (1)

Queries read from Google Analytics 4 and return data. They change nothing.

##### Find Conversion
Finds a conversion based on id.

- Type: search · Key: `find_conversion_by_id`
- Requires: nothing
- MCP tool: `google_analytics_4_find_conversion` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "google-analytics-4", actionType: "search", action: "find_conversion_by_id" })`
- CLI: `npx zapier-sdk run-action google-analytics-4 search find_conversion_by_id`

## Datadog

### Identity
Datadog is a service for IT, Operations and Development teams who write and run applications at scale, and want to turn the massive amounts of data produced by their apps, tools and services into actionable insight.

- App slug: datadog
- Operations published here: 1 (1 function)

### Authentication
Zapier connects to Datadog via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.130.2 and @zapier/zapier-sdk-cli v0.93.2; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection datadog
```

### Capabilities

#### Functions (1)

Functions change something in Datadog.

##### New Metric Post
This covers the data that you want to send to Datadog.

- Type: write · Key: `series_v2`
- Requires: series__metric, series__points
- Optional: series__point_time, series__type, series__host, series__tags
- MCP tool: `datadog_new_metric_post` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "datadog", actionType: "write", action: "series_v2" })`
- CLI: `npx zapier-sdk run-action datadog write series_v2`

## Frequently asked questions about automating with Google Analytics 4 and Datadog

### How do I connect Google Analytics 4 with Datadog?

To connect Google Analytics 4 to Datadog, you need to utilize a middleware that fetches data from Google Analytics using their API and then sends this data to Datadog's metrics API. We recommend using custom scripts or third-party integration tools that support both platforms.

### Can I automatically send event data from Google Analytics 4 to Datadog?

Yes, you can set up triggers in a tool like Zapier or through custom scripting that watches for specific events in Google Analytics 4. These triggers can then automate actions that send the event data directly to Datadog.

### What type of data can be sent from Google Analytics 4 to Datadog?

Virtually any data tracked in Google Analytics 4 can be sent to Datadog, including event hits, user properties, and conversion metrics. It's critical to define what specific events or user interactions you want to monitor in both systems beforehand.

### Is manual intervention needed once the integration is set up?

Typically, after the initial setup, no ongoing manual intervention is required. However, you might want to occasionally update or tweak your triggers and actions as your KPIs and business goals evolve.

### What are common troubleshooting steps if the integration is not working?

First, check your API credentials and quotas in both Google Analytics and Datadog accounts. Ensure your scripts or connecting software services are running without errors. Finally, examine any logs for failed triggers or actions potentially caused by exceeded rate limits or incorrect configurations.

### Do we need special permissions for integrating these two platforms?

Yes, having relevant permission levels in both Google Analytics and Datadog is crucial. In GA4, ensure access rights allow API interactions. Similarly, create an API key in Datadog with permissions enabling metric submission.

### Can historical analytics data be transferred from GA4 to Datadog?

While real-time transfer is standard, transferring historical data may require specific batch processing scripts or tools because APIs typically rate-limit large transfers. Verify capabilities of any middleware used for transferring such data.

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Google Analytics 4 integrations: zapier.com/apps/google-analytics-4/integrations.md
- Datadog integrations: zapier.com/apps/datadog/integrations.md
- Full page: zapier.com/apps/google-analytics-4/integrations/datadog
- MCP quickstart (non-OAuth / connection-token clients): docs.zapier.com/mcp/get-started/quickstart.md
- SDK: npmjs.com/package/@zapier/zapier-sdk