Cross Domain Tracking

Situation for any community help:
I have a parent domain (non-gated) and several subdomains which are gated. The parent domain has the hubspot tracking code on it, which as I understand it, tracks a first time visitor anomously then upon a form fill in, would attach further profile information on to their cookie/record, (fname, last name, company etc).
For the gated subdomains is there any way to pass login information from that subdomain over to the parent domain if there’s a link from the subdomain (after logging in) to the parent. Ideally want to pre-fill forms etc?
Any help is greatly appreciated.

Hello @DBarry9114s,

Thanks for bringing this to the Community!

I found a similar post that may get you pointed in the right direction here! https://community.hubspot.com/t5/CRM/Password-Gated-HubSpot-Landing-Pages-Tracking-and-Pre-Population/td-p/1184805
I’d also like to tag in some of our Top Contributors to see if they have any tips and tricks on this!

@Josh, @evaldas, @RubenBurdin Do you have any suggestions for @DBarry9114s on this?

Thank you!

Sam, Community Manager

Thanks @SamTassey helpful but unfortunately not an exact fit. Hoping that some of the other experts respond either with an idea or it’s not possible. We definitely have login profile information captured on the subdomain but not through hubspot, but ideally would want to pass that information over to the hubspot page via a hyperlink and then have the form on the parent domain fill in with that pass over.

Hi @DBarry9114s,
You can combine HubSpot’s built-in domain settings with dynamic URL parameters. Here is a straightforward way to set this up:
Check your Advanced Tracking settings (found under Tracking Code). Ensure your domains are in the ‘Additional site domains’ list and that ‘Automatic cross-domain linking’ is toggled ON. This ensures HubSpot passes the visitor’s identity via the URL when they click from your gated subdomain back to your main site. Since your users are already logged into the subdomain, your application “knows” who they are. You can pass that information back to the parent domain by appending it to the links.
Use URL Parameters
Instead of a simple link to your page (abc.com/contact), you can programmatically append the user’s data to the link within your gated environment, like this:
https://www.abc.com/contact?email={{contact.email}}&firstname={{contact.firstname}}