B2B UTM builder.
Pick a channel, choose the product or solution, offer type and funnel stage, and the campaign name follows one convention every time.
Free · runs in your browser · nothing uploaded
Five tags, one link
What UTM tags actually do.
UTM tags are short labels added to the end of a link. When someone clicks, your analytics reads the labels and records exactly where the visit came from.
No extra code is needed for GA4 to read them. The five standard tags answer five questions about every visit, and GA4 uses the source and medium to decide which channel the visit belongs to.
The five tags
| Tag | Answers | Example |
|---|---|---|
utm_source | Where did the click come from? | google, facebook, newsletter |
utm_medium | What type of traffic is it? | cpc, paid_social, email |
utm_campaign | Which campaign was it? | spring-sale_202611 |
utm_content | Which ad or link was clicked? | hero-banner, video-a |
utm_term | Which keyword or audience? | running shoes |
Four reasons to tag every link
Why it matters for reporting.
01
Credit goes to the right campaign.
Without tags, a click from an email or WhatsApp message often shows up as Direct, and the campaign that earned it gets no credit.
02
Channels are compared fairly.
One naming convention across every channel means paid, owned and partner traffic line up in the same report.
03
Leads and revenue connect to marketing.
Stored with each lead, UTM tags show which campaign produced customers, not just clicks.
04
Budget follows results.
Clean data shows which ads and messages to scale and which to stop.
From link to report
Tag the link. Then trust the report.
Use the builder
Step 01
Paste the landing page, gated asset page or demo page.
Step 02
Choose the channel, including review sites, partners, events and sales outreach.
Step 03
Build the campaign name from product, offer type, funnel stage, segment, region and date.
Step 04
Copy the link, and make sure your forms pass the UTMs into the CRM.
The naming convention
Pattern{product}_{type}_{stage}_{date}
Exampleanalytics-suite_webinar_tofu_202611
Parts are joined with underscores and words inside a part use hyphens, so you can split the name back into columns in a spreadsheet or Looker Studio. Optional parts are skipped when empty. You can switch the separator under Formatting rules.
Source, medium and GA4 channel
Every channel, mapped to GA4.
The source and medium each preset uses, and the GA4 default channel it reports under. Unassigned means GA4 has no default rule for it; add a custom channel group rule.
| Channel | utm_source | utm_medium | GA4 channel |
|---|---|---|---|
| LinkedIn ads | linkedin | paid_social | Paid Social |
| Facebook ads | facebook | paid_social | Paid Social |
| X (Twitter) ads | twitter | paid_social | Paid Social |
| Google Ads: Search | google | cpc | Paid Search |
| Microsoft Advertising | bing | cpc | Paid Search |
| Google Ads: Performance Max | google | cpc | Paid Search |
| Google Ads: Display | google | display | Display |
| YouTube ads | youtube | cpv | Paid Video |
| ABM or programmatic display | abm-platform | display | Display |
| G2 | g2 | cpc | Paid Other |
| Capterra | capterra | cpc | Paid Other |
| Review profile link (organic) | g2 | referral | Referral |
| Nurture email | nurture | email | |
| Newsletter | newsletter | email | |
| Sales outreach email | sales-outreach | email | |
| LinkedIn company page post | linkedin | social | Organic Social |
| Employee advocacy post | linkedin | social | Organic Social |
| YouTube description | youtube | video | Organic Video |
| Partner co-marketing | partner-name | referral | Referral |
| Content syndication | syndication-vendor | syndication | Unassigned |
| Podcast sponsorship | podcast-name | audio | Audio |
| Webinar platform link | webinar | referral | Referral |
| Event or booth QR (e.g. GITEX) | event-name | qr | Unassigned |
For B2B marketers
Tips that keep the data clean.
01
Capture UTMs in hidden form fields and store them on the contact in HubSpot, Salesforce or your CRM.
GA4 alone can't tell you which campaign became pipeline.
02
Keep sales outreach on its own source.
It's the cleanest way to split marketing-sourced and sales-sourced pipeline.
03
Tag the funnel stage.
It stops a cheap top-of-funnel ebook from being judged against a demo campaign on cost per lead.
04
Use utm_term for job title or matched audience on LinkedIn so you can see which roles convert, not just which ads.
05
Tag employee advocacy links separately from the company page.
Personal profiles usually drive more clicks than brand posts.
Store UTMs with every lead
Get UTM data into your CRM.
GA4 counts visits. Your CRM or database records who became a lead or customer. Unless the UTM tags are saved with each record, the two never meet, and you can't tell which campaign produced which sale. Share this brief with your website developer.
What to ask for
Step 01
Read the UTM tags and ad click IDs from the URL on every page load.
Step 02
Save them in a first-party cookie for 90 days.
Keep a first-touch copy that is never overwritten, and a last-touch copy that updates on each new tagged visit.
Step 03
Ignore visits without UTM tags, so an untagged return visit never wipes the saved values.
Step 04
Add hidden fields for every value to every form: contact, booking, sign-up and checkout.
Step 05
Fill the hidden fields from the cookie when the form is sent.
Step 06
Store each value in its own column on the lead or order record, and map the same fields into the CRM.
Step 07
Test it: open a tagged link, send a form, and check the record shows the right values.
Fields to add to each lead or order
| Field | What it holds |
|---|---|
first_utm_source … first_utm_term | First tagged visit. Set once, never overwritten. |
last_utm_source … last_utm_term | Most recent tagged visit before the form was sent. |
gclid, fbclid, msclkid | Ad click IDs, for offline conversion uploads. |
landing_page | Full URL of the first page seen. |
referrer | The site the visitor came from. |
first_touch_at, last_touch_at | Timestamps of both visits. |
A starting point for the developer
const KEYS=['utm_source','utm_medium','utm_campaign','utm_content','utm_term','gclid','fbclid','msclkid'];
const q=new URLSearchParams(location.search);
const hit={};KEYS.forEach(k=>{if(q.get(k))hit[k]=q.get(k);});
if(Object.keys(hit).length){
hit.landing_page=location.href;hit.referrer=document.referrer;hit.at=new Date().toISOString();
const save=(n,v)=>document.cookie=n+'='+encodeURIComponent(JSON.stringify(v))+';path=/;max-age=7776000;SameSite=Lax';
if(!document.cookie.includes('utm_first='))save('utm_first',hit);
save('utm_last',hit);
}Request: store UTM data with every lead and order
Why: GA4 shows visits. Our database shows leads and sales. Saving the UTM tags with each record tells us which campaign produced each lead and how much revenue it brought in.
Steps:
1. Read the UTM tags and ad click IDs from the URL on every page load.
2. Save them in a first-party cookie for 90 days. Keep a first-touch copy that is never overwritten, and a last-touch copy that updates on each new tagged visit.
3. Ignore visits without UTM tags, so an untagged return visit never wipes the saved values.
4. Add hidden fields for every value to every form: contact, booking, sign-up and checkout.
5. Fill the hidden fields from the cookie when the form is sent.
6. Store each value in its own column on the lead or order record, and map the same fields into the CRM.
7. Test it: open a tagged link, send a form, and check the record shows the right values.
Fields to add:
- first_utm_source … first_utm_term: First tagged visit. Set once, never overwritten.
- last_utm_source … last_utm_term: Most recent tagged visit before the form was sent.
- gclid, fbclid, msclkid: Ad click IDs, for offline conversion uploads.
- landing_page: Full URL of the first page seen.
- referrer: The site the visitor came from.
- first_touch_at, last_touch_at: Timestamps of both visits.
Starting point:
const KEYS=['utm_source','utm_medium','utm_campaign','utm_content','utm_term','gclid','fbclid','msclkid'];
const q=new URLSearchParams(location.search);
const hit={};KEYS.forEach(k=>{if(q.get(k))hit[k]=q.get(k);});
if(Object.keys(hit).length){
hit.landing_page=location.href;hit.referrer=document.referrer;hit.at=new Date().toISOString();
const save=(n,v)=>document.cookie=n+'='+encodeURIComponent(JSON.stringify(v))+';path=/;max-age=7776000;SameSite=Lax';
if(!document.cookie.includes('utm_first='))save('utm_first',hit);
save('utm_last',hit);
}Never put names, emails or phone numbers in UTM tags. Store them only in your own database, under your privacy policy.
The ones that come up most
Common questions.
01How do I get UTM data into HubSpot or Salesforce?
Add hidden fields for each UTM to your forms and fill them from the page URL, or use your CRM's built-in tracking. Store first-touch and last-touch values separately so long sales cycles keep the original source.
02Should LinkedIn paid and organic posts use different UTMs?
Yes. Use medium paid_social for ads and social for company page and employee posts. GA4 then reports them as Paid Social and Organic Social, and you can compare them fairly.
03How do I tag webinars?
Tag the registration links in every promotion channel, with the webinar name in the campaign. Then tag the follow-up and replay emails with the same campaign name so registrations and attendance stay connected.
04How should review sites like G2 and Capterra be tagged?
Use the review site as the source. Use cpc for paid placements and referral for organic profile links. GA4 reports the paid ones as Paid Other, which keeps them out of your search numbers.
05What about content syndication leads?
Syndication vendors usually send leads directly, not website visits. Tag any links in the syndicated asset with the vendor as the source so follow-up visits are attributed correctly.