We implemented on our site Login via Social Networks:
site redirects user to Google or FB and after success result it returns back to our site
our cient side js code prepares data for hubspot like this:
hs_context: JSON.stringify({
hutk: ...
read more