UTM Campaign URL Builder
Build a UTM-tagged campaign URL with validated parameters.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
Built a campaign URL with 3 parameter(s) and 0 finding(s).
How it works
- Read the landing page and the UTM parameter values.
- Validated the base URL and the required source, medium and campaign values.
- Percent-encoded every value and merged the parameters into the existing query.
- utm_source, utm_medium and utm_campaign are required by common analytics tools.
- Existing query parameters and the fragment are preserved.
Methodology
- Parse the landing page with the URL API so the path, query and fragment are handled correctly.
- Set each UTM parameter with URLSearchParams, which percent-encodes the value.
- Audit the required fields, case, spacing and any pre-existing tracking parameter.
Usage
- Enter the landing page URL, including https://.
- Enter the campaign source, medium and name (the required UTM parameters).
- Add an optional term, content or custom key=value parameters.
- Build the URL and copy it.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
Newsletter launch
{
"baseUrl": "https://gampangin.example/page/",
"source": "newsletter",
"medium": "email",
"campaign": "spring-launch",
"term": "",
"content": "",
"extra": ""
}Paid social with an ad variant
{
"baseUrl": "https://gampangin.example/tools/json-formatter/?ref=nav",
"source": "linkedin",
"medium": "social",
"campaign": "tool-launch",
"term": "json formatter",
"content": "carousel-a",
"extra": "audience=developers"
}Limitations
UTM parameters and privacy
UTM parameters describe where a visit came from. They are added to the URL and are visible to the destination site; the builder runs entirely in your browser and sends nothing.
Keep campaign values lower-case and stable so reports group correctly.
Frequently asked questions
- Which UTM parameters are required?
- The common analytics convention requires utm_source, utm_medium and utm_campaign. utm_term and utm_content are optional and identify paid keywords or an ad variant.
- Will the builder change my existing query string?
- No. Existing parameters and the fragment are preserved; a supplied UTM value replaces an existing one with the same key rather than duplicating it.
Sources
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.