How to preview a campaign in build
How to preview a campaign in build
To preview a campaign, go to the Campaign Manager, and find the campaign you wish to preview.
Then, select the eye icon. If there are multiple experiences, or experiment variants, you will need to choose which you would like to preview.
The preview will then load onto the URL you specified in the campaign set-up, and you will enter 'Preview Mode'.
Some things to note when previewing a campaign:
Some templates set code in local or session storage that prevents them from reappearing - to reinitialise the template, start a new session in incognito mode, or clear your local storage
Previews do not follow global rules or segmentation settings. This allows you to preview an experience without needing to match the correct segment
How to preview a campaign in live
How to preview a campaign in live
We know you may want to preview an experience once it's live on your site. To do this, you may need to force yourself into a segment and trigger the experience.
To force yourself into a segment, you'll need to run the following code within your console, replacing segmentId in the first line with the segment you wish to force yourself into:
var segmentId = '69137c9915f6bc173271b11e';
localStorage.setItem('intent.user.id', 20 + Math.random() * 70);
localStorage.setItem('intent.endpoint.override', 'https://main.inference.madewithintent.ai/event?FORCE_SEGMENT_ID=' + segmentId);
Your segmentId can be found by going to the segment library and selecting the segment you wish to force yourself into. The ID will then be in the URL
Exmample: https://app.madewithintent.ai/p/mwit-zd5w88gbk9bp-2d/segments?segmentSort=createdDesc&segmentId=69137c9915f6bc173271b11e
69137c9915f6bc173271b11e is the segment ID
Please note, you may need to navigate to a different page from the one you're on so the campaign allocator kicks in rather than just refreshing.
Note that your campaign global rules must still match in addition to forcing the segment match to occur.
Note that you should clear local storage after making these changes to ensure they don't persist indefinitely. Consider performing these tests in an Incognito session.
Common troubleshooting
Common troubleshooting
Preview link not firing?
If you're having issues with your preview link firing, we would always advise either clearing your cookies, or using an incognito browser as a first step. See also ('preview link not showing an updated experience' below).
Correct font not showing in our template editor?
Custom fonts may not be available in our template editor if they are not installed in our app. In these cases we will display a standard font instead, but custom fonts should be shown when using our preview tool to
Preview link not showing an updated experience
Try hard refreshing your browser. To perform a hard refresh, use a keyboard shortcut specific to your operating system: on Windows/Linux, press Ctrl + F5 or Ctrl + Shift + R; on Mac, press Cmd + Shift + R. This forces the browser to download a fresh copy of the page, bypassing the cache.