Mobile app version of vmapp.org
Login or Join
Connie744

: Is page speed better when the Google Analytics snippet is hard coded or through Google Tag Manager? What is the better implementation of Google Analytics for page speed? We use both Google Analytics

@Connie744

Posted in: #GoogleAnalytics #GoogleTagManager #PageSpeed

What is the better implementation of Google Analytics for page speed?

We use both Google Analytics and Google Tag Manager, would it be quicker to


Hard code both
Run GA through GTM

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Connie744

1 Comments

Sorted by latest first Latest Oldest Best

 

@Becky754

If you have GTM, you should use it instead of also hard-coding you GA tag. That's what your GTM is for - placing all your tags into one container and managing them all in one place. There's really no sense to have a GTM container loading on your pages and also to maintain a GA tag in the code.

Not only does GTM consolidate all your tags into one container, which is the only tag script that needs to load on your pages, but the tags within load asynchronously in most cases. That translates to faster load times.

That said, GA is a pretty lightweight tag, and UA tags load asynchronously by default. If you're heavily modifying your tag to include various integrations and additional logic, it may load more slowly. Still, with your GTM implemented, there's really no reason to do that. You won't win any milliseconds for sure, and may lose some.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme