Socket
Book a DemoInstallSign in
Socket

@bucketco/foo

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@bucketco/foo

Isomorphic JS/TS tracking agent for [Bucket.co](https://bucket.co)

1.0.0
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

Bucket Tracking SDK

Isomorphic JS/TS tracking agent for Bucket.co

Install

The library can be included directly as an external script or you can import it. UMD and ES modules are supported.

A. Script tag (client-side usage)

<script src="https://cdn.bucket.co/tracking-sdk.v1.js"></script>

B. Import module (either in node or browser bundling)

import bucket from "@bucketco/tracking-sdk";

Usage

// init the script with your Tracking Key
bucket.init("tk123");

// set current user and company
bucket.user("john_doe", { name: "John Doe" });
bucket.company("acme_inc", { name: "Acme Inc" });

// track events
bucket.track("sent_message", { foo: "bar" });

Debug

Enabling debugging prints helpful console messages

bucket.init("tk123", { debug: true });

Typescript

Types are bundled together with the library and exposed automatically when importing through a package manager.

License

MIT License

Copyright (c) 2022 Bucket ApS

FAQs

Package last updated on 09 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.