v3.1.0
Features
-
NEW Added
toWait
argument to skip the"pageview"
event upon initialization: (#5)Thanks @antonk52!
-
NEW The
ganalytics
UMD build is now available onunpkg.com
🎉Check it out: https://unpkg.com/ganalytics
-
NEW You are now able to initialize
ganalytics
without usingnew
However, you still can if you want to!
import GA from 'ganalytics'; // Before (this still works); const foo = new GA(...); foo.send('event', ...); // After: const bar = GA(...); bar.send('event', ...);
Miscellaneous
-
Refactor: Inline all methods for significant byte savings: dc003bc, b4b86df
Dropped almost 100 bytes (-21%)! -
The
module
entry now uses.mjs
extension: 06e1eb3
For the bundler(s) that prefer it to.js