APIs & Integrations

EBloom
Member

Passing Hubspot Marketing ID To GTM Data Layer

SOLVE

Hi there, I'm wondering if anyone has successfully done this? I am looking to pass unique marketing IDs from our CRM to a client's pixel in GTM, but first need this pushed to our GTM data layer. I've been having a hard time finding what the macro is for this marketing ID. I've read a lot on the form GUID, would passing the hs-form-guid solve for this or are form GUIDs not uniquely generated for each user upon submission? Has anyone had luck with passing through the contact ID / user matching?

 

Any and all help is welcomed! 

0 Upvotes
1 Accepted solution
jonchim
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Passing Hubspot Marketing ID To GTM Data Layer

SOLVE

Hi @EBloom,
When you refer to contact ID, are you referring to the object ID in the CRM? I don't believe that id is generated until the form is submitted so I don't think there's anything you can pass through until the thank you page maybe there's a conversion snippet you can pass but even then i think there's a slight delay upon submission and record creation. I think the thread @BérangèreL linked above from Teun's solution might be the better route since you'll be passing the email directly from the input as the form is being submitted.






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution

View solution in original post

0 Upvotes
2 Replies 2
BérangèreL
Community Manager
Community Manager

Passing Hubspot Marketing ID To GTM Data Layer

SOLVE

Hi @EBloom, I hope that you are well!

Thank you for asking the Community!

I moved your post to the Developers Forum so that you can get help from experts in this field for more visibility.

I found for you this similar thread with a solution from @Teun "Google Tag Manager - Push Form Data to dataLayer" that might help you.

I'd like to share these resources that can also help:

- Find your form GUID
- Get a form by its unique ID
- Submit data to a form

I also wanted to invite a couple of subject matter experts to this conversation: Hi @Teun, @alyssamwilie and @jonchim do you have suggestions to help @EBloom, please?

Also, if anybody else has anything to add and/or share, please feel free to join in the conversation 🙂

Thank you very much and have a great day!

Best,
Bérangère


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres! !
0 Upvotes
jonchim
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Passing Hubspot Marketing ID To GTM Data Layer

SOLVE

Hi @EBloom,
When you refer to contact ID, are you referring to the object ID in the CRM? I don't believe that id is generated until the form is submitted so I don't think there's anything you can pass through until the thank you page maybe there's a conversion snippet you can pass but even then i think there's a slight delay upon submission and record creation. I think the thread @BérangèreL linked above from Teun's solution might be the better route since you'll be passing the email directly from the input as the form is being submitted.






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution
0 Upvotes