Salesforce

Using Live Preview to Perform Real-Time Testing

« Go Back
Information
Using Live Preview to Perform Real-Time Testing
UUID-efda6d07-9028-6f80-a9ab-d319b81538bc
Article Content

Live Preview is a way to review any changes on your production site that apply to your OneTrust script before publishing the production script. For example, if you're updating an existing template to use a new feature or adding a new geolocation rule and want to test it, you can leverage Live Preview to initiate the preview or share links to the test script before deploying.

To create and view a live preview

When making configuration changes, before publishing to production, you can initiate a live preview, publish your test script and initiate a live preview for each of your geolocation rules associated with the domain.

Note

The production script has to be published and on the domain for the live preview function to work. Production scripts can only be published within 30 minutes of publishing test scripts.

Autoblocking is not available through live preview mode.

  1. On the Cookie Consent menu, select Scripts under the Integration section. The Scripts screen appears.

  2. Select a domain from the list.

  3. Go to the Test Scripts tab.

  4. Click the Live Preview button. The Live Preview modal appears.

    Screenshot_at_May_25_15-26-49.png
    Screenshot_at_May_25_15-30-16.png

    Note

    You can also access the Live Preview modal for a production script. Click the Publish Production button, select a script version, review your choices, and click the Publish Test and Preview button.

  5. Select a geolocation rule from the selection menu.

  6. If you have already published your test script through the publish panel, select Start Preview. If you have not yet published after making configuration changes, select Publish Test & Preview. The live preview will be initiated for the geolocation rule selected in the modal. Your domain will be opened in a new tab with the following query parameters:

    • otreset: Remove all the cookies dropped by the script and reload the page.

      Note

      otreset flag will be changed to false in the URL to avoid the infinite loop before reload.

      This query parameter can be leveraged in the live preview or with the production script loading.

    • otpreview: This is the query parameter that initiates the live preview while the production script is deployed on the site. It will load test script and the otpreview cookie will be dropped.

      Note

      You will need to clear cookies to re-load the production behavior. If you initiated the preview from Cookie Consent, the Stop Preview button will handle this for you.

    • otgeo: Load the input geolocation rule.

      Note

      This query parameter can be leveraged in the live preview or with the production script loading.

      You can input country code and state code, or global for a global rule.

      If the location code doesn't match the configuration, the global rule will be loaded.

    After initiating a preview, you will have the option to select other geolocation segments to preview.

    Screenshot_at_May_25_20-41-10.png
  7. Click the Copy Link button to share a link to each preview with other users.

    Note

    The preview mode will last for 24 hours once accessed if the otpreview cookie is not cleared.

    Screenshot_at_May_25_20-45-52.png
  8. When finished, click the Stop Preview button. The button will close any preview tabs initiated from Cookie Consent. Upon re-opening the domain, the real time testing interface will no longer display.

    Screenshot_at_May_25_20-50-32.png

Once you have reviewed changes through the live preview and tested all necessary functionalities, you can publish your production script.

 

To view a live preview for a banner template

  1. On the Cookie Consent menu, select Templates under the Setup section. The Templates list screen appears.

  2. Select a template from the list. The Template Details screen appears.

  3. Click the Live Preview button. The Live Preview modal appears.

  4. Refer to steps 5-8 in To create and view a live preview.

 

To view a live preview for a geolocation rule group

  1. On the Cookie Consent menu, select Geolocation Rules under the Setup section. The Geolocation Rule Groups list screen appears.

  2. Select a template from the list. The Geolocation Rule Group Details screen appears.

  3. Click the Live Preview button. The Live Preview modal appears.

  4. Refer to steps 5-8 in To create and view a live preview.

 
 
 
Article Visibility
5,321
Translation
English
Checked

Powered by