SEO Tools

UTM Builder

Live

Build an encoded campaign URL with source, medium, campaign, term, and content parameters while preserving existing URL parts.

About UTM Builder

The UTM Builder creates consistent campaign links for analytics and acquisition reporting. Start with an absolute HTTP or HTTPS destination, then identify the traffic source, marketing medium, and campaign name. Optional term and content fields distinguish paid keywords, creatives, placements, buttons, or link variants. The live preview preserves existing query parameters, inserts encoded UTM values before the fragment, and separates the destination, query, and anchor so the finished link is easy to inspect and copy.

Build a campaign URL

Workspace

Structured calculation

Follow the input-to-result path; the fields below remain the source of every value.

This workspace updates as you edit.

Complete HTTP or HTTPS destination, including any existing query or fragment.

Referrer or platform, such as newsletter, google, linkedin, or partner_name.

Channel type, such as email, social, cpc, display, or referral.

Stable identifier for the promotion, launch, or initiative.

Optional paid-search keyword or audience detail.

Optional creative, placement, button, or link-variant identifier.

Campaign URL

Enter a destination, source, medium, and campaign name.

Campaign URL method

parse absolute URL → preserve existing query → set utm_source, utm_medium, and utm_campaign → optionally set utm_term and utm_content → RFC 3986 percent-encode query → append fragment.

How it works

UTM parameters are ordinary URL query parameters read by analytics platforms when someone follows a tagged link. The builder validates the destination structure, retains existing query values, replaces duplicate UTM keys with the current form values, percent-encodes names and values, and restores any fragment after the query. It does not visit the destination or confirm that analytics is installed.

Practical guide

Create consistently named UTM-tagged URLs for analytics attribution and campaign reporting.

UTM Builder worked example

The page’s example models building links for one source-medium-campaign naming plan. Change one assumption at a time so the effect on campaign url, source and medium remains easy to explain.

Treat the displayed campaign url, source and medium as the result of the example inputs, not as a default recommendation for a different situation.

Assumptions

  • The entered destination url, campaign source and marketing medium describe the same scenario and use the units shown beside each field.
  • The calculation applies the stated method consistently and rounds only for display unless the tool says otherwise.

Limitations

  • UTM parameters are ordinary URL query parameters read by analytics platforms when someone follows a tagged link. The builder validates the destination structure, retains existing query values, replaces duplicate UTM keys with the current form values, percent-encodes names and values, and restores any fragment after the query. It does not visit the destination or confirm that analytics is installed.
  • The result covers the inputs exposed by this tool; omitted context can change a real-world answer.

Common mistakes

  • using spaces, mixed case, or changing labels across the same campaign.
  • Changing destination url without checking the other assumptions can make the comparison misleading.
When to use UTM Builder
Approach Best for Trade-off
UTM Builder A transparent calculation that reports campaign url, source and medium. Accuracy depends on the entered assumptions and the documented method.
advertising-platform auto-tagging when it is supported end to end Situations that need different inputs, verification, or broader context. May take longer, cost more, or produce a result that is not directly comparable.

Examples

Newsletter link with an existing query and anchor

Example input
{
    "base_url": "https://example.com/landing?lang=en#pricing",
    "utm_source": "newsletter",
    "utm_medium": "email",
    "utm_campaign": "spring_sale",
    "utm_term": "",
    "utm_content": "hero_button"
}
Expected result
{
    "url": "https://example.com/landing?lang=en&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale&utm_content=hero_button#pricing",
    "source": "newsletter",
    "medium": "email",
    "campaign": "spring_sale",
    "term": "",
    "content": "hero_button",
    "parameter_count": 4
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Citations & sources

  1. URL builders: Collect campaign data with custom URLs
  2. Tag campaign URLs with UTM parameters

Frequently asked questions

Which UTM fields are required?

Use source, medium, and campaign consistently. Term and content are optional dimensions for paid keywords, creatives, placements, or link variants.

What should I use for source and medium?

Source identifies where traffic originates, such as newsletter or linkedin. Medium identifies the channel class, such as email, social, cpc, or referral. Establish naming rules before launching links so reports do not fragment across capitalization or spelling variants.

What happens when the destination already has a query or fragment?

Existing query parameters are preserved, current UTM keys are set or replaced, and the fragment remains at the end. Campaign parameters placed after a # fragment would not be sent to the server, so their position matters.

Does creating a tagged URL configure analytics?

No. The tool constructs a URL only. Confirm the destination loads, the analytics tag is configured, consent requirements are met, and the campaign values appear in the intended reporting platform.