@hexlet/analytics-plugin-pipedream

2.0.2 • Public • Published

analytics-pipedream

This library exports the Pipedream plugin for the analytics package.

Installation

npm install analytics analytics-plugin-pipedream

How to use

import Analytics from 'analytics';
import pipedreamPlugin from 'analytics-plugin-pipedream';

const pipedreamConfig = {
  event_one: 'https://triggerUniquePathOne.m.pipedream.net', // this must be pipedream workflow trigger url
  event_two: 'https://triggerUniquePathTwo.m.pipedream.net',
};

const analytics = Analytics({
  app: 'my-app',
  plugins: [
    pipedreamPlugin({
      workflows: pipedreamConfig,
    }),
  ],
});

// track an event
analytics.track('registration', { email: 'user@example.com' });

Readme

Keywords

Package Sidebar

Install

npm i @hexlet/analytics-plugin-pipedream

Weekly Downloads

1

Version

2.0.2

License

ISC

Unpacked Size

26.7 kB

Total Files

10

Last publish

Collaborators

  • dzencot
  • grozwalker
  • mshkv
  • mokevnin
  • corsicanec82