analytics.js-integration-wildcard
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

analytics.js-integration-wildcard

This is a analytics.js-compatible integration for sending all collected data directly for a custom endpoint. It was built based on the original analytcs.js-integration-segmentio module from Segment, which is the one used for sending data to Segment's infrastructure.

Options while initializing integration

  import Wildcard from './lib';

  const options: IWildcardOptions = {
    endpoint: 'https://wildcard.endpoint.com', // The endpoint all raw data will be sent
    maxPayloadSize: 32000, // Max payload size in bytes
    name: 'myanalytics', // Your library name
  };

  const wildcardIntegration = new Wildcard(options);

Endpoints paths

Events track data

https://YOURENDPOINT.COM/t

Page view data

https://YOURENDPOINT.COM/p

User identify data

https://YOURENDPOINT.COM/i

User alias matching data

https://YOURENDPOINT.COM/a

User grouping data

https://YOURENDPOINT.COM/g

Build

To build the bundled script:

  $ yarn build

Test

  $ yarn test

Watching for changes

  $ yarn test --watch

Readme

Keywords

none

Package Sidebar

Install

npm i analytics.js-integration-wildcard

Weekly Downloads

20

Version

1.2.3

License

MIT

Unpacked Size

67.3 kB

Total Files

17

Last publish

Collaborators

  • kelvne