UTM Builder

Add campaign tags to an existing link while preserving its ordinary query parameters and fragment.

Add campaign tags to an existing link while preserving its ordinary query parameters and fragment.

How to use

  1. Start with the sample URL, which already contains lang=en, an old utm_source and #faq.
  2. Set the source to newsletter, the medium to email and the campaign to spring launch, then generate the link.
  3. Check that newsletter replaces the old source and the campaign space becomes %20.

Worked example

Input

https://example.com/guide?lang=en&utm_source=old#faq
utm_source: newsletter
utm_medium: email
utm_campaign: spring launch

Expected result

https://example.com/guide?lang=en&utm_source=newsletter&utm_medium=email&utm_campaign=spring%20launch#faq

Check the result

The resulting URL should keep lang=en and end with #faq.

Continue with another guide

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies