These appear in the live page source inside this comment block: <!--Hubspot Migration Assets--><!--migrated from CMS footer_html-->
What I have already done:
- GA3 integration is unchecked in Settings > Pages > All Domains > Integrations
- Searched all Design Manager templates — scripts are not there
- Checked site-wide footer HTML — scripts are not there
- Queried HubSpot API (cms/v3, content/v2) — no UA IDs exposed
- Submitted 3 support tickets — no response
Since Google shut down Universal Analytics in July 2024, these scripts load from a dead endpoint and are adding significant delay to my page load time (currently 14+ seconds per Google Lighthouse, target is under 5.3 seconds).
This appears to be a backend artifact only HubSpot engineering can clear. The Migration Assets block is not accessible through any customer-facing tool.
Can a HubSpot staff member escalate this for backend portal cleanup? Or if another community member has resolved this, I would love to know how.
One thing that the Migration service might have done is:
They might have put it into a module, or seperate file which is getting included/loaded in a different file like base.html
A different idea:
If you can’t find it in the code/templates, it might be added through the {{ standard_header_includes }} or {{ standard_footer_includes }} tag.
Since the <!-- HubSpot Migration Assets --> appears after the template_PCMethods_Nov2014-main.min.js
file, I’d start with this. Look into something like the base.html or the 404.html what comes after the js file.
the code is located in the second file. Simply remove the line, save it and it should be done.
Another idea:
Since it appears only on the 404 for me - are you checking all domains or a specific one in the settings? Just asking because it might be set for a specific domain.