-
Notifications
You must be signed in to change notification settings - Fork 129
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): Add site_name in config and $site_name property #916
Conversation
Size Change: +240 B (0%) Total Size: 744 kB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing wrong with the implementation but this feels like the wrong approach...
We already send a lot of data in default properties all of which we could derive the necessary info from server side instead.
Why don't we just have a place in the UI where you can configure certain events to be attributed with certain sites? It's not far off from what we do with actions.
The big pluses are:
- You can configure it remotely (makes working with PostHog easy)
- It works retroactively, not just for events that later have that attribute added
- We could in theory use it for more things - it can be "site" based for now but essentially you are sort of cohorting events which could be useful in a variety of quick filter ways
I never get tired of linking to this issue, which might be relevant: PostHog/posthog#12181 |
Hmm - this is a bit of a sidequest. I do like the idea though.
Configuring remotely is nice, it does mean that it's probably more work to configure though. Will think about this a bit |
I could be wrong but I think the "more work" part would be on our side but for the user it would actually be "less work" in that they don't need any special client side config (and we don't need to add support for this to all of our SDKs), rather they "only" have to configure something in the app, which we could even auto configure like - "hey we see you have 4 domains, we have automatically created "sites" based on those domains". Longer term this feels way more powerful than simply adding more and more data to the event payloads. |
Closing this in favour of doing PostHog/posthog#12181 |
Changes
Add site_name to config, and $site_name property which is sent with this value. See PostHog/posthog#18863 for context
Checklist