Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

heartbeat profileId

Blue Moused523fc9a8412
diff --git a/src/Lib.ts b/src/Lib.ts
index d341df082..884ae692a 100644
--- a/src/Lib.ts
+++ b/src/Lib.ts
@@ -609,10 +609,14 @@ export class Lib {
return
}
- const data = {
+ const data: { pid: string; profileId?: string } = {
pid: this.projectID,
}
+ if (this.options?.profileId) {
+ data.profileId = this.options.profileId
+ }
+
this.sendRequest('hb', data)
}