We have a try page that launches directly into a Office 365 sign in page (similar to Google/Facebook OAuth page) that then redirects directly into our product.
We use the HubSpot API to create a contact based on the sign in user name (which is an email).
We also have the Hubspot tracker code in our product UI.
What we wanted to do is map the anonymous user that is tracked by the HubSpot tracker in the browser to the newly created contact.
I know we could force them to fill out a HubSpot form on the try page before sending them to the sign in page. but that is asking them for the email twice and isn’t a great experience and adds friction to signing up.
Is there a way in the API when creating a contact to use the tracker ID to let Hubspot map the web browsing activity?
Also, we can get the tracker ID in our product. Is there a way to see whether the contact already exists in HubSpot so we are just updating the record rather than creating a new one?