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:
DESKTOP-RTLN3BA\$punk 2026-04-08 02:41:33 -07:00
parent c54dfb8f96
commit b740761492
3 changed files with 3 additions and 0 deletions

View file

@ -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

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 MiB

After

Width:  |  Height:  |  Size: 6.7 MiB

Before After
Before After