Skip to main content

Use Google Tag Manager with Your Hubflo Client Portal

Learn how to integrate Google Tag Manager with your Hubflo client portal to add custom scripts, analytics, and chat tools.

Hubflo Team avatar
Written by Hubflo Team
Updated over 2 weeks ago

Google Tag Manager (GTM) is a free tool from Google that lets you easily add tracking scripts, chat widgets (like Intercom), analytics tools (like Google Analytics or Hotjar), and other custom code to your website.

With Hubflo, you can seamlessly integrate GTM into your client portal, giving you full control over what tools or snippets run and when. This makes it easy to track user behavior, personalize content, and improve your clients' experience.

What You Can Do with GTM + Hubflo

  • Install chatbots or live chat (like Intercom, Drift, Crisp)

  • Track user events with Google Analytics 4

  • Use retargeting scripts (Facebook Pixel, LinkedIn Insight)

  • Add A/B testing tools like Google Optimize

  • Trigger custom scripts on specific steps in your client journey

This article will walk you through how to connect Google Tag Manager to your portal.

Before You Begin

You’ll need:

  • A Google Tag Manager account (it's free)

  • Your GTM container ID (e.g., GTM-XXXXXXX)—you'll find this in the top-right of your GTM dashboard

Connect GTM to Your Hubflo Portal

  1. In Hubflo, go to Settings > Client Portal > General settings/Domain.

  2. Scroll to the Google Tag Manager ID field.

  3. Paste in your GTM container ID.

  4. Click Save.

That’s it! Hubflo will now load your GTM scripts across your portal pages.

Tip: For security and privacy, Hubflo disables search engine indexing for all client portals by default.

If you'd like yours to appear in public search results, toggle on “Allow search engines to index portal” in Settings > Client Portal > General settings/Domain.

Configure Tags and Triggers in GTM

Now that Hubflo is connected, you can start creating triggers and tags for the tools you want to use.

Create a Trigger for All Portal Pages

This trigger ensures your tag runs on every page of the client portal:

  1. In GTM, go to Triggers > New.

  2. Name your trigger (e.g., “All Portal Page Views”).

  3. Choose Trigger Type: Custom Event.

  4. In the Event name, enter: upflow model page views

  5. Set the trigger to fire on All Custom Events.

  6. Save.

Create a Trigger for a Specific Portal Page

Want to fire a script only on the client dashboard, or a success page? You can target specific URLs:

  1. Navigate to the page in your portal and copy part of its URL (e.g., /seal/submissions).

  2. In GTM, go to Triggers > New.

  3. Choose Custom Event as the Trigger Type.

  4. In the Event name, enter: virtualPageView

  5. Set it to fire on Some Custom Events.

  6. Under conditions, choose:

    • Page Path

    • contains

    • e.g., seal/submissions

  7. Name your trigger descriptively (e.g., “Form Submissions”).

  8. Save.

Add Your Tag (Script)

Now let’s add a tool like Intercom, Hotjar, or HubSpot using GTM.

Add a Tag for All Portal Pages

  1. Go to Tags > New in GTM.

  2. Click on Tag Configuration.

  3. Name your tag (e.g., “Intercom Site Tag”).

  4. Choose Tag Type: Custom HTML.

  5. Paste your script (e.g., Intercom or GA snippet) into the HTML field.

  6. Under Triggering, select your global trigger (“All Portal Page Views”). This will ensure the script runs on all portal pages.

  7. Save.

Add a Tag for a Specific Page

Use this for scripts you only want to run on a particular client view:

  1. Create a new tag as above, with your HTML snippet.

  2. Under Triggering, choose your targeted trigger (e.g., “Client Dashboard Only”).

  3. Save.

(Optional) Set Exceptions

If you want a tag to run everywhere except a certain page:

  1. Edit your tag and scroll to Exceptions.

  2. Click Add Exception.

  3. Select a trigger that matches the page you want to exclude.

💬 Need help? Chat with us directly in your Hubflo dashboard or email us at [email protected]—we’re happy to help!

Did this answer your question?