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.
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);
https://YOURENDPOINT.COM/t
https://YOURENDPOINT.COM/p
https://YOURENDPOINT.COM/i
https://YOURENDPOINT.COM/a
https://YOURENDPOINT.COM/g
To build the bundled script:
$ yarn build
$ yarn test
Watching for changes
$ yarn test --watch