Testing Your Justuno Experiences

This Justuno support article provides guidelines on how to properly preview and test your Justuno campaigns.

At a glance:

Introduction
URL Enrollment Trigger
Chrome Extension
Browser Console

 

Last updated: 08/13/2024

Introduction


To evaluate how your Justuno experiences integrate with your website, consider these three additional testing methods beyond deploying Justuno on a sandbox or staging environment.

 

URL Enrollment Trigger


Assuming the Justuno embed code has been properly installed on your website, users may utilize the URL targeting within the workflow builder to trigger experiences on webpages not normally accessible to the public. In this scenario, we'll be targeting a URL containing the extension #test.

  1. Enter the workflow of the desired experience you'd like to test. Tap on the Enrollment Trigger step.

  2. Inside the Workflow Enrollment panel, select the addition button to add a Segment Filter.

  3. In the search bar, type URL and select Current URL in the search results below. 

  4. Confirm the selection fields matches as follows. In the value field input #test and tap Apply Condition.

  5. Hit Save condition set.
  6. Publish your workflow - it should now be visible on www.yourwebsite.com/#test

 

Chrome Extension


This next method is only available on Chrome browsers and will allow you to simulate the Justuno experience on any website locally. It does not require Justuno to be installed.

  1. Add the Chrome extension - User Javascript and CSS
  2. Once you've installed the Chrome extension, locate and copy your Justuno embed code.

  3. Navigate over to your website and tap on the User Javascript and CSS extension on the top right of your browser. If you do not see the extension, it may be hidden in the extensions menu (puzzle icon) on the immediate right. Select the New rule... button.


    NOTE: If prompted, you may need to toggle on Developer mode.

  4. Inside the New rule panel, select and paste your Justuno embed code into the field labeled Start typing your JavaScript here. You'll also want to remove the <script> tags in the beginning and end of the embed code. The resulting code will look something like this:

  5. Hit Save and return to your website. Your Justuno code should now be firing on your website!

Browser Console


This last method will work with any browser and will also allow you simulate the Justuno experience on any website locally. It does not require Justuno to be installed.

  1. Locate and copy your Justuno embed code.

  2. Navigate over to your website, right click anywhere on the page and select Inspect.

    NOTE: The instructions on accessing the browser console may differ slightly depending on your browser.

  3. In the panel that appears, locate and select the Console tab.

  4. In the Console area, paste your Justuno embed code. You'll also want to remove the <script> tags in the beginning and end of the embed code. The resulting code will look something like this:

  5. Hit Enter - your Justuno code should now be firing on your website!