Track Event

Version: 1.0.0
analytics/track-event
superface

Track events to better understand interactions between users and your product.

Track Event

Allows to send event to tracking system

Event Name
Event Properties
string

1. Install

npx @superfaceai/cli install analytics/track-event

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('analytics/track-event');

  // Use the profile
  const result = await profile
    .getUseCase('TrackEvent')
    .perform({
      eventName: '',
      eventProperties: ''
    });

  return result.unwrap();
}

run();

3. Add providers