Appearance
A campaign tag belongs to one saved campaign. A message keeps {{campaign.name}}. The campaign that sends the message supplies the value, and a later change is what the next send uses.
This is not the Groups tab. Groups is the older way to bunch campaigns together. That control is now named Campaign groups. See Read the renamed labels.
Before you start
Open the campaign from Lifecycle, Broadcast, or Loops, and stay on Main. The panel is Campaign tags. It is not on a campaign that has not been saved yet.
The line under the title reads “Use these values as {{campaign.name}} in this campaign’s communications. Changes apply to the next send.”
An Analyst sees “Your access is read-only.” Add tag and Save campaign tags are not offered.
An Operator can add and edit a Text tag. Kind HTML is available to an Owner or a Manager. For anyone else that choice stays off. An HTML tag that is already saved stays locked for an Operator: Name, Kind, and Value cannot be changed, and Remove tag is not shown. Add tag still adds a Text tag, and Save campaign tags still saves the Text tags.
Add a tag
- Press Add tag.
- Name. The hint reads “Use lowercase letters, numbers, underscores and dot-separated segments; at most 64 characters.” Under the box the page shows the token, such as
{{campaign.footer}}. - Kind is Text or HTML.
- Value. The box accepts at most 200,000 characters.
- Press Save campaign tags.
Save campaign tags writes only these tags. The Save on the rest of Main does not write them, and this button does not write the rest of Main.
With none yet, the panel reads “No campaign tags yet.”
| What the panel says | When |
|---|---|
| Campaign tags saved. | The save landed, and the panel matches what was saved. |
| Each tag name must be unique in this campaign. | Two rows use the same name. |
| Enter a valid tag name and a value of at most 200,000 characters. | The name does not match the hint, or the value is too long. |
| This campaign changed while you were editing. Reload it before saving these tags. | Someone else saved the campaign first. |
| Reload campaign | Loads the campaign again so the tags can be saved. |
Open History. A change to these tags is a disclosure. Its summary reads “Campaign tags changed”.
Use the token
Type {{campaign.name}} in the communication, or leave it where a template already has it.
Under the fields, every campaign token gets this line: “{{campaign.name}} resolves from the campaign that sends this communication. Without campaign context, it sends as empty.” The name in the token is the one you typed.
A send from a campaign that has no tag by that name sends the token as empty. The braces are not sent. HTML follows the same rules as a global tag: markup only in an email, pop-up, or inbox body, and the value is not scanned for another token.
A queued message reads the campaign’s current tags immediately before the provider is called, the same way it reads a global tag. A message the provider has already accepted is not rewritten. See Use a global tag in a message.
Preview it
On the communication, press Fill in for a real customer. A campaign picker appears beside it. It is only for this preview.
- Search campaigns filters the list.
- Preview campaign lists the campaigns. The empty choice is No campaign selected.
- The line under it reads “Used only for this preview. Each campaign supplies its own tags when sending.” If the list cannot be loaded, it reads “Could not load campaigns.”
With no campaign chosen, the preview reports “Select a campaign to preview {{campaign.name}}; unavailable campaign tags render empty at send time”. With a campaign chosen, a name that campaign does not have is “Unavailable campaign tag: {{campaign.name}}”.