@molecule/app-analytics-posthog 1.0.5 → 1.0.6
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 +6 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-08T06:24:37.313Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-analytics-posthog
|
|
@@ -140,18 +140,21 @@ interface AnalyticsProvider {
|
|
|
140
140
|
* @param user - User properties including userId and optional traits.
|
|
141
141
|
*/
|
|
142
142
|
identify(user: AnalyticsUserProps): Promise<void>
|
|
143
|
+
|
|
143
144
|
/**
|
|
144
145
|
* Tracks a named event with optional properties.
|
|
145
146
|
*
|
|
146
147
|
* @param event - The event name and properties to track.
|
|
147
148
|
*/
|
|
148
149
|
track(event: AnalyticsEvent): Promise<void>
|
|
150
|
+
|
|
149
151
|
/**
|
|
150
152
|
* Records a page view.
|
|
151
153
|
*
|
|
152
154
|
* @param pageView - Page view details (name, path, properties).
|
|
153
155
|
*/
|
|
154
156
|
page(pageView: AnalyticsPageView): Promise<void>
|
|
157
|
+
|
|
155
158
|
/**
|
|
156
159
|
* Associates a user with a group (e.g. company, team).
|
|
157
160
|
*
|
|
@@ -159,10 +162,12 @@ interface AnalyticsProvider {
|
|
|
159
162
|
* @param traits - Arbitrary traits to associate with the group.
|
|
160
163
|
*/
|
|
161
164
|
group?(groupId: string, traits?: Record<string, unknown>): Promise<void>
|
|
165
|
+
|
|
162
166
|
/**
|
|
163
167
|
* Resets the current user identity and generates a new anonymous ID.
|
|
164
168
|
*/
|
|
165
169
|
reset?(): Promise<void>
|
|
170
|
+
|
|
166
171
|
/**
|
|
167
172
|
* Flushes any queued events to the analytics service immediately.
|
|
168
173
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-analytics-posthog",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "PostHog analytics provider for molecule.dev frontend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@molecule/app-analytics": "^1.1.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@molecule/app-analytics": "1.1.
|
|
36
|
+
"@molecule/app-analytics": "1.1.3",
|
|
37
37
|
"@types/node": "26.6.5",
|
|
38
38
|
"typescript": "6.0.3",
|
|
39
39
|
"vitest": "4.1.12"
|