How can I track non embed Hubspot forms with Google Tag Manager?

Hi,

I have a Hubspot form which is not embeded on my website, but is linked on a https://share-eu1.hsforms.com/… page.

My question is how can I track form submits with a Google Tag Manager. So far in the GTM debug view, my form shows no tags, as it is not part of my website domain.

Many thanks for your help.

Best,

Ani

Hey @Anidimit3 thanks for your question!

I want to share a couple of resources that provide possible workarounds:

This community thread:
https://community.hubspot.com/t5/Reporting-Analytics/Tracking-booked-meetings-through-Google-Tag-Manager/m-p/262803

This knowledge base article:

I also want to tag a few community experts who may have alternative approaches to share.
Hey there @danmoyle @alyssamwilie @derekcavaliero — hope you’re having a great week! Any thoughts you’d like to add here?

Thanks,
Victor

Welcome to the Community @Anidimit3. I don’t believe you can track submissions of a stand‑alone HubSpot share link form directly with Google Tag Manager (at least not with any degree of certainty), because GTM is not loaded on the hsforms.com share page (it lives on HubSpot’s domain, not yours).

Here’s what I found for why that is. GTM only fires on pages where its container script is present (your domains and any other domains where you can add the container). HubSpot’s share URLs (e.g. https://share-eu1.hsforms.com/…) are hosted by HubSpot and you cannot inject your own GTM container into those pages. Because of that, GTM preview/debug will never show events or tags for that form: your container is simply not running on that domain.

Here’s what I would consider for some ideas on practical workarounds.

Embed the form on a page you control (ideal situation).

  • Create a page on your own domain (or HubSpot CMS page where you can add GTM via site settings).
  • Use the form embed code instead of the share link so the form loads on a page that already has GTM.
  • Then implement one of the standard HubSpot–GTM tracking approaches (e.g. hsFormCallback listener pushing a formSubmission event into the dataLayer, and trigger GA4 / Ads events from that).

Track via redirect “thank you” page (simplest).

  • Configure the form in HubSpot to redirect on successful submit to a unique thank‑you URL on your site.​
  • Add a GTM trigger for “Page view – Thank you URL equals X” and fire your GA4 / Ads conversion there.
  • This still requires that the thank‑you page is on a domain with GTM, but the form itself can remain on the share URL.​

Use HubSpot’s own tracking and send conversions server‑side.

  • If you only need conversions in Google Ads or GA4, you can use HubSpot’s native Google Ads / Analytics integrations or offline conversion uploads, instead of front‑end GTM on that form.​
  • For Ads, a common pattern is: track form submission in HubSpot → use HubSpot’s Google Ads integration or a server‑side/automation flow (e.g. via API) to send conversions back.​

The other soultion is to avoid using the share link for any tracking‑critical forms. For forms where conversion tracking really matters, replace the share URL usage with embedded forms on your own domain or HubSpot landing pages that have GTM installed.

Hopefully this helps think through your use case and gives you ideas to find a solution that works for you!