# UTM link builder

> Build a campaign URL with utm_source, utm_medium, utm_campaign, term and content. Values are tidied to lower case with underscores. Free.

Free tool by Orkosi. Page: https://orkosi.com/tools/utm-builder

Know which newsletter, post or ad sent each visitor. Add the five UTM tags to a link without breaking the parameters it already has.

1. Paste the page address.
2. Fill in source, medium and campaign.
3. Press Generate and copy the tagged link.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `url` | text | yes | Page URL. |
| `source` | text | yes | Source. |
| `medium` | text | yes | Medium. |
| `campaign` | text | yes | Campaign. |
| `term` | text | no | Term. Optional: the paid keyword. |
| `content` | text | no | Content. Optional: which link or ad variant. |

## Example

Input:

```json
{
  "url": "https://example.com/pricing?ref=home",
  "source": "Newsletter",
  "medium": "email",
  "campaign": "Spring Sale",
  "content": "header button"
}
```

Result:

```json
{
  "output": "https://example.com/pricing?ref=home&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale&utm_content=header_button",
  "params": [
    {
      "key": "utm_source",
      "value": "newsletter"
    },
    {
      "key": "utm_medium",
      "value": "email"
    },
    {
      "key": "utm_campaign",
      "value": "spring_sale"
    },
    {
      "key": "utm_content",
      "value": "header_button"
    }
  ],
  "length": 126
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "utm-builder", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/utm-builder/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://example.com/pricing?ref=home","source":"Newsletter","medium":"email","campaign":"Spring Sale","content":"header button"}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**Which UTM tags are required?**

Source (where: newsletter, linkedin), medium (how: email, social, cpc) and campaign (why: spring_sale). Term and content are optional.

**Why are my values changed to lower case?**

Analytics tools treat Email and email as two different sources. Lower case with underscores keeps one row per source.

**Should I tag links inside my own site?**

No. A UTM tag on an internal link starts a new session and overwrites where the visitor really came from.

All free tools: https://orkosi.com/tools.md
