Duplicate hubspot script with id: "hubspot-messages-loader" included on page


#1

I don’t know why I’m getting this error even though I have included it only once:

duplicate hubspot script with id: “hubspot-messages-loader” included on page
duplicate hubspot script with id: “hs-analytics” included on page


#2

I also just started seeing duplicate hubspot script with id: "hs-analytics" included on page on www.energysage.com and news.energysage.com.


#3

Having the same problem here. But I replaced the HS tracking code in favor of segment.com with a proper integration.


#4

I’m using Segment too and still have the problem.


#5

I’m getting the same message in the console.

(function (id, src, attrs) {
if (document.getElementById(id)) {
try { console.warn(‘duplicate hubspot script with id: "’ + id + ‘" included on page’); }
finally { return; }
}


#6

Any update about this?


#7

I’ve also got this problem.


#8

@Derek_Gervais any idea why is this happening?


#9

I have the same problem and think it is something to do with sitewide caching. I am using Wordpress and “Autoptimize” as well as the “Page Speed” plugin for caching external javascript files from a proxy. Not entirely sure how to fix it at the moment though.


#10

I’ve also got this problem!

duplicate hubspot script with id: “LeadFlows-1790729” included on page
duplicate hubspot script with id: “CollectedForms-1790729” included on page

Someone please?


#11

Same problem here…

duplicate hubspot script with id: "hubspot-messages-loader" included on page
duplicate hubspot script with id: "LeadFlows-515801" included on page

#12

Same here. Any news on this?


#13

Same here. Using WP plugin. Any news on this or should I inject the code manually without the plugin?


#14

How are you including the script? Does the loading hubspot script contains id? In my case loading hubspot script code without having id created the issue.