2.0.2 • Published 4 years ago

@hexlet/analytics-plugin-pipedream v2.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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' });
2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago