# Hermoso: manage_analytics_channel_group · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/manage_analytics_channel_group/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / manage_analytics_channel_group

# `manage_analytics_channel_group`

GA4 channel groups destructive

Area: GA4 CHANNEL GROUPS + CALCULATED METRICS · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

HOW GA4 DECIDES WHICH BUCKET A CLICK LANDS IN, which is the number an ad studio is judged on and the answer to "why is my campaign showing as Unassigned". action:'list' reads every group with its channels in the order GA4 tests them, including Google's own Default channel group — read that first, because a campaign landing in the wrong channel is a rule that does not match rather than missing data. 'create' authors your own group, 'update' changes one, 'delete' removes one (confirm-gated). AUTHORING: `channels` is an ordered list, each with a name and its conditions, and GA4 STOPS AT THE FIRST RULE THAT MATCHES — so a broad rule above a narrow one silently swallows it. A condition is {fieldName, matchType, value} or {fieldName, values:[…]} for a list, plus not:true to invert; an entry that is itself an ARRAY of conditions is OR'ed, and separate entries are AND'ed. THE FIELD NAMES ARE NOT THE REPORT DIMENSIONS: use eachScopeSource, eachScopeMedium, eachScopeCampaignName, eachScopeCampaignId, eachScopeSourcePlatform or eachScopeDefaultChannelGroup — sessionSource, medium and the rest are real GA4 dimensions that Google REFUSES here, and its refusal does not say what to use instead. `primary:true` makes the group the one every report is bucketed by AND unsets whichever group was primary before. Google's own Default channel group cannot be edited and is refused by name. An update REPLACES the whole rule set. Free.

## Parameters

Parameter Type Description

`property` required `string` NUMERIC GA4 property id, from list_analytics_properties

`action` `"list" | "create" | "update" | "delete"` defaults to 'list'

`displayName` `string` the group name shown in GA4, max 80 characters. Required to create; may also name an existing group for update/delete

`description` `string` max 256 characters

`channels` `object[]` ordered list of {name, conditions:[…]}. Required to create. On update it REPLACES every channel, so send the ones you want to keep

`primary` `boolean` make this the group reports are bucketed by. It unsets the previous primary group, changing what every report in the property shows

`channelGroupId` `string` for update and delete — from action:'list', and unambiguous where a name is not

`confirm` `boolean` must be true to actually delete

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/manage_analytics_channel_group`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"manage_analytics_channel_group","arguments":{"property":"<string>"}}}`
**CLI**

`hermoso call manage_analytics_channel_group --json '{"property":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [manage_analytics_calculated_metric](https://hermoso.ai/docs/reference/ads/manage_analytics_calculated_metric/) GA4 calculated metrics

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
