mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
feat: update instrumentation-client to include platform property in events
Added a platform property set to "web" in event properties for better tracking. Updated GIF assets in the hero tutorial section.
This commit is contained in:
parent
c54dfb8f96
commit
b740761492
3 changed files with 3 additions and 0 deletions
|
|
@ -12,6 +12,8 @@ function initPostHog() {
|
|||
capture_pageleave: true,
|
||||
before_send: (event) => {
|
||||
if (event?.properties) {
|
||||
event.properties.platform = "web";
|
||||
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
const ref = params.get("ref");
|
||||
if (ref) {
|
||||
|
|
@ -28,6 +30,7 @@ function initPostHog() {
|
|||
|
||||
event.properties.$set = {
|
||||
...event.properties.$set,
|
||||
platform: "web",
|
||||
last_seen_at: new Date().toISOString(),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 4.4 MiB After Width: | Height: | Size: 15 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2 MiB After Width: | Height: | Size: 6.7 MiB |
Loading…
Add table
Add a link
Reference in a new issue