Manually triggering widgets

As well as automatic triggers (exit intent, scrolling, on page load, etc.), you can also have your popups or other widgets appear when a visitor to your site clicks a certain button or link.

Find the ID of the widget you want to trigger

Click to view or edit the widget in RightMessage, and look in your browser’s address bar. The ID is the part that starts with wdg_, followed by eight letters or numbers:

Find the ID of a widget

Copy that ID somewhere. You’re going to need it for the next step.

On the link or button element on your site that you’d like to use to trigger the widget, add a data-rm-show="wdg_xxxxxxxx" attribute, where wdg_xxxxxxxx is the ID you found above.

So, you might end up with a button that looks like:

<a href="#" data-rm-show="wdg_12345678">Click me!</a>


<button data-rm-show="wdg_12345678">Click me!</button>

Alternatively (if your website builder doesn’t support adding data- attributes like data-rm-show), you can add a class of rm-show-wdg_12345678 instead.

You can style the button exactly how you normally would—it’s the addition of the data-rm-show="..." that makes the widget trigger on click.

Next up

Integrating with Google Analytics

RightMessage can also synchronize answers to questions and offer conversions to your Google Analytics account.