Salesforce Campaign Naming Conventions That Match Your UTMs
Last updated
Build the Salesforce campaign name and the UTM values from the same governed fields, in one step. Then put the Salesforce Campaign ID in the URL, as utm_id or a custom parameter. The names match because one set of choices produced both, and your CRM and analytics reports join on an ID that survives any rename.
Two steps make two spellings. One step makes one.
TL;DR
- The common process, an intake form that names the Salesforce campaigns and a later step where someone types UTMs to match, produces two spellings of every campaign. Reports can’t join them.
- Model the campaign as fields with allowed values. Concatenate those fields into the Salesforce parent and child names and into the UTM values, so nothing gets typed twice.
- Carry an ID in the URL.
utm_idlands in GA4’s Manual campaign ID dimension with no setup; a custom parameter works too, but you capture it yourself.- Use the 18-character Salesforce Campaign ID and exempt it from your lowercase rule. The 15-character form is case-sensitive.
- Map each level of the Salesforce campaign hierarchy (up to five) to a cut in your field list, so a parent name is always the start of its children’s names.
- Names are labels and may change. IDs are keys and never do.
Two Steps, Two Spellings
B2B marketing ops teams describe the same campaign process to us over and over. It has two steps, owned by different people.
Step one is intake. A product marketer or program owner fills in a request: product line, initiative, dates, the channels they plan to use. The form, or the spreadsheet behind it, produces a parent Salesforce campaign name and a child name for each channel. Someone in ops creates those campaigns in Salesforce.
Step two happens later, usually in another sheet. Whoever builds the links reads the campaign names off the intake output and types UTM values that are supposed to match. Sometimes the parent name goes into utm_campaign and the child name gets squeezed into utm_content. Sometimes the Campaign ID is copied into the URL by hand. Sometimes nothing connects the two at all.
Every handoff in step two is retyping. Retyping is where drift starts.
Here’s how it plays out. The intake output says Renewal Push | Data Platform | 2026-12. The first link builder types renewal-push_dataplatform_dec26, because that’s how last quarter’s links looked. A month later a second builder types renewal_push-data_platform-2026_12, which is what the convention asks for. GA4 now reports two campaigns. Salesforce has one. Nobody can say which GA4 row belongs to the Salesforce record without a person reading both and guessing.
Call it the two-spelling problem: one campaign, named once for the CRM and once for the URL, by different people on different days. A report can’t join on a name that exists in two spellings. And the lookup sheet someone builds to map one to the other is just a third spelling in waiting.
It gets worse downstream. Lead source automation that branches on utm_campaign, a Flow that assigns campaign membership, a warehouse join from GA4 sessions to opportunities: each assumes the value arriving from the URL matches the value in Salesforce. None of them can tell a typo from a new campaign.
Many conventions also keep a free-text slot somewhere in the campaign name, usually a compromise so one team could keep a label of its own. Look at your variants. Most of them live in that slot.
One Set of Fields, Two Outputs
Fix the order of operations. Define the campaign once, as fields, and generate both outputs from them.
A campaign is a handful of decisions: which initiative, which product, which month, which channel, which platform, which audience. Give each decision its own field and a picklist of allowed values. Every option carries a readable label for people and a code for URLs.
| Field | Label (Salesforce name) | Code (UTM value) | Lands in |
|---|---|---|---|
| Initiative | Renewal Push | renewal_push | utm_campaign, segment 1 |
| Product | Data Platform | data_platform | utm_campaign, segment 2 |
| Month | 2026-12 | 2026_12 | utm_campaign, segment 3 |
| Channel | Paid Social | paid_social | utm_medium |
| Platform | linkedin | utm_source | |
| Audience | Enterprise, or All | enterprise, or _na_ | utm_content |
Concatenate the first three labels and you have the parent campaign name. Add the next three and you have the child:
Parent: Renewal Push | Data Platform | 2026-12
Child: Renewal Push | Data Platform | 2026-12 | Paid Social | LinkedIn | Enterprise
The same six choices produce the UTM values for every link in that child campaign:
utm_campaign=renewal_push-data_platform-2026_12
utm_medium=paid_social
utm_source=linkedin
utm_content=enterprise
Nobody retyped anything. The parent name is the first three segments of the child name, utm_campaign holds the parent’s three codes, and the channel segments land in medium and source, where GA4’s channel grouping expects them.
A few rules keep the mapping honest:
- Codes follow the URL convention: lowercase, underscores inside a value, hyphens between segments. Our UTM naming conventions guide has the reasoning.
- Fill every position. A campaign with no audience split still gets a value,
_na_in the URL and “All” in Salesforce, so segments never shift. - The label-to-code mapping lives in the picklist. Anyone can go from a Salesforce name to a URL value and back without asking the person who built the sheet.
- Salesforce caps Campaign Name at 80 characters. The child name above is 76. Add up the longest label in each picklist before you bolt on a seventh segment.
Should the Salesforce name use labels or codes? We lean toward labels. Sales reps scroll campaign lists and read them in reports, and nobody enjoys parsing underscores in a CRM. If your Salesforce users already work happily with coded names, use the code in both places. Either way both outputs come from one set of fields, so it’s a display choice made wherever the Salesforce name gets assembled, and you can change your mind later without touching the data.
Put the Campaign ID in the URL
Matching names are necessary. They still don’t make a join key, because names change (more on that below). The join key should be an ID.
You have two places to put it.
utm_id. GA4 reads it natively. Google’s URL builder documentation defines it as the campaign ID, used to identify a specific campaign or promotion, and GA4 reports it in the Manual campaign ID dimension, alongside Session and First user versions. Nothing to configure. Google also tells you to use the same IDs you use when uploading campaign data, which matters if you import costs. For GA4’s other extra parameters, see our guide to utm_source_platform.
A custom parameter, such as sfcid. GA4 doesn’t recognize it, so you capture it yourself: read it from the page URL in your tag manager, send it as an event parameter, and register an event-scoped custom dimension. It only appears on events that carry it, so a key event later in the session won’t have it unless you persist the value. More work, and it leaves utm_id free.
Pick with one question. Does utm_id already hold something else?
If you don’t import cost data keyed on ad platform campaign IDs, put the Salesforce Campaign ID in utm_id. If you do, give Salesforce its own parameter. One parameter meaning two things in two channels is the two-spelling problem again, moved to a new column.
Which campaign’s ID goes in? The child’s. It’s the most specific record, it’s the one a lead should join as a member, and Salesforce rolls child numbers up to the parent anyway. Parent-level analysis in GA4 already comes from the utm_campaign segments.
The finished link, with an illustrative ID:
https://www.example.com/webinars/renewal/?utm_source=linkedin&utm_medium=paid_social&utm_campaign=renewal_push-data_platform-2026_12&utm_content=enterprise&utm_id=701Hs00000AbCdEIAV
Get the ID Format Right
Salesforce record IDs come in two forms. The 15-character ID is case-sensitive: two IDs that differ only in letter case point at different records. The 18-character ID appends three characters that encode the case of the first fifteen, so it survives tools that ignore case. Salesforce itself warns against using 15-character IDs in applications that compare text case-insensitively. Campaign IDs start with the prefix 701.
Two consequences follow.
First, exempt the ID from your lowercase rule. It is the one value in the URL that keeps its capitals. Lowercase a 15-character ID and you have either a different record’s ID or no record at all.
Second, use the 18-character form everywhere: in the URL, in the sheet, in the warehouse. Spreadsheets and plenty of databases compare text without regard to case, which is exactly the situation the extra three characters exist for.
Then validate it on the way in. A pattern such as ^701[A-Za-z0-9]{15}$ refuses a truncated paste or an Opportunity ID copied from the wrong tab.
When the Link Ships Before the Campaign Exists
A Salesforce ID doesn’t exist until the record does. If campaign creation lags intake by days and links have to go out sooner, carry your own campaign code instead.
Assign the code at intake, following the URL rules (cmp_004812, say). Store it on the Salesforce campaign in a custom text field with the External ID attribute, which Salesforce provides for referencing an ID from another system, and mark that field Unique so no two campaigns can share a code. Your Flow matches on that field in place of the record ID.
One rule for the code: never build it from name segments. A code made of renewal_push and data_platform changes the day someone renames the initiative, and a key that changes isn’t a key.
Capture the ID in Salesforce
Getting UTM values from a landing page into Lead records is its own project: a persistence script, hidden form fields, first-touch and last-touch field sets, and the lead conversion mapping that everyone forgets. We covered it step by step in Salesforce UTM capture and lead source attribution. Treat utm_id as one more parameter in that setup: add it to the list the script persists, create first-touch and last-touch fields for it on Lead and Contact, and map both on conversion.
What changes is what you can do with the value once it arrives. A name only lets you group rows in a report. An ID lets you connect records.
A record-triggered Flow on Lead reads the captured ID, finds the Campaign with that ID (or that External ID), and adds the lead as a Campaign Member. When nothing matches, write the value to an exception field your ops team reviews weekly. A lookup that fails without telling anyone is how a campaign ends up with zero members and a very confused program owner.
Membership is what campaign influence reads. Salesforce’s customizable campaign influence scans active campaigns for members who also hold a contact role on an open opportunity. The default model, Primary Campaign Source, gives 100 percent of the influence to the campaign in the opportunity’s Primary Campaign Source field. Two details bite: only active campaigns are scanned, and influence records stop being created once an opportunity closes, won or lost. Keep child campaigns active for as long as their links are live.
For the wider CRM plumbing, the integration chapter of our marketing taxonomy guide walks through the options.
Parent and Child Campaigns Are Field Boundaries
Salesforce lets you link campaigns into a hierarchy. An admin adds the Parent Campaign field to campaign records, and users pick a parent on each child. A hierarchy supports up to five levels. Metrics from child campaigns roll up to the parent, and a parent’s statistics aggregate all of its children regardless of the current user’s sharing settings.
Map each level to a cut in your field list:
| Hierarchy level | Fields | Example name |
|---|---|---|
| Parent | Initiative, Product, Month | Renewal Push | Data Platform | 2026-12 |
| Child | Parent fields plus Channel, Platform, Audience | Renewal Push | Data Platform | 2026-12 | Paid Social | LinkedIn | Enterprise |
That gives you a rule you can check with a formula: every child’s name starts with its parent’s name. A child filed under the wrong parent disagrees with itself, and a report can flag it.
Two levels cover most B2B programs. Add a third when a program spans quarters and you want quarter totals between the program and its channels. Five is the ceiling, and a hierarchy that deep usually means someone is using campaigns as folders.
Decide the levels before the first campaign goes out. Inserting a segment later shifts every position after it, so names built before the change and names built after it no longer parse the same way, and positional parsing breaks without any error to warn you. The taxonomy structures chapter covers why position is load-bearing.
The teams that run this well share an instinct: define the parent once, upstream, and give everyone downstream only choices that already belong to it. A link builder never invents a campaign. They pick one.
Rename the Label, Keep the Key
Names are for people, and people rename things. A product gets rebranded. An initiative gets a better title halfway through the quarter. Someone fixes a typo. Salesforce lets you edit a campaign’s name whenever you like, and the record ID doesn’t move.
So here’s the rule we’d tattoo on the intake form: never join on a name.
Picture the rebrand without it. Mid-December, Data Platform becomes Data Cloud. Someone renames the Salesforce campaigns and helpfully updates utm_campaign on the links that haven’t gone out yet. GA4 now shows renewal_push-data_platform-2026_12 stopping on the 14th and renewal_push-data_cloud-2026_12 starting from nothing on the 15th. The name-matching Flow stops attaching leads from every link already out there, because their utm_campaign no longer matches a campaign name. The quarterly review spends twenty minutes arguing about whether the program slumped.
With the ID in the URL, the same rename costs nothing. Every link before and after carries the same utm_id, and every join still lands.
What that means in practice:
- Edit Salesforce campaign names freely. They are labels.
- Leave UTM values on live links alone. Sent emails and printed QR codes can’t be recalled, and a mid-flight change splits one campaign into two rows. If a destination has to change, change it behind a short link.
- Relabel a picklist option when the display name changes, and keep its code. Change a code only when you mean a new value from here forward.
- Never reuse an ID or a campaign code, even for a campaign that looks identical to last year’s. Last year’s leads are still attached to the old one.
How This Looks in Terminus
Terminus, the marketing taxonomy governance platform, turns a naming convention into fields and rules that are enforced as people type. The process above maps onto it directly.
The intake form becomes a governance model. Initiative, Product, Month, Channel, Platform and Audience are dropdown fields drawing from picklists you control. Hierarchical picklists let a parent choice narrow the child options, so picking Paid Social offers only paid social platforms. Concatenated names assemble utm_campaign from those fields’ codes, with uniqueness checked so the same campaign can’t be created twice. The API and connector payloads carry every dropdown’s code and its label, so whatever creates the Salesforce campaign can build the labeled name from the same choices.
Requests arrive through the builders. A program owner uses the Form builder for one campaign; ops uses the Grid builder for a quarter’s worth. On Business, approval workflows put a review step between the request and the permanent record, so nothing becomes a campaign until someone signs off. Model changes happen in a draft and go live for everyone when you publish.
Salesforce stays yours. Terminus does not create Salesforce campaigns. Whatever creates them works from approved records: a script calling the API or, on Business, outbound connectors that send approved records to your own systems by webhook, where your automation takes over. A person working from a CSV export can do it too, though the export carries dropdown codes only, which suits coded Salesforce names.
The ID comes back through a validated field. Add a text field that keeps uppercase, checks the value against the 701 pattern above, and requires uniqueness. Once the Campaign ID exists, adding it is an edit to the approved record, made in the builder like any other change. The CSV round trip brings a batch of IDs back in one pass, and the API applies the same validation as the form.
Link builders pick instead of type. On Business, automated picklists turn approved campaigns into the Campaign dropdown on every link-building form. Short links on your custom domains and QR codes come from the same records, and click analytics group clicks by the governed fields as they were recorded at click time.
To see the shape before building your own, browse the template library or try the no-signup playground. The 21-day trial needs no credit card.
Start With the Next Campaign
Don’t migrate history first. Take the next campaign that comes through intake, write down the fields its name is made of, and build its Salesforce names and its UTM values from those fields in one sitting. Put the child Campaign ID in utm_id. Add one parameter to your capture script and one Flow.
Then check the join a month later. If every lead from those links sits in the right child campaign, do the next one the same way.
FAQ
Should the Salesforce campaign name and utm_campaign be identical?
They should come from the same fields, but they don’t need to look the same. A common split is readable labels in Salesforce (Renewal Push | Data Platform | 2026-12) and lowercase codes in the URL (renewal_push-data_platform-2026_12). What matters is that the picklist holds the mapping, so every label has exactly one code.
Should I use utm_id or a custom parameter for the Salesforce Campaign ID?
Use utm_id unless it already carries something else. GA4 reports utm_id in its Manual campaign ID dimension with no setup. If you already use utm_id for cost data import keyed on ad platform IDs, give the Salesforce ID its own custom parameter, register it as an event-scoped custom dimension in GA4, and persist it if you need it on later events.
Should I use the 15-character or 18-character Campaign ID?
The 18-character ID. The 15-character form is case-sensitive, so any tool that compares text case-insensitively can confuse two different records. The 18-character form adds three characters that encode the case, which makes it safe in spreadsheets and warehouses. Either way, never lowercase it.
Which campaign’s ID goes in the URL, the parent or the child?
The child’s. Leads should join the most specific campaign as members, and Salesforce rolls child campaign metrics up to the parent automatically. The parent is still visible in GA4 through the segments of utm_campaign.
How many levels can a Salesforce campaign hierarchy have?
Up to five. An admin has to add the Parent Campaign field to campaign records first. Most B2B programs need two levels, program and channel, and add a third only when a program spans several quarters.
Does putting the Campaign ID in the URL make campaign influence work?
Not on its own. Campaign influence reads campaign membership, so you still need to capture the ID on the lead and add the lead to the matching campaign, typically with a record-triggered Flow. Influence only scans active campaigns, and only for open opportunities.
What if links have to go live before the Salesforce campaign exists?
Carry your own campaign code in the URL instead of the Salesforce ID. Assign it at intake, store it on the Salesforce campaign in a custom field with the External ID and Unique attributes, and match on that field. Never build the code from name segments that could be renamed.
Can I rename a Salesforce campaign after its links are live?
Yes. The record ID doesn’t change when the name does, so joins on the ID keep working. Don’t change the UTM values on live links to match the new name, though. That splits one campaign into two rows in GA4.
Every account starts with a 21-day trial, no credit card required.