universal-analytics-koa

    0.0.7 • Public • Published

    Universal Analytics Koa - NodeJS

    A fork of Peaks & Pies universal-analytics with added support for koa framework middleware.

    Usage

    var ua  = require("universal-analytics");
    var koa = require("koa");
    var app = koa()
     
    app.use(ua.koa("UA-XXXX-Y"));

    The middleware will attach the visitor instance to every request (this.req.visitor).

    The Rest of the Documentation

    https://github.com/peaksandpies/universal-analytics

    Install

    npm i universal-analytics-koa

    DownloadsWeekly Downloads

    9

    Version

    0.0.7

    License

    MIT

    Last publish

    Collaborators

    • otothea