Hi All,
We are embedding HubSpot forms on our Webflow website, and everything works fine on the English version. However, on the Spanish version, we are encountering the following error:
“Uncaught ReferenceError: hbspt is not defined”
We are using the same embed script on both versions:
<script charset=“utf-8” src=“js.hsforms.net/forms/embed/v2.js” defer=“” async=“”></script>
Despite this, the Spanish version fails to recognize hbspt. We have verified that the script is loading correctly, but the error persists.
Could you help us troubleshoot this issue? Is there a known conflict with Webflow’s localization, or do we need to adjust how the script is loaded?
Looking forward to your guidance.
Thank you all!!
Hey @AKeselj this happens when the v2.js script is not loading correctly. I haven’t seen this happen in webflow specifically but are you seeing any other console errors? Can you share a page you’re seeing this on?
Are you using dynamic loading? Some web pages will load everything and won’t re-load the HTML of a page when the page is opened, which means the script doesn’t reload and can cause issues.