Hi
(not to be confused with Google Tag Manager/GTM).
I am not confusing them.
But my understanding is that Google is intentionally replacing analytics.js with gtag.js
Not really. Gtags is actually an extension of analytics.
I don't think it's truly a different product as you stated. Instead, it seems to be a different delivery method of the same product (Google Analytics), but also lets you add integrate other Google specific tracking mechasims.
It actually is an additional library, that loads analytics.js on top of itself (when gtag is used on websites). In other words, it will never be a replacement for analytics. When you use gtag, you still use and load analytics.js. As such and in call cases, it will always be implemented as a 3rd option.
My point is, why woudln't you want to upgrade sh404sef to support gtag.js overtime
I just wrote the opposite of that.
My point is, why woudln't you want to upgrade sh404sef to support gtag.js overtime since it has more integrations with Google products out of the box and since it is Google Analytics preferred method of implementation now?
Any info that you can provide as to why it's beneficial for our clients to stick with analytics.js over gtag.js would be very helpful.
Because if you don't need the actual features provided by gtag, you are wasting CPU and transfer resource and making (at least) one more request to grab analytics. Gtags is about 90KB going over the network and around 220KB of javascript to be executed. Unlike analytics.js, it can't even be cached across sites because it passes the UA id in the request.
And of course you still have the about 20K transferred and 45KB executed of analytics.js itself.
So on the contrary, you would need a very strong and compelling reason to start using gtag over analytics.
Best regards
Yannick Gaultier
weeblr.com / @weeblr