Comments (2)
gtag
was released without support for most of the advanced analytics.js
features this boilerplate uses (e.g. tasks and plugins), so if you like these features then I wouldn't recommending using gtag
.
The other thing to be aware of about gtag
is it's not really an analytics.js
replacement, it's a wrapper library on top of analytics.js
(and others), meaning the gtag
library still needs to load analytics.js
, and it needs to convert all relevant gtag
commands to analytics.js
commands and run them.
As of right now, gtag
is 54.5K and analytics.js
is 33.7K, and since gtag
will also load analytics.js
, it's 262% more code for less functionality. There's also the problem that gtag
is site-specific (because you add your tracking ID as a query string), so it's unlikely your users will have it cached; analytics.js
on the other hand is used all over the web, so it's very likely to already be in your visitors cache when they load your site.
So, for all these reasons, I don't plan to switch to gtag
as it'll just end up making my site take longer to load and consume more of my user's bandwidth.
from analyticsjs-boilerplate.
Thanks @philipwalton! Very helpful in better understanding the goals of your boilerplate and the realities around gtag
. Keep up the great work.
from analyticsjs-boilerplate.
Related Issues (17)
- The link to "Select Autotrack Plugins" does not resolve HOT 1
- Add license 😊 HOT 2
- HIT_SOURCE HOT 1
- how to use the bolierplate as a newbie to analyticsjs HOT 1
- Visibility State and URL Query Params dimension Scope HOT 1
- IE <11 doesn't support addEventListener('error')
- Custom Dimensions not being sent HOT 2
- The link to "multiple trackers" does not resolve HOT 1
- Docs: Google Analytics Dashboard
- Tag Manager and Analytics Boilerplate HOT 3
- [Q]: ga maybe undefined because of async loading module
- The link to analytics/base.js may be mispointed HOT 1
- The link to multiple-tracker 404s HOT 1
- VISIBILITY_STATE HOT 1
- Building for production with Webpack results in errors HOT 15
- production build HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analyticsjs-boilerplate.