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

@bluenath/engage

v2.0.16

Published

The official event tracking SDK for EngagePro. EngagePro provides high-performance, robust product analytics and conversion tracking for modern e-commerce applications.

Readme

@bluenath/engage

The official event tracking SDK for EngagePro. EngagePro provides high-performance, robust product analytics and conversion tracking for modern e-commerce applications.

Installation

Install the package using your preferred package manager:

npm install @bluenath/engage

Quick Start

React and Next.js Applications

Initialize the SDK at the root of your application using the EngageProProvider:

import React from "react";
import { EngageProProvider } from "@bluenath/engage";
import App from "./App";

export default function Root({ children }) {
  return (
    <EngageProProvider
      apiKey="YOUR_PUBLIC_API_KEY"
      tracking={{
        autoTrack: true,
        useCookies: true,
        fingerprint: true,
      }}
    >
      {children}
    </EngageProProvider>
  );
}

To track events or identify users in a component, use the useAnalytics hook:

import { useAnalytics } from "@bluenath/engage";

export function CheckoutButton() {
  const analytics = useAnalytics();

  const handlePurchase = () => {
    analytics.track("PURCHASE", {
      amount: 4999,
      currency: "USD",
      ref: "campaign_123",
    });
  };

  return <button onClick={handlePurchase}>Complete Purchase</button>;
}

Vanilla JavaScript Applications

Import and initialize the core engage instance at the entry point of your application:

import { engage } from "@bluenath/engage";

// Initialize once
engage.init({
  apiKey: "YOUR_PUBLIC_API_KEY",
  tracking: {
    autoTrack: true,
    useCookies: true,
    fingerprint: true
  }
});

// Manual event tracking
engage.track("PURCHASE", {
  amount: 2999,
  currency: "USD"
});

Best Practices for Zero-Code Integration

When autoTrack is enabled, EngagePro automatically monitors the DOM for user interactions. To ensure absolute data accuracy without writing manual tracking code, attach our custom HTML attributes to your interactive elements.

Our SDK is heavily optimized and operates securely in the background without degrading your application's performance.

Recommended Attributes

Add these attributes to your buttons, links, or product containers:

  • data-engage-product-id: The unique identifier (SKU or ID) of the product.
  • data-engage-product-name: The name of the product.
  • data-engage-price: The numerical price of the product (e.g., "19.99").
  • data-engage-currency: The currency code (e.g., "USD", "EUR").
  • data-engage-category: The product category or collection.
  • data-engage-action: A custom label for the interaction (e.g., "Hero Banner Click").

Example Component

export function ProductCard({ product }) {
  return (
    <div 
      className="product-card"
      data-engage-product-id={product.id}
      data-engage-product-name={product.name}
      data-engage-category={product.category}
    >
      <h3>{product.name}</h3>
      <p>${product.price}</p>
      
      <button 
        data-engage-action="Quick Add"
        data-engage-price={product.price}
        data-engage-currency="USD"
      >
        Add to Cart
      </button>
    </div>
  );
}

Campaign & Creator Attribution

EngagePro SDK includes built-in support for cryptographically signed campaign and creator attribution:

  • Automated Ref Extraction: The SDK automatically parses the ep_ref query parameter from the landing page URL and stores it.
  • Session Persistence: The ref is persisted across pageviews during the session, so you do not need to manually pass the reference parameter to subsequent track calls.
  • Downstream Linking: When users trigger a conversion event (such as PURCHASE or SIGNUP), the SDK automatically attaches the verified campaign context, facilitating attribution, click deduplication, and fraud verification on the server side.

Configuration Options

| Property | Type | Required | Description | | :--- | :--- | :--- | :--- | | apiKey | string | Yes | Your public brand API key from the EngagePro Dashboard. | | tracking.autoTrack | boolean | Yes | Enables automated interaction capture. | | tracking.useCookies| boolean | Yes | Persists identifiers across sessions. | | tracking.fingerprint| boolean | Yes | Includes device context for fraud prevention and unique visit tracking. | | debug | boolean | No | Enables console logging for integration testing. |

Documentation and Resources

For detailed API references and integration guides, please visit our website and documentation: