Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cronitorio/cronitor-rum

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

@cronitorio/cronitor-rum

Official Cronitor RUM client (browser)

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Cronitor RUM client (browser)

A simple JavaScript library for Cronitor Real User Monitoring.

Quickstart

Install

Run the following command to install in your project:

npm install @cronitorio/cronitor-rum

Or with yarn:

yarn add @cronitorio/cronitor-rum

Basic usage

You can now import, and use the client on your project.

import * as Cronitor from '@cronitorio/cronitor-rum';

// Load the Cronitor tracker once in your app
Cronitor.load('YOUR_CLIENT_KEY');

// This is how you record page views
Cronitor.track('Pageview');

// You can also trigger custom events
Cronitor.track('NewsletterSignup');

You can set any configuration options as follows:

import * as Cronitor from '@cronitorio/cronitor-rum';

// Load the Cronitor tracker once in your app
Cronitor.load('YOUR_CLIENT_KEY', {
    debug: true,
    environment: "staging",
    includeURLQueryParams: ["tab", "pageNum"]
});

Changelog

0.4.1

  • Bug fix. Bind sendBeacon to navigator.

0.4.0

  • Rename package.

0.3.0

  • Open source analytics script.

0.2.0

  • Update types.

0.1.0

  • Initial open source release.

Security Disclosure

If you discover any issue regarding security, please disclose the information responsibly by emailing us at support@cronitor.io. Do NOT create a Issue on the GitHub repo.

Contributing

Please check for any existing issues before opening a new Issue. If you'd like to work on something, please open a new Issue describing what you'd like to do before submitting a Pull Request.

License

See LICENSE.

Keywords

FAQs

Package last updated on 07 Oct 2023

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc