---
title: "Dynamic web content for emails"
date: "2025-03-27T13:13:43+00:00"
summary: "Create personalized email content with Campaign Studio's dynamic web content for targeted, data-driven messaging."
image:
type: "page"
url: "/campaign-studio/dynamic-web-content-emails"
id: "f7a979f6-34b8-4fa9-873a-8448938744d0"
---

Campaign Studio dynamic web content (DWC) can be used in emails to create a personalized experience by displaying different content to different contacts based on the data collected about them. 

This page describes how to create DWC that can be used for:

*   Email subject line
*   Email body

Note

DWC for emails is non-campaign-based and utilizes filters with targeted criteria that contacts must meet for DWC to be displayed. This criteria is based on the data in your contact database.

Creating default content
------------------------

Create a default version of DWC as a fallback for instances when personalization is not possible. This ensures that all users, especially those without identifiable data or targeting criteria, see relevant and functional content, providing a seamless experience even when personalization rules do not apply. Default DWC is the content that visitors see when:

*   They do not meet the criteria you have set for DWC for emails.
*   They are anonymous and not tracked as a known contact. 

Note

However, anonymous contacts can see some DWC if you have collected any information about them that meets the targeting criteria. For example, location data.

Creating DWC for emails
-----------------------

To create DWC for email subject line and email body:

1.  Log in to Campaign Studio.
2.  In the left navigation pane, click **Components** > **Dynamic Web Content**.
3.  On the Dynamic Content page, click **+New**.
    
    Campaign Studio displays the New Dynamic Content page.
    
4.  Enter the necessary values for the following fields:
    
    Important
    
    Acquia recommends that you configure the settings in the menu on the right before creating the content.
    
    *   **Internal Name**: The name of the DWC that the system displays on the Dynamic Web Content list page and in **Tokens** in the email builder.
        
        Acquia recommends that you include information about the following:
        
        *   Data points that you are personalizing.
            
            For example, country.
            
        *   The content in the slot.
            
            For example, if you are creating a personalized slot for contacts in the United States, you can name the slot `Country - United States`. 
            
        *   If you have more than one personalized content slot for the same audience in an email, include the email Internal Name or other identifying information about the slot.
    *   **Type**: The type of DWC:
        
        The following are the types of DWC:
        
        *   **HTML**: The default setting that includes the WYSIWYG builder and code mode.
        *   **Text**: To create text-only DWC or DWC for email subject line.
            
            You must select **Type** \> **Text** when creating DWC for email subject line. Campaign Studio does not support HTML in email subject line.
            
            Important
            
            All DWC with the same slot name must be of the same type.
            
    *   **Categories**: Group various resource types to different organizational classifications such as marketing strategies, topics, or departments. For more information, visit [Categories](https://docs.acquia.com/campaign-studio/settings/categories).
    *   **Projects**: Group and manage all related entities within a dedicated, centralized workspace. For more information, visit [Projects](https://docs.acquia.com/campaign-studio/projects).
    *   **Language**: The language for DWC. Campaign Studio enables you to present content in multiple languages. You can use the same slot and display the content in various languages depending on the country from where a contact is accessing the content. To create content in more languages, select the language for which you are creating the variant.
    *   **Is a translation of**: If you are creating a slot in a second language translation, select the original slot you are translating. The same slot is displayed based on the filters you have set. However, the content is translated if a visitor is viewing the page if the slot is in a country where a different language is used.
    *   **Published**: If toggled to **Yes**, a DWC slot is displayed in the email. If toggled to **No**, visitors see the default content.
    *   **Is campaign based?**: To create DWC for emails, you must toggle this to **No**. DWC for emails cannot be used in campaigns. Only DWC used on websites, landing pages and focus items can be campaign-based. For more information, visit [Dynamic web content for websites](/campaign-studio/dynamic-web-content-websites "Dynamic web content for websites").
        
        Note
        
        If toggled to **No**, the system displays additional configurations such as **Filters**, **Requested slot name**, and **Order/Priority**.
        
    *   **Requested slot name**: The name you use to add a dynamic email content slot to a Campaign Studio email. 
        
        The same data point can have multiple slots. Therefore, this name is often generic. For example, country. Acquia recommends that you reference the slot name in the item name as well.
        
    *   **Order/Priority**: The priority for the order that you want DWC to be displayed to contacts who meet the criteria.
        *   **Put at beginning (default content)**: To set DWC as the first item to be displayed in the list of DWC to display for contacts.
    *   **Google Analytics UTM tags**: Use UTM tags to track your leads that convert from DWC slots, and indicate the lead source in Google Analytics 4 or Campaign Studio reports. For more information, visit [UTM tags](/campaign-studio/channels/utm-tags).
    *   **Content**: To create DWC including text, images, videos and tokens for emails.
        *   To create DWC for email body, select from the following options:
            *   WYSIWYG: Use the default WYSIWYG builder to create DWC.
                
                To add a token, do one of the following:
                
                *   Enter `{` and select the token from the dropdown menu.
                *   Click the **Insert To..** dropdown menu in the WYSIWYG toolbar.
                    
                    DWC tokens cannot be used within another DWC. The system displays a notification requesting you to remove the DWC to prevent an endless feedback loop.
                    
                
                To use HTML, click the `</> Source` button in the toolbar to switch to the code view.
                
                When you use CSS styling, you must include a space or a new line after the opening bracket `**{**` that contains the token. If you do not follow this formatting, the system displays an error in the email or landing page builders, preventing the content from saving.
                
                For example:
                
                *   `<style type="text/css">table{ color:red;}</style>`
                    
                *   `<style type="text/css">`  
                    `table{`  
                     `color:red;`  
                    `}`  
                    `</style>`
                    
        *   To create DWC for email subject line, select **Type** \> **Text**.
            
            If you selected the **Type** \> **Text** option, the WYSIWYG is not available and you can only enter text type DWC.
            
            Only Text Type DWC can be used for the email subject line. Campaign Studio does not support HTML in the email subject line. Tokens are supported but must be entered manually.
            
5.  After you configure DWC and create the content, create the filters for the specific criteria that contacts must meet for DWC to be displayed:
    1.  On the New Dynamic Content page, click the **Filters** tab next to the **Details** tab.
    2.  Click the **Choose one…** menu and create the filters.
        
        This criteria is based on the data in your contact database.
        
        Ensure that you use the appropriate operators when configuring the criteria. For more information about operators, visit [Operators in Campaign Studio](/campaign-studio/operators-campaign-studio "Operators in Campaign Studio").
        
        ![campaign-studio_dwc-filters.png](https://acquia.widen.net/content/ce1e47e4-6033-4287-9749-a93f883ccbe3/web/campaign-studio_dwc-filters.png?w=720&itok=oiXRWA03)
        
6.  Click **Save**.

After you create DWC, you must implement the content in email body or email subject line. For more information, visit [Implementing DWC for emails](/campaign-studio/implementing-dwc-emails "Implementing DWC for emails").