Legacy ga.js scripts loading via HubSpot Migration Assets — cannot remove, 3 support tickets unanswe

Portal ID: 19230 | Site: pcmethods.com

My site is loading two legacy Universal Analytics scripts that I cannot remove through any HubSpot UI or API:

https://ssl.google-analytics.com/ga.js (UA-19813291-4)

https://ssl.google-analytics.com/ga.js (UA-19813291-1)

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.

Hey @pcmethods,

I couldn’t find the

<! HubSpot migration Assets -->
...

block on the live pages, but the 404 has it.

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.

If it looks something like this

{{ require_js(get_asset_url("some/path/to/template_PCMethods_Nov2014-main.js")) }}
{{ standard_footer_includes }}

The script is getting loaded into the {{ standard_footer_includes }} tag.

If it looks something like

{{ require_js(get_asset_url("some/path/to/template_PCMethods_Nov2014-main.js")) }}
{{ require_js(get_asset_url("some/path/to/a/different/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.

best,

Anton