# UTM Campaign Builder MCP

> UTM Campaign Builder generates flawless marketing tracking links by safely encoding UTM parameters into any base URL. Stop manually building complex links and risking broken Google Analytics routing. This MCP lets your agent handle all the tricky parts of query string management, ensuring every link works perfectly for accurate data attribution.

## Overview
- **Category:** marketing-automation
- **Price:** Free
- **Tags:** utm-parameters, campaign-tracking, link-building, google-analytics, marketing-attribution, url-encoding

## Description

When you're drafting a social media post or an email campaign, your AI client needs to add tracking data—the UTM parameters. The problem is that LLMs are notoriously bad at building these links correctly; they often hallucinate broken query strings, mess up URL encoding for spaces, or drop existing parameters entirely. This ruins your analytics and makes it impossible to track where traffic actually came from. This MCP fixes that whole headache.

It safely merges source, medium, campaign, and other tags into any link you provide, using strict browser-grade encoding every time. Because this MCP is hosted on Vinkius, you connect once through your preferred AI client—whether it's Claude or Cursor—and gain access to the entire catalog of specialized tools, including this one. You just tell your agent what data points you need tracked and let it generate a guaranteed working link.

## Tools

### build_utm_url
Constructs a complete marketing UTM tracking URL by safely encoding all parameters into the base link.

## Prompt Examples

**Prompt:** 
```
Build a tracking URL for `https://vinkius.com/pricing` with source `linkedin` and medium `social`.
```

**Response:** 
```
UTM Campaign URL: Generated successfully.
```

**Prompt:** 
```
Add UTM tracking to this link for our Black Friday email blast.
```

**Response:** 
```
UTM Campaign URL: Generated successfully.
```

**Prompt:** 
```
I have this landing page that already has `?ref=affiliate`. Append the UTM source `facebook` safely.
```

**Response:** 
```
UTM Campaign URL: Appended successfully.
```

## Capabilities

### Generate Encoded Tracking URLs
Provides all necessary base URL, source, medium, and optional campaign tags to build a fully encoded, functional marketing tracking link.

## Use Cases

### Launching an Email Campaign
A marketing manager needs 50 unique links for a newsletter blast, each pointing to a different landing page and requiring specific source/medium tags. The agent uses build_utm_url to process all 50 in minutes, ensuring every single link correctly attributes data to the campaign.

### Running A/B Tests on Ads
A paid media specialist is setting up ad copy and needs links that vary only by source (e.g., 'facebook' vs 'instagram'). They prompt their agent, which uses build_utm_url to safely swap out the source parameter across multiple base URLs for clean testing.

### Updating a Website Funnel
A developer needs to update several pages on a site that already use tracking parameters (like '?ref=affiliate'). They ask their agent to safely append the new 'utm_source' tag using build_utm_url without overwriting the existing affiliate data.

### Preparing for Black Friday
A content creator drafts social posts linking back to a main product page. They use their agent, which leverages build_utm_url, to automatically add 'blackfriday' as the campaign tag and correctly encode all other necessary data points.

## Benefits

- Accuracy: The build_utm_url tool guarantees correct URL encoding, preventing the double-ampersand or broken query strings that break analytics reports.
- Time Savings: Instead of manually building and testing complex links in a spreadsheet, your agent generates perfect URLs instantly based on simple prompts.
- Data Integrity: You ensure every link passes clean data to Google Analytics. No more lost attribution because an LLM messed up the parameters.
- Flexibility: It handles existing query strings alongside new UTM tags, so you can safely append source information without breaking affiliate links already in use.
- Efficiency: Use your agent to generate entire batches of campaign links from a simple list of variables or data points.

## How It Works

The bottom line is you get back a guaranteed working URL that won't break your analytics data.

1. You tell your agent the starting landing page URL and the core tracking details (like the traffic source and platform).
2. The MCP processes these inputs, merging all required UTM tags while applying strict URL encoding to every character.
3. Your agent receives a single, perfectly constructed link ready for use in any campaign or asset.

## Frequently Asked Questions

**How does the UTM Campaign Builder MCP fix broken links?**
It uses strict browser-grade encoding to build the URL. This prevents common errors like double ampersands or improper encoding of spaces that usually break analytics tracking.

**Can I use the build_utm_url tool if my link already has parameters?**
Yes. The tool is designed to safely merge new UTM tags onto existing URLs without overwriting or corrupting any data points that are already present in the base link.

**What kind of platforms work with this MCP?**
Because it generates standard URL parameters, the generated links work anywhere—Google Analytics, Facebook Ads, email marketing services, and more.

**Does UTM Campaign Builder only generate Google Analytics tags?**
No. While optimized for Google Analytics attribution, it handles all core UTM parameters (source, medium, campaign, etc.) required by most major analytics platforms.