Tags
Custom Events
Collects, processes, and reports custom events through its own privacy-focused API and infrastructure.
Usage
The nano-custom
package allows you to track custom events with any metadata you need, securely, in your web application.
Installation
Install the nano-custom npm package:
Embedding & Simple Usage
To enable custom event tracking, include the following in your top-level HTML (e.g., index.html
):
Tracking with Metadata
You can enhance your event tracking by passing an object with additional metadata fields. This object can contain any custom fields you need.
The fields category
, label
, and value
are predefined and, if included, will be displayed in your analytics dashboard.
This additional metadata allows you to categorize and label your events for better analysis in the dashboard.
Edit on GitHub
Last updated on