When my page is load, I expect to see a NPS survey, but it only shows after a page refresh.
Steps to reproduce is:
- I open my page in a browser without HubSpot cookies(nothing happen, no NPS survey);
- Refresh page(NPS shows up);
I create a super simple html file where I identify user by email and load Hubspot script. You can see it here, Identify user HubPost · GitHub. You can think in this page as a cool landing page where I already know my customer email and I want to show feedback survey.
I want to make NPS appears on first access, how can I make it works?
Hi, @Anonymous Welcome to our community. Thanks for your question.
To help the community better understand your project, it would be useful to have more context about your implementation:
Are you using a specific HubSpot NPS tool, or is this a custom implementation?
How is the NPS survey being loaded? Is it part of the page’s HTML or loaded via JavaScript?
Are there any error messages in the browser console when the page initially loads?
Providing such context can help others understand your situation and provide more accurate solutions.
Here are a few general steps you can try:
Check for script loading order: Is everything loaded in the correct order?
Investigate script execution timing: The survey script might be executing before the HubSpot user identification is completed. One suggestion is to try wrapping the survey script in a callback function that only runs after the user identification is complete
Look for errors
Test across browsers
When you provide more context and information about your implementation, it’ll be easier to identify the root cause of the problem and offer a more accurate solution.
I found Hubspot works just setting the cookie, so refresh needs to happen, this is the way hubspot works. It just dont works the way i need, se i need to find another service.