Streaming live at 10am (PST)

Hubspot and Webflow : Javascript file not found

Hi everyone :slight_smile:
I need help! :exploding_head:

My agency is trying to implement Hubspot on our website, by adding the following snippet of code provided by hubspot

<!-- Start of HubSpot Embed Code -->
<script type=“text/javascript” id=“hs-script-loader” async defer src=“//”></script>
<!-- End of HubSpot Embed Code -->

But this error message appears in the console

I put this code in the footer custom code section of the website. After that still didn’t work, my colleagues followed hubspot’s documentation and implemented the code through Google Tag Manager.
Tag manager shows that the tag is firing, but we get an error of javascript file not found.

Anyone knows why that could be ? I’m a bit lost here…

Thank you in advance!!

Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Hi @Milla_Barbanera ,
Can you share the published link?


Here it is :

@Milla_Barbanera I don’t see that script in your published site. The current error is related to Typed.js which looks like its failing because of a missing class.

Yes that’s because we put it through Google Tag Manager, but it’s there and firing but the error is still showing on the page… It seems webflow cant find the javascript file from the snippet of code added.
don’t you see that error when inspecting the site ?

Thank you for your help!

Where exactly is this running? I can’t see the script or error at all on your site.

Found it after accepting the cookie-stuff.

Your src is wrong. Use this:

<script type="text/javascript" id="hs-script-loader" async defer src=""></script>

Webflow is prepending your base URL to the script source:

thank you so much :slight_smile: it worked :slight_smile: