0.0.4 • Published 3 years ago

@withkoji/analytics v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

Koji Analytics (deprecated)

npm (scoped)

Track custom events in your Koji templates.

Overview

The @withkoji/analytics package enables you to track custom events in your Koji templates. For example, track onClick events for the links and buttons in a Koji.

DEPRECATED This package is deprecated and is included only for backwards compatibility. For new templates, use @withkoji/core.

Installation

Install the package in the frontend service of your Koji project.

npm install --save @withkoji/analytics

Basic use

Import the package in your application code.

import Analytics from '@withkoji/analytics';

Track custom events with unique names and optional payloads.

Analytics.track('My Custom Event');
Analytics.track('Won game', { score: 120 });

Related resources

Contributions and questions

See the contributions page on the developer site for info on how to make contributions to Koji repositories and developer documentation.

For any questions, reach out to the developer community or the @Koji Team on our Discord server.