Skip to content

v3.1.0

Compare
Choose a tag to compare
@lukeed lukeed released this 13 Oct 19:32
· 20 commits to master since this release

Features

  • NEW Added toWait argument to skip the "pageview" event upon initialization: (#5)

    Thanks @antonk52!

  • NEW The ganalytics UMD build is now available on unpkg.com 🎉

    Check it out: https://unpkg.com/ganalytics

  • NEW You are now able to initialize ganalytics without using new

    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

Chores