@litemetrics/node 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/index.cjs +548 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +548 -55
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -70,7 +70,8 @@ const collector = await createCollector({
|
|
|
70
70
|
- **GeoIP Enrichment** - Resolves country/city from IP using MaxMind GeoLite2
|
|
71
71
|
- **User-Agent Parsing** - Extracts browser, OS, and device type
|
|
72
72
|
- **Hostname Filtering** - Only count events from allowed hostnames per site
|
|
73
|
-
- **Query API** -
|
|
73
|
+
- **Query API** - Built-in metrics for pages, events, conversions, and behavioral insights
|
|
74
|
+
- **Segmentation Filters** - Filter any metric/time series by geo, device, UTM, referrer, or event metadata
|
|
74
75
|
- **Time Series** - Hourly/daily/weekly/monthly breakdowns
|
|
75
76
|
- **Retention Analysis** - Weekly cohort retention
|
|
76
77
|
- **Site Management** - Multi-tenant CRUD with secret key auth
|
|
@@ -94,11 +95,18 @@ await collector.identify('site-id', 'user-123', { plan: 'pro' });
|
|
|
94
95
|
| `visitors` | Unique visitors |
|
|
95
96
|
| `sessions` | Unique sessions |
|
|
96
97
|
| `events` | Custom events count |
|
|
98
|
+
| `conversions` | Conversion events count |
|
|
97
99
|
| `top_pages` | Most visited pages |
|
|
98
100
|
| `top_referrers` | Top traffic sources |
|
|
99
101
|
| `top_countries` | Visitors by country |
|
|
100
102
|
| `top_cities` | Visitors by city |
|
|
101
103
|
| `top_events` | Most common custom events |
|
|
104
|
+
| `top_conversions` | Most common conversion events |
|
|
105
|
+
| `top_exit_pages` | Last page in session |
|
|
106
|
+
| `top_transitions` | Page-to-page transitions |
|
|
107
|
+
| `top_scroll_pages` | Pages with most scroll depth events |
|
|
108
|
+
| `top_button_clicks` | Most clicked buttons (auto events) |
|
|
109
|
+
| `top_link_targets` | Most clicked link targets |
|
|
102
110
|
| `top_browsers` | Browser breakdown |
|
|
103
111
|
| `top_os` | OS breakdown |
|
|
104
112
|
| `top_devices` | Device type breakdown |
|