Hubspot automatically takes email when user logged in into their website.

I am using hubspot in my own website, so when I ask anything to huspot chat then it asks me for email address, but whenI logged in into my website then hubspot automatically takes it. so how husbpot is taking my email, without entering email in hubspot chat?

Hi @01583 :waving_hand:

Do you, by chance, have the “Use Non-HubSpot Forms” feature enabled? Sounds to me like the HubSpot tracking code “picked up” your email address when you logged in to your site. When you then interacted with the chat widget, it can likely reference that email address.

Please note, this is just a hunch. I’ve not confirmed with testing.

I hope this proves useful. Please let me know if you have any follow-up questions.

But, when I trying to login in my site, using google and facebook login then hubspot is not taking my email info automatically, Hubspot still asks me for enter email id, even after I am already loggedin into my website using google/fb login. what is the reason for that?
If hubsot takes email automatically when I login using enter email and password into my website, then it should also do the same when I login using google/fb into my website.
what is the reason and how we can do the same with google/fb login?

Hi @HMandwariya :waving_hand:

That’s likely because the HubSpot tracking code is likely unable to access the email address associated with the given Google/Facebook account.

Assuming it’s possible to access this programmatically in the browser, you might consider using the HubSpot tracking code “identify” event. That might do the trick :crossed_fingers: More information about this can be found here.

That means hubspot is taking email information through the tracking code.
Tracking code is accessing information from browser cache or cookies, or how it is happening?

Please explain.

I tried this way but not working by identify event.
can you please suggest some other solution?