@coveo/relay
TypeScript icon, indicating that this package has built-in type declarations

0.7.7 • Public • Published

@coveo/relay

Relay is a compact library for emitting Event Protocol analytics events. It simplifies tracking relevant user interactions. This analytics data powers reports and helps train Coveo Machine Learning models.

Usage

First, create an instance of Relay in your project. This instance can then be used to emit an event or perform other actions.

import { createRelay } from "@coveo/relay";

const config = {...};
const relay = createRelay(config);

const payload = {...};
relay.emit('itemView', payload);

Official documentation

Package Sidebar

Install

npm i @coveo/relay

Weekly Downloads

8,487

Version

0.7.7

License

Apache-2.0

Unpacked Size

149 kB

Total Files

73

Last publish

Collaborators

  • ndescoteaux-coveo
  • sallain
  • aboissinot
  • mmitiche
  • jkatofsky
  • agong-coveo
  • pixhel
  • ndlr
  • npmcoveo
  • camarois
  • lcoolen
  • coveo-organization
  • coveoit
  • olamothe
  • sssayegh
  • ylakhdar