Google Tag Manager
Ship the Patchrooms loader as a GTM tag so it goes out through your existing tag management workflow instead of a code change.
Prerequisites
Section titled “Prerequisites”- Publish access to a GTM container already installed on your site.
- A project key (
pr_…) from your Patchrooms dashboard, under Settings.
Add the tag
Section titled “Add the tag”-
In GTM, go to Tags → New.
-
Set Tag Configuration to Custom HTML, and paste:
<script src="https://room.patchrooms.com/v1/patchrooms/pr_xxx.js"></script>Replace
pr_xxxwith your project key. -
Set Triggering to All Pages (or a narrower trigger if you only want the widget on specific paths, e.g. a staging path).
-
Save the tag, then Submit and Publish the container.
Check it in Preview mode before publishing
Section titled “Check it in Preview mode before publishing”Use GTM’s Preview mode to confirm the tag fires before you publish the container to everyone:
-
In GTM, click Preview and enter your site’s URL.
-
In the Tag Assistant debugger, confirm the Custom HTML tag fired on page load (look for it under the page-load event).
-
In the site tab itself, confirm the Patchrooms launcher appears docked to the edge of the viewport.
Verify it works
Section titled “Verify it works”-
Load the published page (or the Preview-mode tab, if you’re checking before publishing).
-
Confirm the launcher appears.
-
Click it, leave a text block, and submit. The report should appear in your project’s Feedback tab within a few seconds.
If the launcher never appears even with the tag firing, see Troubleshooting — check the browser console for [Patchrooms] unknown project key, which means the pr_xxx placeholder in the tag wasn’t swapped for your real key.