
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@bagdock/analytics
Advanced tools
Bagdock Analytics SDK — lightweight client-side event tracking with batching and dedup
----++ ----++ ---+++
---+++ ---++ ---++
----+--- ----- --------- --------++ ------ ----- ----++-----
---------+ --------++----------++--------+++--------+ --------++---++---++++
---+++---++ ++++---++---+++---++---+++---++---+++---++---++---++------++++
----++ ---++--------++---++----++---++ ---++---++ ---+---++ -------++
----+----+---+++---++---++----++---++----++---++---+++--++ --------+---++
---------++--------+++--------+++--------++ -------+++ -------++---++----++
+++++++++ +++++++++- +++---++ ++++++++ ++++++ ++++++ ++++ ++++
--------+++
+++++++
The official Bagdock Analytics SDK — lightweight client-side event tracking with automatic batching and deduplication.
npm install @bagdock/analytics
yarn add @bagdock/analytics
pnpm add @bagdock/analytics
bun add @bagdock/analytics
import { BagdockAnalytics } from '@bagdock/analytics'
const analytics = new BagdockAnalytics({
writeKey: 'ak_live_...',
})
// Track a custom event
analytics.track('unit_viewed', {
unitId: 'unit_abc123',
unitSize: '10x10',
})
// Track a page view
analytics.page('/facilities/downtown')
// Flush immediately (e.g., before page unload)
await analytics.flush()
| Option | Type | Default | Description |
|---|---|---|---|
writeKey | string | — | Required. Your Bagdock analytics write key |
baseUrl | string | https://api.bagdock.com | API base URL |
flushInterval | number | 5000 | Flush interval in milliseconds |
maxBatchSize | number | 25 | Max events per batch |
| Method | Description |
|---|---|
track(event, properties?) | Track a custom event |
page(path?, properties?) | Track a page view |
identify(userId, traits?) | Identify a user |
flush() | Flush the event queue immediately |
reset() | Clear user identity and queue |
This SDK has no external runtime dependencies. It uses the native fetch API and is designed to be as lightweight as possible for client-side use.
MIT
FAQs
Bagdock Analytics SDK — lightweight client-side event tracking with batching and dedup
The npm package @bagdock/analytics receives a total of 12 weekly downloads. As such, @bagdock/analytics popularity was classified as not popular.
We found that @bagdock/analytics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.