We use social login (Google, GitHub and Microsoft as Identity Providers) and we wanna understand users that signup where they came from.
The flow looks like this
- User lands on the website for example from a campaign (
utm
params in the url)
- User accepts the hubspot tracking banner
- User clicks on the signup button
- User is redirected to our "developer portal" where we trigger a social login with their selected provider. We have the hubspot tracking code running also on our developer portal.
- User finishes the signup and lands on our internal console dashboard
We are pushing a new contact to Hubspot on step 5
but at that point we lose all the information about how the user landed in first place on our website, if it was direct traffic or ads campaign etc because we are creating the contact from our backend calling the Hubspot API.