insihts
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Insihts Node Client

Installation

npm install insihts

Usage

import insihts from 'insihts';

insihts.init({
  websiteId: '50429a93-8479-4073-be80-d5d29c09c2ec', // Your website id
});

insihts.track({ url: '/home' });

The properties you can send using the .track function are:

  • hostname: Hostname of server
  • language: Client language (eg. en-US)
  • referrer: Page referrer
  • screen: Screen dimensions (eg. 1920x1080)
  • title: Page title
  • url: Page url
  • name: Event name (for custom events)
  • data: Event data properties

/insihts/

    Package Sidebar

    Install

    npm i insihts

    Weekly Downloads

    1

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    2.51 kB

    Total Files

    2

    Last publish

    Collaborators

    • 7hakurg