Docs/Visualizing RetentionMaster Events from the Browser Console

Advanced Tracking

Visualizing RetentionMaster Events from the Browser Console

Load public/rm_visualize_events.js from the browser console to visualize RetentionMaster activity directly on a tracked website.

What the visualizer does

The visualizer helper is a temporary browser-console tool for seeing RetentionMaster behavior on the live website you are testing. It loads https://retentionmaster.io/public/rm_visualize_events.js, enables debug persistence for the session, ensures the #rmdebug hash is present, loads the RetentionMaster snippet for the current site key, and opens the sales/event overlay when window.RM.showSalesOverlay() is available.

Use it when you want to confirm page views, triggers, retention asset requests, event sends, acknowledgements, warnings, and runtime behavior without changing the website code permanently.

Generate a temporary key

If the target website does not already have a RetentionMaster key, generate a temporary visualizer key first. The key works only on the website target you provide, expires after 3 days, and is limited to 5,000 RetentionMaster events.

Console command

Open the target website, open DevTools, then run: (function(){var s=document.createElement("script");s.src="https://retentionmaster.io/public/rm_visualize_events.js?v="+Date.now();document.head.appendChild(s);})();

If the website already has the RetentionMaster snippet installed, the helper reads the existing data-site value. If it cannot find one, it prompts you to paste the RetentionMaster public site key.

Expected result

After loading, the page hash will include #rmdebug, the debug session will persist across navigation through sessionStorage, and the RetentionMaster overlay should appear with live runtime diagnostics.

Interact with the page as a visitor: navigate, scroll, trigger exit intent where possible, submit test forms, or click configured CTAs. Watch the overlay for event names, trigger names, database send/ack status, warnings, and retention asset display attempts.

Safe testing practices

Run the helper only on sites you own or are authorized to test. Use staging environments when possible. If you run it in production, avoid sending real personal data in test payloads.

To stop the session, close the tab or run sessionStorage.removeItem("__rmdebug_persist__"); location.hash = "";, then reload the page.

Frequently Asked Questions

Does this install RetentionMaster permanently?

No. It injects a script into the current browser tab only. The website code is not changed.

What if the overlay does not appear?

Confirm the public key is correct, check the console for loading errors, and try adding #rmdebug to the URL before reloading.