Dynamic tags

Overview

Dynamic tags allow you to insert personalized and variable content into your communications, such as emails, notifications, or messages.

With dynamic tags, you can create messages that address recipients by their name, provide personalized recommendations, or include other dynamic information specific to each individual.

Create a dynamic tag

Before you can use a dynamic tag in your content, you have to create and configure one.

To create a Dynamic Tag:

  1. Log in to the Contentful web app.

  2. Navigate to the "Content" tab.

  3. Click +Add entry, and select Dynamic Tag. The editor is diplayed.

    Personalization: Dynamic tag
  4. Enter a relevant name. This is title by which you can add the Dynamic Tag in your content.

  5. Set the Fallback. This is the value that will be used in case no value is available.

  6. Set the Dynamic Tag Id. This is the key from which the value will be retrieved
    Keys can be accessed using dot . notation. For example, you might use location.city as the Dynamic Tag ID to display the user's city. You can also access trait information if you collect it on profiles, such as traits.firstName if you capture names.

NOTE: What keys and traits are available to you depends on what customer data is being sent to the respective profiles using the Experience API, SDK or upstream data flows.

Add Dynamic Tags to content

Dynamic tags are added to content as inline embedded entries within rich text fields. In this way, dynamic tags act as variables or placeholders for information that will be dynamically populated.

To use a Dynamic tag:

  1. Configure a Rich Text field that supports inline embeds of the Dynamic Tag content type.

  2. Create at least one Dynamic Tag.

  3. Embed the Dynamic Tag within the rich text field of an entry.