npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cevoid/analytics-sdk

v1.0.8

Published

Lightweight client-side analytics library for Cevoid UGC interaction tracking

Readme

@cevoid/analytics-sdk

Cevoid's browser-side analytics SDK for storefront integrations.

Use it to initialize client-side tracking, identify shoppers, track Cevoid widget interactions, and send completed purchase events from your storefront.

Installation

npm install @cevoid/analytics-sdk

Quick start

Initialize the SDK once before sending events.

import { identify, init, trackEvent, trackSale } from '@cevoid/analytics-sdk'

init({
  publishableKey: 'cev_pk_...',
  enableSessionTracking: true,
  cookieDomain: '.example.com'
})

identify({
  externalId: 'shopify_customer_123'
})

trackEvent('widget.load', {
  widgetId: 'gallery-homepage',
  widgetType: 'gallery',
  postsLoadedCount: 12
})

trackSale({
  orderId: 'order_123',
  currency: 'USD',
  revenue: 129.99,
  skus: ['SKU-123']
})

Root API

Import from @cevoid/analytics-sdk for browser or storefront integrations.

import { identify, init, reset, trackEvent, trackSale } from '@cevoid/analytics-sdk'

init(config)

Call init() once before your first tracking call.

| Option | Type | Default | Description | | --- | --- | --- | --- | | publishableKey | string | — | Required workspace publishable key. | | enableSessionTracking | boolean | false | Enables Cevoid-managed session tracking after consent checks pass. | | cookieDomain | string | — | Sets the domain for the cevoid_sid cookie. | | emitBrowserEvents | boolean | true | Emits browser CustomEvents such as cevoid:post.click. | | apiHost | string | https://telemetry.cevoid.com | Overrides the telemetry host. |

Repeated calls after the first successful initialization are ignored.

identify(data)

Attaches profile-level context to future events.

Supported fields:

  • profileId?: string
  • externalId?: string

trackEvent(name, data)

Tracks supported Cevoid UGC widget events.

Use the full event reference for supported event names, payload fields, and accepted values:

trackSale(data)

Tracks a completed storefront purchase as sale.complete.

revenue must be provided as a decimal major-unit amount in the same currency as currency, such as 129.99 USD.

Use the full conversion reference and implementation guide here:

reset()

Clears initialization state, deferred events, and in-memory identity data.

React

Import from @cevoid/analytics-sdk/react for React applications.

import { Analytics as CevoidAnalytics, useAnalytics } from '@cevoid/analytics-sdk/react'

function App() {
  return (
    <>
      <CevoidAnalytics publishableKey="cev_pk_..." enableSessionTracking={true} />
      <Gallery />
    </>
  )
}

function Gallery() {
  const { trackEvent } = useAnalytics()

  return (
    <button
      type="button"
      onClick={() => {
        trackEvent('gallery.upload_cta_click', {
          widgetId: 'gallery-homepage',
          widgetType: 'gallery'
        })
      }}
    >
      Upload
    </button>
  )
}

Documentation

Notes

  • Initialize the SDK before your first tracking call.
  • publishableKey is required for new integrations.
  • Session tracking is optional and only needed if you want Cevoid-managed session IDs.