vue-reporting

0.2.1 • Public • Published

vue-reporting

A small plugin to interface with some ananlytics/stat tracking services.

Currently only supports a small subset of Google Analytics functionality.

Methods

**create**

Initialize the analtyics.

this.$reporting.create({
    id: 'UI-123456789'
});

**page**

Set the page to track.

this.$reporting.page({
    path: String
});

**click**

Track a click event.

this.$reporting.click({
    category: String,
    action: String,
    eventLabel: String,
    eventValue: String,
    nonInteraction: [true || false]
});

Options

**driver**

default: 'google-analytics'

Set the driver for the plugin to use.

Currently only Google Analytics is supported.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i vue-reporting

      Weekly Downloads

      0

      Version

      0.2.1

      License

      none

      Last publish

      Collaborators

      • websanova