UTM Parameter Builder

Add UTM parameters to a URL to build a marketing campaign tracking link.

Category: Dev Tools

When to use?

Use it to make UTM links so Google Analytics can distinguish traffic from channels like email newsletters, social ads, and banners.

How to use

  • Enter the base URL.
  • Enter utm_source, utm_medium, and utm_campaign.
  • Optionally enter utm_term and utm_content.
  • Copy the generated UTM link.

Input Explanation

utm_source: traffic source (e.g. google, newsletter); utm_medium: marketing medium (e.g. cpc, email); utm_campaign: campaign name (e.g. spring_sale).

Calculation Basis

It uses URLSearchParams to append ?utm_source=...&utm_medium=... to the base URL and safely URL-encodes the values for the final tracking address.

Usage Examples

  • Track email campaigns - Add UTM to newsletter links to analyze traffic sources.
  • Track social ads - Append UTM to social ad links to measure performance in GA.
  • Quick pre-deploy check - Check inputs and output to reduce errors before dev/ops work.

Examples

  • https://example.com?utm_source=newsletter&utm_medium=email&utm_campaign=may_promo
  • Append utm_source/medium/campaign to a social ad link for a tracking URL

Cautions

  • Generated output is for reference; test carefully before production use.
  • Specific web-standard specs or framework-only syntax may cause compatibility issues.

Guides

What UTM parameters are

UTM parameters are appended to a URL to track campaign traffic. source, medium, and campaign are required; term and content are optional.

GA4 integration

Use the UTM URL in ads, social, and email so Google Analytics can analyze campaign traffic and conversions. Use hyphens or underscores instead of spaces in values.

FAQ

What are UTM parameters?

Parameters appended to a URL so analytics tools like Google Analytics can track the traffic source.

Which are required?

utm_source, utm_medium, and utm_campaign are the main parameters.

Where do I use UTM links?

On newsletter/ad/social links so analytics can break down performance by source.

Do UTM parameters hurt SEO?

They are fine for ad/campaign tracking. Avoid adding them to canonical pages meant for search indexing.

Related Tools

  • JSON Formatter - Beautify or minify JSON strings instantly and check for validity errors.
  • UUID Generator - Generate up to 20 cryptographically secure UUID v4 values at once.
  • Password Generator - Generate secure random passwords in the browser by choosing length, character set, and count.
  • JWT Decoder - Decode a JWT header and payload to view the JSON and key claims.
  • Regex Tester - Enter a regex pattern to see matches in text in real time.
  • QR Code Generator - Convert text or a URL into a QR code and download it as an image.