Hi, my Hubspot Code is not working on my website.
The source code shows how it’s implemented, but it won’t fire as expected, as it’s not visible on the network tab.
I also added the domains under “advanced tracking” and added it to the default setting of our hubspot account.
It would be great if you had any other idea what I could try to make it work?
Thanks in advance!
Best Nina
@minimehealth Just found what is the matter!
Your opening and closing quotes around the url of the script tag are not correct, this is a result of copy/pasting, make sure you add the following to replace the tag
<script type="text/javascript" id="hs-script-loader" async defer src="//js-eu1.hs-scripts.com/24921754.js"></script>
The problem was that the quotes you pasted are parsed by the browser like text quotes so the browser added another pair of “correct” ones, resulting in an incorrect link.
See in the inspect of the browser how it added another set of quotes:
Also kind advice, always cross check with inspecting the elements as the source code is not actually what is rendered by the browser (it only shows how the response from the server looks, not what is renderd by the browser.) For more details check out this nice article
If my answer was helpful please mark it as a solution
Thank you so much. I completely overlooked that. It worked!