This package has been deprecated

Author message:

resin-universal-ga is deprecated, please use balena-universal-ga instead

resin-universal-ga

1.3.0 • Public • Published

Resin Universal GA Wrapper

Loads the universal-analytics module in Node.js and (asynchronously) the library from the CDN in the browser.

Browser usage needs Webpack, Browserify or other bundler that tolerates the browser field in package.json.

Installing

$ npm install resin-universal-ga

Debugging in the browser

In the browser the global GA_CUSTOM_LIB_URL variable can be set to make GA loader load a different GA implementation (for example, mocked or with extra debug info).

The official debug version from Google is https://www.google-analytics.com/analytics_debug.js.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i resin-universal-ga

    Weekly Downloads

    2

    Version

    1.3.0

    License

    Apache-2.0

    Unpacked Size

    4.54 kB

    Total Files

    6

    Last publish

    Collaborators

    • balena.io