Home › Developer Tools › UTM Campaign URL Builder

UTM Campaign URL Builder

Build trackable campaign links for Google Analytics in seconds. Pick a channel preset, fill in the campaign, and copy a clean URL (or a QR code for print). Existing query parameters and #anchors are kept in the right place.

Last updated:

Presets

Where the traffic comes from.

The marketing channel.

Promotion, product or slogan.

Optional: ID for cost data import.

Optional: paid search keyword.

Optional: which ad or link was clicked.

Campaign URL
Open link
Generating QR code…
QR code

Scanning it opens the tagged link, so print and poster traffic shows up in your reports. Use utm_medium such as print or qr.

Recent links
    Advertisement
    Advertisement

    How to use the UTM Campaign URL Builder

    1. Paste the page URL you want to promote into Website URL.
    2. Pick a preset such as Facebook or Email newsletter, and choose Paid or Organic, to fill in the source and medium.
    3. Name the campaign and, if you need them, add the term (keyword), content (ad or link variant) and campaign ID.
    4. Copy the URL or download the QR code. The link is saved in your recent-links history.
    5. Check an existing link by switching to Parse URL and pasting it to see every UTM value decoded.

    The six UTM parameters

    ParameterAnswersExamplesGA4 dimension
    utm_sourceWhich site, platform or list sent the visit?google, facebook, newsletter, partner_blogSession source
    utm_mediumWhich type of channel?cpc, paid_social, social, email, display, affiliate, qrSession medium
    utm_campaignWhich campaign or promotion?spring_sale_2026, product_launchSession campaign
    utm_idWhich campaign ID (for cost data import)?sp26_01Session campaign ID
    utm_termWhich paid keyword?trail running shoesSession manual term
    utm_contentWhich ad, link or creative was clicked?hero_banner, footer_link, video_ad_aSession manual ad content

    Source and medium values that land in the right GA4 channel

    GA4's default channel groups are calculated from source and medium. These combinations follow Google's rules:

    Channel in GA4utm_sourceutm_medium
    Paid Searchgoogle, bingcpc or ppc
    Paid Socialfacebook, instagram, linkedin, twitter, tiktokpaid_social (any medium containing "cp" or starting with "paid")
    Organic Socialfacebook, instagram, linkedin, twitter, tiktoksocial
    Emailnewsletter, mailchimp, …email
    Paid Video / Organic Videoyoutube, vimeopaid_video / video
    Displayany ad networkdisplay, banner, cpm
    Affiliatespartner nameaffiliate

    A combination GA4 does not recognise is reported as "Unassigned", so stick to a short list of agreed values across your team.

    Worked example

    Starting URL: https://www.example.com/spring-sale?ref=nav#offers. With source newsletter, medium email, campaign Spring Sale 2026 and content hero banner, lowercase on and spaces replaced with underscores, the result is:

    https://www.example.com/spring-sale?ref=nav&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale_2026&utm_content=hero_banner#offers

    The existing ref=nav parameter stays, the new tags are joined with &, and the #offers anchor stays at the very end, where browsers expect it.

    Naming conventions that keep reports clean

    • Use lowercase only and one separator style (underscores or hyphens) everywhere.
    • Keep a shared spreadsheet of approved sources, mediums and campaign names.
    • Put the date or quarter in the campaign name (black_friday_2026) so yearly campaigns do not merge.
    • Use utm_content for A/B tests: same campaign, different creative.
    • Never tag internal links between pages of your own site.

    Frequently asked questions

    What are UTM parameters?

    UTM parameters are tags added to the end of a link (after the ?) that tell analytics tools where a visit came from. Google Analytics reads utm_source, utm_medium, utm_campaign, utm_term, utm_content and utm_id and shows them as the session's source, medium, campaign and so on.

    Which UTM parameters are required?

    Google Analytics needs utm_source to record a campaign, and you should always add utm_medium and utm_campaign too, because GA4's default channel groups (Paid Social, Email, Organic Video…) are worked out from source and medium. utm_term, utm_content and utm_id are optional.

    Should UTM values be lowercase?

    Yes, as a rule. UTM values are case-sensitive, so Facebook, facebook and FACEBOOK appear as three different sources in your reports. The Lowercase option keeps them consistent, and replacing spaces with underscores or hyphens keeps links readable.

    Can I add UTM tags to a URL that already has parameters?

    Yes. The builder keeps the existing query string (for example ?id=42) and appends the UTM tags with &. If the link has a #fragment, the tags are inserted before it, because anything after # is not sent to the server and would be ignored by analytics.

    Should I use UTM links on my own website?

    No. Use UTM tags only on links that point to your site from somewhere else, such as ads, emails, social posts and QR codes. Tagging internal links starts a new session with the wrong source and breaks your attribution.

    What medium should I use for paid social ads?

    Use a medium that GA4 classifies as paid, such as paid_social or cpc, together with a social source like facebook or linkedin. Organic posts should use the medium social. The presets on this page follow these conventions.

    Is my data sent anywhere?

    No. Links, QR codes and history are created in your browser. History is stored only in this browser's local storage.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    QR Code GeneratorMake QR codes for links, Wi-Fi, email and more.Deep Link GeneratorCreate links that open directly in apps.Meta Tag GeneratorCreate SEO, Open Graph and X meta tags with live previews.Open Graph PreviewPaste OG tags and preview how links look on Facebook, X and LinkedIn.ACoS CalculatorCalculate ACoS, ROAS, break-even ACoS and target ACoS from ad spend, sales and margin.Affiliate Commission CalculatorEstimate affiliate income, EPC and RPM from traffic, CTR, conversion rate, AOV and commission.Bulk QR Code GeneratorTurn a list or CSV of links into hundreds of QR codes: ZIP of PNG/SVG or a printable PDF sheet.Bulk URL OpenerOpen a list of URLs in new tabs at once or in batches, with cleanup, dedupe and delay.Privacy Policy GeneratorCreate a privacy policy for your website or app with CCPA, CalOPPA, COPPA and AdSense sections.Robots.txt GeneratorBuild a robots.txt file with rules, sitemap lines and AI-bot blocking presets.Sitemap GeneratorTurn a list of URLs into a valid XML sitemap file.Hreflang Tag GeneratorCreate hreflang tags, sitemap entries and Link headers for every language and region, validated.Content Security Policy GeneratorBuild a CSP header or meta tag with nonces, hashes, presets and report-only mode.Meta Tag AnalyzerPaste page HTML to audit title, description, canonical, robots, Open Graph and hreflang tags.Robots.txt TesterTest whether a URL is allowed or blocked by robots.txt for Googlebot and other crawlers.Sitemap URL ExtractorExtract every URL from a sitemap.xml or sitemap index, validate it and export to CSV or TXT.Cookie Consent Banner GeneratorDesign a cookie banner with accept, reject and settings buttons and copy the HTML/CSS/JS.FAQ Schema GeneratorTurn questions and answers into FAQPage JSON-LD markup with validation and a preview.Google Review Link GeneratorTurn a Google Place ID into a direct review link, QR code and printable review card.Keyword Suggestion ToolTurn one seed keyword into hundreds of Google and YouTube autocomplete keyword ideas.Local Business Schema GeneratorCreate LocalBusiness JSON-LD with address, geo, opening hours, holiday hours and sameAs links.Structured Data ValidatorCheck JSON-LD, microdata and RDFa against schema.org and Google rich result requirements.Terms and Conditions GeneratorCreate terms of service for a website, store, SaaS or app, with payments and governing law.Breadcrumb Schema GeneratorBuild BreadcrumbList JSON-LD plus the matching HTML breadcrumb from names and URLs.Cookie Policy GeneratorCreate a cookie policy with a ready cookie table for Google Analytics, AdSense, Meta Pixel and more.Disclaimer GeneratorWrite a website disclaimer for affiliate, health, finance or blog sites, with short post notices.Keyword CombinerCombine up to 4 keyword lists into every combination in broad, phrase and exact match.Long Tail Keyword GeneratorTurn a seed keyword into long-tail keywords with best, how to, near me, year and for X modifiers.On-Page SEO CheckerPaste page HTML and a keyword to audit title, meta, headings, alt text and keyword use.App Privacy Policy GeneratorCreate a privacy policy for your iOS or Android app from its SDKs, permissions and data.URL Tracking RemoverStrip utm, fbclid, gclid and other tracking parameters from one link or hundreds at once.YouTube Keyword ToolFind YouTube search suggestions for a video topic with A-Z expansion and copy them as tags.
    See all 28 SEO & Marketing Tools →