Socket
Book a DemoInstallSign in
Socket

@insihts/node

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@insihts/node

Node client for Insihts

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@insihts/node

Installation

npm install @insihts/node

Usage

import insihts from '@insihts/node';

insihts.init({
  websiteId: '31238599-94ad-4bec-a265-f409ab07f075', // 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

FAQs

Package last updated on 09 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.