A machine-readable guide to this site for AI agents and language models is available at/llms.txt(https://dev.acquia.com/llms.txt on the production site).
Campaign Studio dynamic web content (DWC) can be used to personalize the web experience for your contacts 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:
Configure the CORS settings to enable Campaign Studio to pass information back and forth with your website.
In the CORS Settings section, ensure that the Restrict Domains field is set to Yes (default).
Restricting your domains ensures only websites that you allow can send data to and read data from your Campaign Studio instance.
In the Valid Domains field, add the domains that you are using with your Campaign Studio instance, including any domains using DWC.
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:
To create DWC for external webpages and Campaign Studio landing pages:
On the Dynamic Content page, click +New to create a new slot.
Campaign Studio displays the New Dynamic Content page.
Enter the necessary values for the following fields:
Internal Name: The name that the system displays on the Dynamic Content list page and in your DWC slots.
Acquia recommends that you include information about the following:
Data point 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.
Type: The type of DWC:
The following are the types of DWC:
After you create DWC, you must implement the content on your external webpage or Campaign Studio landing page. For more information, visit Implementing DWC for websites.
In the Valid Domains field, add the domains that you are using with your Campaign Studio instance, including any domains using DWC.
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:
To create DWC for external webpages and Campaign Studio landing pages:
On the Dynamic Content page, click +New to create a new slot.
Campaign Studio displays the New Dynamic Content page.
Enter the necessary values for the following fields:
Internal Name: The name that the system displays on the Dynamic Content list page and in your DWC slots.
Acquia recommends that you include information about the following:
Data point 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.
Type: The type of DWC:
The following are the types of DWC:
Text: To create text-only DWC.
Is campaign based?: To configure whether DWC is associated with a campaign or is used independently of campaigns. For more information, visit Campaign and non-campaign DWC.
Select one of the following options:
No: To create non-campaign-based DWC that can be used independently from campaigns and uses filters to set criteria that contacts must meet for the content to be displayed. For more information, visit Implementing DWC for websites.
Requested slot name: For non-campaign-based dynamic DWC, use this name as the data-param-slot-name attribute on the HTML element that displays the DWC on your webpage or Campaign Studio landing page. For example: With a slot name of 'sidebar', you would embed it using <div data-slot="dwc" data-param-slot-name="sidebar">Default Content</div>.
Content: To create DWC including text, images, videos, and tokens to use in external webpages and Campaign Studio landing pages.
Use the default WYSIWYG builder to create DWC.
To add a token, do one of the following:
{ and select the token from the dropdown menu.Click the Insert To.. dropdown menu in the WYSIWYG toolbar.
To use HTML, click the </> Source button in the toolbar to switch to the code view.
If you selected the Type > Text option, the WYSIWYG is not available and you can only enter text-type DWC. Tokens are supported but must be entered manually.
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 and prevents you from saving the content.
For example:
<style type="text/css">table{ color:red;}</style><style type="text/css">table{ color:red;}</style>The >option can also be used for creating email subject line. For more information, visit .
After you create DWC, you must implement the content on your external webpage or Campaign Studio landing page. For more information, visit Implementing DWC for websites.
Text: To create text-only DWC.
Is campaign based?: To configure whether DWC is associated with a campaign or is used independently of campaigns. For more information, visit Campaign and non-campaign DWC.
Select one of the following options:
No: To create non-campaign-based DWC that can be used independently from campaigns and uses filters to set criteria that contacts must meet for the content to be displayed. For more information, visit Implementing DWC for websites.
Requested slot name: For non-campaign-based dynamic DWC, use this name as the data-param-slot-name attribute on the HTML element that displays the DWC on your webpage or Campaign Studio landing page. For example: With a slot name of 'sidebar', you would embed it using <div data-slot="dwc" data-param-slot-name="sidebar">Default Content</div>.
Content: To create DWC including text, images, videos, and tokens to use in external webpages and Campaign Studio landing pages.
Use the default WYSIWYG builder to create DWC.
To add a token, do one of the following:
{ and select the token from the dropdown menu.Click the Insert To.. dropdown menu in the WYSIWYG toolbar.
To use HTML, click the </> Source button in the toolbar to switch to the code view.
If you selected the Type > Text option, the WYSIWYG is not available and you can only enter text-type DWC. Tokens are supported but must be entered manually.
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 and prevents you from saving the content.
For example:
<style type="text/css">table{ color:red;}</style><style type="text/css">table{ color:red;}</style>The Type > Text option can also be used for creating email subject line. For more information, visit Dynamic web content for emails.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.