# Hermoso: set_tracking_links: Tracking links · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/set_tracking_links/. 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/) / set_tracking_links

# `set_tracking_links`

Tracking links: setting, or one tagged link

Area: REVENUE ATTRIBUTION · [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

TRACKING LINKS, two jobs in one tool. (1) The brand setting: call with no arguments to read it, enabled:true/false to turn it on or off, campaign for the utm_campaign, domains for more sites that are the brand's own. When on, every link to the brand's OWN site that Hermoso publishes or sends (posts on every channel, scheduled posts, email sequences and new emails) gets utm_source (the channel), utm_medium (social, email or organic), utm_campaign ("hermoso" or yours) and an id in utm_content, so revenue_by_source can tie a sale to the exact post or email. A link that already has utm_ tags, a link to another site, a short link and a link inside the brand's own blog are never changed; Instagram and TikTok captions have no tappable link, so nothing is tagged there; ads already carry their platform's UTM template. Every publish that tagged a link says so in its reply. Brands created from 2026-11-18 get it on by default after one notice; older brands keep links exactly as written until this turns it on. (2) ONE tagged link for a place the user puts it themselves (a bio link, a QR code, a newsletter, an ad made elsewhere): pass url (+ channel, campaign, medium, label, kind) and get it back with Hermoso's tags; a Stripe payment link also gets the id as client_reference_id. That works whether or not the setting is on, on any site; a link already carrying utm_ tags is returned unchanged. Free.

## Parameters

Parameter Type Description

`enabled` `boolean` true to tag links to the brand site, false to publish links exactly as written; omit to read

`campaign` `string` the utm_campaign (for the setting, or for the one link with url); empty string resets the setting to hermoso

`domains` `string[]` more domains that are the brand’s own site, e.g. shop.example.com

`url` `string` ONE link to tag now, https://…; returns the tagged link instead of the setting

`channel` `string` with url: where it will be clicked (instagram_bio, newsletter, qr, facebook …); becomes utm_source

`medium` `string` with url: utm_medium; default social (email for channel email)

`label` `string` with url: what this link is, shown in revenue_by_source

`kind` `"link" | "post" | "email" | "ad"` with url: what carries it; default link

## 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/set_tracking_links`.

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

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_tracking_links","arguments":{}}}`
**CLI**

`hermoso call set_tracking_links --json '{}'`

## 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

- [revenue_by_source](https://hermoso.ai/docs/reference/ads/revenue_by_source/) Revenue by source (posts, ads, emails)

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