Skip to main content
GTM lets you roll out Homie without touching theme code — perfect when multiple properties share the same container.

1 • Copy your embed script

Open the assistant in your Homie dashboardConnect and click Script kopieren.
Homie dashboard – Connect tab with script snippet

2 • Add a new tag in GTM

  1. Log into tagmanager.google.com and select your container.
  2. Click Add a new tag → choose Custom HTML.
Paste the snippet — it already contains your chatbotId and domain:
<script>
  (function () {
    window.homieBotConfig = {
      chatbotId: 'YOUR_CHATBOT_ID',
      domain: 'https://chat.yourhomie.ai',
    };
    var script = document.createElement('script');
    script.src = 'https://cdn.yourhomie.ai/embed.min.js';
    script.defer = true;
    if (document.readyState === 'loading') {
      document.addEventListener('DOMContentLoaded', function () {
        document.body.appendChild(script);
      });
    } else {
      document.body.appendChild(script);
    }
  })();
</script>

Optional: Add Store Parameter

If you need a store parameter, add storeId to the configuration:
<script>
  (function () {
    window.homieBotConfig = {
      chatbotId: 'YOUR_CHATBOT_ID',
      domain: 'https://chat.yourhomie.ai',
      storeId: 'your-store-id',
    };
    var script = document.createElement('script');
    script.src = 'https://cdn.yourhomie.ai/embed.min.js';
    script.defer = true;
    if (document.readyState === 'loading') {
      document.addEventListener('DOMContentLoaded', function () {
        document.body.appendChild(script);
      });
    } else {
      document.body.appendChild(script);
    }
  })();
</script>

3 • Set the trigger

Choose All Pages so the chat bubble loads site‑wide.
GTM – All Pages trigger

4 • Publish

Click SubmitPublish. GTM deploys the tag instantly. That’s it — refresh your site and the Homie bubble appears in the bottom‑right corner. Let the conversations (and sales) begin!

Troubleshooting

  • Tag fires but no bubble? Disable any script blockers and clear cache.
  • Only on specific pages? Adjust the trigger to a “Page View” rule.
  • Multiple environments? Use GTM’s built‑in environments to test before production.