@pieowl/sdk
v1.3.2
Published
Pieowl core SDK for Node.js and other non-browser JavaScript runtimes: track events, identify users, record revenue and manage groups.
Maintainers
Readme
@pieowl/sdk
The core Pieowl SDK. Use it on the server, or in any JavaScript runtime that isn't a browser, to track events, identify users and record revenue. For websites, use @pieowl/web instead.
npm install @pieowl/sdkimport { Pieowl } from '@pieowl/sdk';
export const pieowl = new Pieowl({
clientId: 'YOUR_CLIENT_ID',
clientSecret: 'YOUR_CLIENT_SECRET',
});
pieowl.track('my_event', { foo: 'bar' });Keep the client secret on the server. Never ship it to the browser.
Full documentation: https://pieowl.com/docs/sdks/javascript
