Install RightMessage with Google Tag Manager
You'll add RightMessage to your Google Tag Manager container, publish the tag, and check that your website is sending data to your project.
Updated
View as MarkdownAdd RightMessage through Google Tag Manager so you can ask visitors questions and personalize your website without editing its code directly. You'll install the project snippet, then publish your questions, offers, or campaigns separately in RightMessage.
Add the snippet to your container
You'll need a Google Tag Manager web container installed on your site, permission to edit and publish it, and access to your RightMessage project. Check your theme, plugins, and container for an existing RightMessage installation. Use only one copy per page.
If you're changing visible page content, direct installation in your site's head can reduce loading delay. With Tag Manager, its container must load and fire the tag first. Neither method guarantees that the original content will never flash.
- In RightMessage, select your project and open Settings > JavaScript Snippet under Project.
- Keep Live website selected and copy the full Snippet Code.
- In Google Tag Manager, open your site's web container and choose Tags > New.
- Name it
RightMessage. Open Tag Configuration and choose Custom HTML. - Paste the full snippet into the HTML field, including its script tags.
- Open Triggering, select All Pages, and save the tag.
Keep required consent controls in place. If your installation should cover only selected pages, use a trigger limited to those pages instead. The snippet runs only when its trigger and consent requirements allow it. You don't need Support document.write. Google's Custom HTML guide (opens in a new tab) covers the tag editor.
For a separate test environment, read the live and development snippet reference before choosing Staging / development. That code requests an authorized draft debugger session and disables analytics.
Publish the tag
- Choose Preview in Tag Manager and check that the RightMessage tag fires once on a page where it should run.
- Check another included page and any excluded page.
- Choose Submit > Publish and Create Version.
- Review Workspace Changes, including any changes unrelated to RightMessage.
- Enter a Version Name and Version Description, confirm the intended environment, and choose Publish.
Saving or previewing the tag doesn't release it. If you can't publish, send the change to the container owner. Google's publishing guide (opens in a new tab) explains its approval controls.
Check that it's working
- Visit your public website outside Tag Manager preview.
- In RightMessage, open Settings > JavaScript Snippet and look for a recent timestamp in Snippet Health.
A recent timestamp means RightMessage is receiving data. Use the debugger to see what it's showing on the page.
If no data arrives, check the tag's firing, consent state, project snippet, and published container version. Installation troubleshooting also helps when the snippet loads but nothing appears.
Next, build a resource recommendation in the app. RightMessage's Publish action is separate from publishing your Tag Manager container.