@StefanPopescu , it seems like the survey is probably loading before you are identifying the visitor. Do you agree with that? Possible to identify the visitor and then reload the tracking code? In the tracking code api overview HubSpot lists an example for tracking in single-page apps. It’s not for your specific use case but it does seem relevant. You may be doing this already but are you loading the tracking code after you’re identifying the visitor … and with the async/defer parameters?
I’m referencing the code block in the “Tracking in single-page applications” here: Accounts Dashboard | HubSpot.