Testing personalization campaigns
Personalizations in RightMessage are cumulative. This means that if you have multiple campaigns (i.e. one targeting industries, another targeting job roles, and a third targeting customer status), the changes these respective campaigns make will “stack” and create a one-off page for each visitor.
In this guide, we’re going to show you how to best test the campaigns you’re creating.
Using the RightMessage Debugger
To test your personalization rules and segment combinations in real-time:
- Add
?debug=true
to any URL where RightMessage is installed (e.g.,yourwebsite.com/page?debug=true
) - A debug panel will appear at the bottom of your screen
- Use the panel to select different segments and combinations to preview how your page content changes
- Changes are displayed instantly, letting you verify personalization rules without changing your actual segment data
- This works similarly to Google Tag Manager's preview mode, making it easy to test and troubleshoot your personalizations
You can learn more about the RightMessage Debugger here.
RightMessage campaigns execute from top-to-bottom. This means that if the first campaign you’ve created changes the text of your homepage’s headline text and the second campaign you’ve created targets the exact same element, the second campaigns text changes will override the first’s.
Keep this in mind. It can be annoyingly frustrating to try to figure out why something isn’t personalizing the way you expect it to, only to discover it’s because something else ended up “claiming” that element.
For instances where multiple campaigns need to target a headline – A headline that reads “Perfect for JOB_ROLE in INDUSTRY”, for example – the way to do this is to create sub-elements (in this case, <span>
tags) that each get personalized.
Your actual headline’s HTML would probably look like this: <h1>Perfect for <span>your role</span> in <span>any industry</span></h1>
And the campaign that targets your “Job Role” Segment Group would personalize the first &<span>
, and the “Industry” Segment Group would target the second.