zhhz / gulp-ga Goto Github PK
View Code? Open in Web Editor NEWAdds google analystics code into html file
License: MIT License
Adds google analystics code into html file
License: MIT License
Thank you for this package. I think there is a typo in the example shouldn't bunceTime be bounceTime
.pipe(ga({bunceTime: 15}))
Shouldn't it be?
.pipe(ga({bounceTime: 15}))
According to 5bd3b0a we should be able to do ga{sendPageView: true }
, however it seems that the string is not added.
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
Hi,
Is there a way to add multiple UAs for the same domain?
Similar to awestruct
it should support further options:
https://github.com/awestruct/awestruct/blob/master/lib/awestruct/extensions/google_analytics.rb#L61
html += %Q(ga('create', '#{options[:account]}', 'auto');\n)
html += %Q(ga('send', 'pageview');\n)
html += %Q(ga('set', 'anonymizeIp', true);\n) if options[:anonymizeIp]
html += %Q(ga('require', 'displayfeatures');\n) if options[:demographics]
html += %Q(ga('require', 'linkid', 'linkid.js');\n) if options[:linkAttribution]
html += %Q(setTimeout("ga('send', 'event', 'read', '#{options[:bounceTime]} seconds')", #{options[:bounceTime]}000);\n) if options[:bounceTime]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.