1.2.3 • Published 4 years ago

analytics.js-integration-wildcard v1.2.3

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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