Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web-analytics): Use person properties for web analytics source #18423

Merged
merged 4 commits into from
Nov 8, 2023

Conversation

robbie-c
Copy link
Member

@robbie-c robbie-c commented Nov 6, 2023

Problem

Ideally we would use these client-session params, however due to PostHog/posthog-js#876 these don't work very well at the moment. Instead, just use person properties for now. This will be slower, but acceptable for the time being, and unblocks releasing this to more people.

Changes

  • Allow the use of person properties in the web analytics dashboard
  • Change the referrer/utm queries to use person properties

How did you test this code?

Manually tested, I also did #18424

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@robbie-c robbie-c changed the title Use person properties for web analytics source feat(web-analytics): Use person properties for web analytics source Nov 6, 2023
@robbie-c robbie-c force-pushed the use-person-properties-for-web-analytics-source branch from de0f28e to 467c145 Compare November 6, 2023 22:32
@robbie-c robbie-c force-pushed the use-person-properties-for-web-analytics-source branch from 467c145 to 9389bdd Compare November 6, 2023 22:33
@robbie-c robbie-c marked this pull request as ready for review November 6, 2023 22:49
@posthog-bot
Copy link
Contributor

Hey @robbie-c! 👋
This pull request seems to contain no description. Please add useful context, rationale, and/or any other information that will help make sense of this change now and in the distant Mars-based future.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@robbie-c robbie-c requested a review from Twixes November 6, 2023 23:00
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@robbie-c robbie-c force-pushed the use-person-properties-for-web-analytics-source branch from ab235c8 to 79bcea2 Compare November 6, 2023 23:26
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@robbie-c robbie-c requested a review from mariusandra November 8, 2023 08:34
Copy link
Collaborator

@mariusandra mariusandra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One big blocker inline, but otherwise looks good.

frontend/src/scenes/web-analytics/webAnalyticsLogic.ts Outdated Show resolved Hide resolved
@robbie-c robbie-c force-pushed the use-person-properties-for-web-analytics-source branch from e4529f1 to ea6da9f Compare November 8, 2023 16:43
@robbie-c robbie-c enabled auto-merge (squash) November 8, 2023 16:51
@robbie-c robbie-c merged commit be184b6 into master Nov 8, 2023
71 of 72 checks passed
@robbie-c robbie-c deleted the use-person-properties-for-web-analytics-source branch November 8, 2023 17:07
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

4 snapshot changes in total. 0 added, 4 modified, 0 deleted:

  • chromium: 0 added, 4 modified, 0 deleted (wasn't pushed!)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants