Custom tokens for email personalization
Content personalization uses tokens as placeholders or variables that are populated when the content artifact is generated. Standard personalization tokens are available for emails, landing pages, fragments, and templates. You can also define a set of custom tokens with values that are specific to the account journey. This set of custom tokens is called My Tokens and any of these custom tokens are for personalization when authoring journey emails.
In addition to My Tokens, which are specific to the account journey, you can use any of the standard (built-in) tokens for email personalization.
Manage My Tokens my-tokens
The My Tokens are custom variables that you create or modify for an account journey in Draft status. This custom token set currently support text and number token definitions.
When you add a custom token to an email, it is displayed as {{my.TokenName}}
. For example, you might have {{my.EventDate}}
or {{my.WebinarSpeaker}}
tokens created to manage email content related to upcoming webinars.
To access the custom tokens for an account journey:
-
Open the draft account journey.
-
Click the ²Ñ´Ç°ù±ð… menu at the top right and choose My Tokens.
The My Tokens page lists all custom tokens that are defined for the journey.
Create a token
-
In the My Tokens page, click Create and choose the token type that you want to define:
-
Text - Use this type to define a token with a basic text string value.
-
Number - Use this type to define a token with a numeric value.
-
-
In the dialog, enter the Name and Value for the token.
You cannot use spaces or special characters in the token name. You can use camel case, such as
EventType
, to use a multi-word name that is easily identified.If you are defining a Number token, the value can contain only numeric characters. You can use a decimal value.
-
Click Add.
Edit a token
While the account journey remains in draft status, you can edit any of the defined My Tokens.
-
In the My Tokens page, click the More actions icon (…) next to the token name and choose Edit.
-
In the dialog, change the Name and Value as needed for the journey.
-
Click Edit.
Delete a token
You can delete a custom token from the My Tokens list, but you should make sure that it is not currently used in your journey email content.
-
In the My Tokens page, click the More actions icon (…) next to the token name and choose Delete.
-
In the confirmation dialog, click Delete.
Use custom tokens in your content
When you are authoring email content for your account journey, you can use any of the tokens from the My Tokens list when you use the personalization tools in the visual design space.
-
Select the text component and click the Add personalization (
This action opens the Edit Personalization dialog. The dialog includes a My tokens folder in the Personalization Tokens library if there are custom tokens defined for the account journey.
-
Expand the My tokens folder, then click + or … to add one of your custom tokens to the blank space.
You can add any additional static text as needed.
-
Click Save.