Fill in the landing page URL and the campaign fields, and the tagged URL is generated as you type. utm_source, utm_medium and utm_campaign are the three fields analytics tools rely on; utm_id, utm_term and utm_content are optional and useful for paid keywords or telling two links in the same email apart.

Existing query parameters on the URL are kept, and any old utm_* values are replaced rather than duplicated. The fragment (#section) stays at the end where it belongs.

UTM values are case-sensitive in most analytics tools, so Email and email show up as separate mediums. Keeping Lowercase values on and replacing spaces with _ or - avoids that kind of split reporting. Settle on a naming convention for sources and mediums with your team and stick to it. The URL is built locally in your browser.