Testing dynamic content on a production site

WARNING: This testing method is dedicated for advanced users.

When you create dynamic content, you may want to check if it renders correctly on your website, especially if it contains Jinjava or JavaScript. For this purpose, you can use life preview, however, it lets you preview this campaign in isolation, without checking its impact on other dynamic campaigns.

This article contains instructions on how to test a dynamic content campaign along with other active dynamic campaigns on the website.

Important: If you test dynamic content that contains references to a profile’s data/attributes, make sure that the profile used for the test contains these attributes.

Activate dynamic content for one user

This option is best if you want to see how the dynamic content campaign renders on the website only for a particular user. You can do so by indicating a particular email address (only for a recognized user) or UUID as the audience of the dynamic content.

Important: Removing cookies or changing the browser’s mode to incognito resets UUID.
Click here to expand the instruction on getting your UUID

  1. Go to your website.
  2. Open a browser console.
  3. Execute the following command: SyneriseTC.uuid
    Result: Your UUID is returned.
    The image presents browser console with the Get UUID function executed
    The image presents browser console with the Get UUID script executed
  4. Copy the UUID and save it in the notepad.

  1. In the settings of the dynamic content, in the Audience section, click Define.
  2. Select the New audience tab.
  3. Click Choose filter.
  4. On the dropdown list, in the search box, enter Email address or UUID.
    A user with the specific UUID is selected
    A user with the specific UUID is selected
  5. Select the searched attribute.
  6. From the Choose operator dropdown list, select Equal.
  7. In the text field, enter the email address or UUID you saved in the notepad.
    Result:
    One user selected as audience of dynamic content
    One user selected as the audience of the dynamic content
  8. Confirm by clicking Apply.
  9. Confirm the settings in the Audience section by clicking Apply.
  10. In the Schedule section, click Define.
  11. Select the Display immediately option.
  12. Confirm the settings in the Schedule section by clicking Apply.
  13. In the upper right corner, click Activate.
    Result: Dynamic content runs on the website (if this is the Insert object type, it appears in the specific area on the website indicated in the Content section) and is visible only to the user with specific email address/UUID.

Activate dynamic content for a user group

This option is best if you want to let multiple people test the dynamic content. This involves assigning a tag to their profiles and setting the DC’s audience to the profiles with this tag.

You can assign a tag in the following ways:

  • Add a tag manually on the profile card of the testing users.
    The Tags section on a profile card
    The Tags section on a profile card
  • Each tester executes a command in the browser’s console (as described in “Assign a tag to testing users”).
    This method is recommended for the testers who are unrecognized users on the website. The advantage of this method is that the access to the Synerise platform is unnecessary.
  • Assign a tag to testing users through API using one of the following methods:

Alternatively, you can perform the instructions in “Activate dynamic content for one user” and include more users by indicating their UUIDs/email addresses by adding one condition with a specific identifier per tester.

Assign a tag to testing users

  1. Decide on the name of the tag, for example campaigns-testing-snrs
  2. Each tester must perform the instructions below:
    1. Go to your website.
    2. Open the browser console.
    3. Paste the following code to the console and execute it:
          SR.event.sendFormData('campaigns-testing-snrs',{})
              
      
      Replace campaigns-testing-snrs with your own tag.
      Result: A tag is assigned to users.
    The image presents browser console with the Tag assign script executed
    The image presents the browser console with the 'Assign tag' function executed

Define the users with a tag as campaign audience

  1. In the settings of the dynamic content, in the Audience section, click Define.
  2. Select the New audience tab.
  3. Click Choose filter.
  4. On the dropdown list, in the search box, enter the name of the tag.
  5. Select the tag.
  6. From the Choose operator dropdown list, select Is true.
    Result:
    A user with the specific tag is selected
    A user with the specific tag is selected
  7. Confirm by clicking Apply.
  8. Confirm the settings in the Audience section by clicking Apply.
  9. In the Schedule section, click Define.
  10. Select the Display immediately option.
  11. Confirm the settings in the Schedule section by clicking Apply.
  12. In the upper right corner, click Activate.
    Result: Dynamic content runs on the website (if this is the Insert object type, it appears in the specific area on the website indicated in the Content section) and is visible only to the users with the selected tag.

Activate dynamic content with a query parameter

This option is best if you want to see how dynamic content campaign renders on the testing page within the monitored domain.

  1. In the settings of the dynamic content, in the Display settings section, click Define.
  2. Expand the Advanced options.
  3. In the Page targeting section, select Others.
  4. From the dropdown list, select Page URL containing.
  5. In the text field, enter the URL of the subpage within your monitored domain.
    Result:
    Selecting the URL where the dynamic content will be displayed
    Selecting the URL where the dynamic content will be displayed
  6. Confirm the settings by clicking Apply.
  7. Make sure the dynamic content is set to display immediately.
  8. In the upper right corner, click Activate.
    Result: Dynamic content appears under the specified URL (if this is the Insert object type, it appears in the specific area on the website indicated in the Content section).
    URL where dynamic content is displayed
    URL where dynamic content is displayed

Combining test methods

You can combine the methods; for example by creating a group of test users and displaying different versions of the dynamic content depending on the query parameter they enter.

😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker