Skip to content

@xtandard/links/analytics/memory

In-memory analytics sink — zero dependencies; exact reference aggregation plus unique visitors. For tests, demos and development.

import { … } from "@xtandard/links/analytics/memory";
Name Summary
compareEventsNewestFirst Newest first: at descending, then id descending.
createMemoryAnalytics Create an in-memory AnalyticsSink.
uniqueVisitor The visitor counted toward uniques: non-bot clicks that carry a visitor hash.
Name Summary
MemoryAnalyticsSink The memory sink: an AnalyticsSink with every optional method plus test helpers.