@withkoji/analytics

0.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @withkoji/analytics

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

4.18 kB

Total Files

6

Last publish

Collaborators

  • victordemin
  • feliksg-koji
  • osedania
  • sthielen