1.0.1 • Published 3 years ago

nuxt-rtanalytika v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

RealTime Analytika for Nuxt.js

npm npm (scoped with tag)

This is the official nuxt module for RealTime Analytika platform.

Add RealTime Analytika analytics to your Nuxt.js application. This plugin automatically sends first page and route change events to RealTime Analytika.

About RealTime Analytika

RealTime Analytika is a real time analytics platform for all your web analytical needs which gives you several features out of the box such as Replay, Channels, Heatmaps, Page Flows, Events, Notes, Tag Clouds etc.

Don't have account? Create one at RealTime Analytika here.

Setup

  • Installation:
    yarn add nuxt-rtanalytika
  • Configuration:
    • Open nuxt.config.js and add nuxt-rtanalytika inside the modules like below:
      • modules: ['nuxt-rtanalytika']
    • Add rtanalytika module option and pass the uid like the below:
      • rtanalytika: { uid: 'R3J-XXXX' },

Module Options:

  • uid - String (required) - The rtanalytika uid
  • ignores - Array (optional) - The list of nuxt route names to ignore tracking.
    • i.e: 'ignores': ['route1', 'route2']

Usage

The module injects $rtanalytika to the context which makes it easier to access the addEvent method which helps us track custom events.

  • i.e: $rtanalytika.addEvent('Add to cart', 1);