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

0.8.1 • 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

9,494

Version

0.8.1

License

Apache-2.0

Unpacked Size

162 kB

Total Files

77

Last publish

Collaborators

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