@aics/frontend-insights-plugin-amplitude-node
v0.2.3
Published
Plugin to @aics/frontend-insights that ships user events to Amplitude. Suitable for use in a NodeJS-like environment, such as Electron.
Downloads
552
Keywords
Readme
@aics/frontend-insights-plugin-amplitude-node
Plugin to
@aics/frontend-insights
that ships user events to Amplitude. Only suitable for use in a NodeJS-like environment, such as Electron, as the@amplitude/node
package that this plugin provides a facade for relies on being able torequire
theHTTP
andHTTPS
NodeJS packages, among others.
References:
- Amplitude developer documentation: https://developers.amplitude.com/docs
Usage
Required constructor argument(s):
- options:
{ apiKey: string; }
const amplitudeNodePlugin = new AmplitudeNodePlugin({ apiKey: "abc123" });
const frontendInsights = new FrontendInsights({ ... }, [amplitudeNodePlugin]);