# UTM Campaign Builder MCP for AI Agents AI Agent Connect

> UTM Campaign Builder helps your AI agent create perfectly formatted tracking links. It handles the heavy lifting of URL encoding for utm_source, utm_medium, and other parameters, making sure your marketing data actually lands in Google Analytics without breaking the links.

## Overview
- **Category:** marketing-automation
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_a46swue75dLTvItgRHUYOHc38XKO6hdtiPwdmbgr/ai-agent-connect
- **Tags:** utm-parameters, campaign-tracking, link-building, google-analytics, marketing-attribution, url-encoding

## Description

When you ask an AI agent to draft a social media post or an email blast, it is supposed to include a link with tracking. But LLMs often trip up on the technical side. They might double up on question marks, leave spaces in the URL that break the link, or mess up the existing query strings. This creates a mess in your analytics because the data either doesn't show up or gets attributed to the wrong place. This Connector handles that. It takes your base URL and the tracking info you want to add, then builds a clean, browser-ready link every single time. It is the reliable way to handle marketing attribution while using your favorite AI tools. You can find this and thousands of other tools in the Vinkius catalog to build out your full marketing stack.

## Tools

### build_utm_url
Create a tracking-ready URL by providing a base link and UTM parameters like source and medium. It handles all the encoding so the link doesn't break.

## Prompt Examples

**Prompt:** 
```
Build a tracking link for `https://site.com/sale` with source `twitter` and medium `promo`.
```

**Response:** 
```
Here is your tracking link:

`https://site.com/sale?utm_source=twitter&utm_medium=promo`
```

**Prompt:** 
```
Add `utm_source=linkedin` to `https://store.com/item?id=99`.
```

**Response:** 
```
I've updated the link for you:

`https://store.com/item?id=99&utm_source=linkedin`
```

**Prompt:** 
```
Create a link for a summer sale. Source is `email`, medium is `newsletter`, content is `summer_vibe`.
```

**Response:** 
```
Link generated:

`https://site.com/summer?utm_source=email&utm_medium=newsletter&utm_content=summer_vibe`
```

## Capabilities

### Build tracking links
Create complete URLs with all necessary UTM parameters in one go.

### Encode URL parameters
Convert spaces and special characters into browser-safe formats automatically.

### Merge existing query strings
Append new tracking data to links that already have parameters without breaking them.

### Prevent link breakage
Ensure every generated URL points to a valid page instead of a 404 error.

### Standardize campaign data
Apply consistent naming conventions for sources and mediums across all links.

## Use Cases

### Broken links in social posts
An agent drafts a tweet with a broken link because of a space in the utm_term. The Connector fixes this by encoding the space correctly.

### Complex email tracking
A marketer needs to track five different links in one email. The agent uses the Connector to build each one perfectly without messing up the base URL.

### Existing affiliate links
A user has a link with ?ref=affiliate and wants to add a source. The Connector appends the source safely without creating a ?? error.

### Bulk campaign prep
A strategist asks the agent to generate 20 different tracking links for different regions. The Connector handles all 20 in seconds.

## Benefits

- Stop losing attribution data because links were formatted incorrectly or had unencoded spaces.
- Save time on manual link building by letting your agent generate the full UTM string instantly.
- Avoid 404 errors on your landing pages caused by messy query string concatenation.
- Ensure consistent tracking across all channels by using a standardized encoding engine.
- Let your AI agent handle the technical parts of marketing while you focus on the creative strategy.

## How It Works

The bottom line is you get production-ready tracking links without having to manually check every single character.

1. Input your landing page URL along with the source, medium, and any other campaign details.
2. The Connector processes the strings to handle all the messy encoding and merging logic.
3. You get back a single, ready-to-paste link for your marketing materials.

## Frequently Asked Questions

**How does UTM Campaign Builder help my marketing?**
It ensures every link your AI agent creates actually tracks correctly in your analytics. It handles the technical encoding so your data stays clean.

**Will this Connector break my existing links?**
No, it is designed to merge new parameters into existing URLs safely without breaking them or creating double question marks.

**Does it handle URL encoding?**
Yes, it automatically encodes spaces and special characters so your links stay functional across all browsers and social platforms.

**Can I use it for social media posts?**
It is perfect for that. Your agent can generate ready-to-post links for any platform while maintaining your tracking standards.

**Why not just let the AI write the URL?**
LLMs often hallucinate characters like double question marks or leave spaces in the URL. This Connector provides a reliable way to get the correct syntax every time.

**Is it easy to use with my agent?**
You just give the agent the base URL and the tracking info, and it does the rest. It is a simple way to add a professional layer to your AI's output.

**What if the base URL already has parameters?**
The engine safely detects existing parameters and appends the UTMs using `&` instead of `?`, preserving all previous data.

**Does it URL-encode spaces in the campaign name?**
Yes. A campaign name like `Summer Sale` will automatically be encoded to `Summer+Sale` or `Summer%20Sale`.

**Which UTM parameters are mandatory?**
Only `source` and `medium` are mandatory. The engine will throw an error if the agent forgets to provide them.