analytics.js-integration-wildcard
v1.2.3
Published
Analytics.js integration to send raw data to an endpoint.
Downloads
17
Readme
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