Preventing tracking codes GA/GTM/Hubspot tags from affecting site-speed?

Contacted Prismic Chat directly but they haven't been able to help. Has anyone had any success preventing tracking codes from negatively affecting Google Page Speed Insights score? It's a massive negative contributing factor to both our mobile and desktop speeds currently.


Hi Nicolas,

Welcome to the community!

I'll be happy to look into this with you. Can you give me more details on exactly which scripts you're talking about, maybe with screenshots of you browser console etc?


Hey Phil! Absolutely!

Not sure if the page speed insights link itself might be better in this case:

You'll notice under "Reduce the impact of third-party code" is where most of the issue comes into play and that's really what I'm looking for help with :slight_smile:

We've struggled on our end to find a suitable solution to prevent the load time being so significant

Hey Phil,

Just want to chase this up :slight_smile:

Hey Nicolas,

These scripts are coming along with our toolbar which is used for the content Previews, the only way to remove them is to remove this script and disable Previews.

Threads close after a period of inactivity. Flag this thread to re-open it and continue the conversation.