@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

/@coveo/relay/

    Package Sidebar

    Install

    npm i @coveo/relay

    Weekly Downloads

    3,077

    Version

    0.8.1

    License

    Apache-2.0

    Unpacked Size

    162 kB

    Total Files

    77

    Last publish

    Collaborators

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