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:
hutk: ... // the value of "hubspotutk" cookie,
pageName: 'Sign Up'
- we send data about new user with hs_context object to our server side and server side calls Hubspot Forms API to submit user
s data and create new contact. We do the same for our main signup flow (sending data to Hubspot API) but the difference is that after login via Social Network the most of the users have "Original Source" = Direct traffic & "Original Source Drill-Down" = "No URL". This is our main issue. Seems like browser and hubspot analytic script lose information about original http referer. Also we can try to update contacts "Original Source Drill-Down" field manually but it looks like read-only property.