@withkoji/analytics
v0.0.4
Published
Track custom events in your Koji templates
Downloads
3
Keywords
Readme
Koji Analytics (deprecated)
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.