Loading...

Dynamic web content for websites

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:

  • External webpages
  • Campaign Studio landing pages

Prerequisites

Configure the CORS settings to enable Campaign Studio to pass information back and forth with your website.

  1. Log in to Campaign Studio.
  2. Click the Settings icon on the top right corner.
  3. Click Configuration > System Settings.
  4. 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.

  5. In the Valid Domains field, add the domains that you are using with your Campaign Studio instance, including any domains using DWC.

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.

Creating DWC for websites

To create DWC for external webpages and Campaign Studio landing pages:

  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 to create a new slot.

    Campaign Studio displays the New Dynamic Content page.

  4. 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.

      • If you have more than one personalized content slot for the same audience across your website, include the page title or other identifying information about the slot.
    • Type:
      • HTML: The default setting that includes the WYSIWYG builder and code mode.
      • Text: To create text-only DWC.
  • Category: The category assigned to DWC. For more information, visit Categories.
  • 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, the DWC slot is displayed on your website or Campaign Studio landing page. If toggled to No, visitors see the default content.
  • 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:

    • Yes: To create campaign-based DWC for Campaign Studio to display to contacts when they reach the associated event within the campaign.
    • 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>
  • Order/Priority: For non-campaign-based DWC. Select 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 the 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.
  • 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:

    • Enter { 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.

    The Type > Text option can also be used for creating email subject line. For more information, visit Dynamic web content for emails.

  1. Click Save.

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.

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation