Appearance
A global tag is one value for the whole brand. A message keeps the token {{global.name}}. The value is read when the message is about to be handed to a provider, so a change reaches a message that is still queued.
Before you start
Open Tools, then Data, then Global tags. The address is /tools/data/global-tags. The title is Global tags. The menu line reads “Reusable brand values resolved when a message is sent.”
An Owner, a Manager, or an Operator can add and edit a tag, including one whose Kind is HTML. An Analyst opens a row with View. The fields stay as they are, and New global tag, Save, and Delete are not offered.
Add a tag
- Press New global tag.
- Name is required. Use lowercase letters, numbers, underscores, and dots between segments, at most 64 characters. The list shows the token, such as
{{global.footer}}. - Kind is Text or HTML.
- For Text, the box is Value. For HTML, the box is HTML value.
- Description is optional.
- Press Save.
With no tags, the page reads “No global tags yet.” Search global tags filters the list.
A value is at most 200,000 characters. A description is at most 5,000. The page does not print those limits. A save that the route refuses reads “Could not save this global tag. Check the fields and try again.”
| What the page says | When |
|---|---|
| A global tag with this name already exists. | The name is already on this brand. |
| This global tag is used and cannot be renamed. | The name is already in a message or another record. |
| This global tag is used. Remove the listed references before deleting it. | Delete, while Used in still lists something. |
| Could not delete this global tag. Try again. | Delete failed for another reason. |
Used in lists each place, with Not used yet when there are none. The type in parentheses is the record’s own word, such as Communication, Campaign, Email template, or Pending message. One of those words is still Prize drop.
On Audit, the rows read “Global tag created”, “Global tag updated”, and “Global tag deleted”.
Put the token in a message
- Open the communication.
- Beside a field, open Insert a variable. The title is Insert a variable.
- The first block is Global tags. Choose a global tag, then press Insert tag.
Insert tag writes {{global.name}} with no spaces. A token with spaces inside the braces is still read. The value under the menu is shown as text, including an HTML value.
You can also type the token. The line under the fields counts it as global.name. A name that is not on the brand is marked in yellow: “Unknown global tag: {{global.name}}”.
What a player receives
Text is inserted as text.
HTML is drawn as markup only in the body of an email, a pop-up, or an inbox message. In a subject, a title, an SMS, a push, or any other field, the markup is removed and the remaining text is sent. The value is cleaned as email HTML before that.
A missing name is sent as empty. The braces are not sent.
The value is not scanned for another {{global…}} or {{campaign…}} token. Braces inside an HTML value are stored so they cannot start one.
A token that sits inside a script, a style, an event attribute, or a base element is removed. A link attribute that the value would turn into a script address is cleared.
Change a tag while mail is still going out
The communication keeps the token. It does not keep a frozen copy of the value.
- Open the tag and change Value, or HTML value.
- Press Save.
A message that is still queued, including one already waiting to be sent, is filled in again immediately before it is handed to the provider. The new body is saved first. The provider is then called with that body.
If the tag cannot be read, or the new body cannot be saved, that send waits and is tried again. The provider is not called.
A message the provider has already accepted stays as it was sent. Changing the tag does not rewrite it.
The same wait applies to a campaign tag. See Set tags on one campaign.