zhhz / gulp-ga

Adds google analystics code into html file
MIT License
5 stars 4 forks source link

Upgrade to gtag.js #8

Open ZiggyMo opened 7 years ago

ZiggyMo commented 7 years ago

The new recommended way to track is to use gtag.js rather than analytics.js. For more details see: https://support.google.com/analytics/answer/7538414#analyticsjs

zhhz commented 7 years ago

Hi ZiggyMo,

Thanks for the information. I haven't checked out gtag.js myself yet, not totally sure the requirements or pre-configuration/settings with google. So my concern here is how to not break the already existing gulp-ga users. Maybe we should add an option for switching between analyics and gtag...

Any PR will be more than welcome.

Thanks.

--Z

xied75 commented 6 years ago

Would second this. There is no reason to worry about the breaking change, if it breaks, it might be the time for the end-user to move on, eventually they need to move with what Google supports.