If you're using Segment, you can forward tracking data to Bucket by enabling the Bucket Destination.
Segment provides tracking agents for all popular programming languages.
Our official isomorphic JS/TS tracking SDK. The library can be included directly as an external script or you can import it.
import bucket from "@bucketco/tracking-sdk";
var bucket = require("@bucketco/tracking-sdk");
Bucket HTTP Tracking API
You can also send data directly to our HTTP Tracking API.