-
Notifications
You must be signed in to change notification settings - Fork 139
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
refactor: Remove/deprecate/rename old options #1694
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: -1.19 kB (-0.04%) Total Size: 3.28 MB
ℹ️ View Unchanged
|
src/posthog-core.ts
Outdated
@@ -133,20 +132,20 @@ export const defaultConfig = (): PostHogConfig => ({ | |||
persistence: 'localStorage+cookie', // up to 1.92.0 this was 'cookie'. It's easy to migrate as 'localStorage+cookie' will migrate data from cookie storage | |||
persistence_name: '', | |||
loaded: __NOOP, | |||
store_google: true, | |||
save_marketing_params: true, |
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.
Naming:
- I'd probably call these attribution_params if I was starting from scratch. They aren't just for marketing, and product engineers should also care about them, because customers from different channels will have different levels of intent to use/buy your product :)
- custom_campaign_params is calling them campaign_params - so we could also match that naming for consistency
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.
💯%, let me tweak that
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.
Done
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.
Well, I tweaked to attribution
, but we should instead keep it consistent, let me tweak it again
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.
Now, really done, great suggestion
78b22d9
to
dda063d
Compare
This is extracted from #1681 We're doing some different things here: - `save_marketing_params` over `store_google` because we do much more than just handling Google params with this settings - Deprecate `verbose` in favor of `debug` - Retire `inapp_protocol` and `inapp_link_new_window`, we're not using them anywhere, but we'll keep in the type for backwards-compatibility - Completely remove `__preview_send_client_session_params`, I've checked and it's not being used by anyone in production
dda063d
to
ece16ed
Compare
Changes
This was extracted from #1681
We're doing some different things here:
save_marketing_params
overstore_google
because we do much more than just handling Google params with this settingsverbose
in favor ofdebug
inapp_protocol
andinapp_link_new_window
, we're not using them anywhere, but we'll keep in the type for backwards-compatibility__preview_send_client_session_params
, I've checked and it's not being used by anyone in productionI'm making this a minor bump, and then the remaining changes in #1681 will be only docs, and will be a patch version