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: Cap pa calculator at 250 million events, show contact us on pricing table #8033

Merged
merged 28 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d4ac902
cap pa calculator at 250 million events
Mar 12, 2024
0dcb1e3
add some missing pieces
Mar 14, 2024
22e6a03
Update package.json
xrdt Mar 18, 2024
4a5d4eb
remove pricing control (#8037)
raquelmsmith Mar 13, 2024
069b05b
add ai template (#8041)
Lior539 Mar 14, 2024
feee45e
fix: update 15k free recordings to 5k (#8040)
marandaneto Mar 14, 2024
7b68cb2
New roadmap pages (#8045)
smallbrownbike Mar 14, 2024
6378799
Small quality fixes (#8052)
smallbrownbike Mar 15, 2024
942fa78
Roadmap cleanup (#8053)
corywatilo Mar 15, 2024
4b5e4eb
Added support gating to historic data import pages (#8030)
simfish85 Mar 15, 2024
2ba0b2a
Adding DigitalOcean to PostHog for Startups (#7997)
joethreepwood Mar 15, 2024
cd04a0b
Add Go ticker option (#8044)
neilkakkar Mar 15, 2024
6731f90
add link (#8057)
Lior539 Mar 15, 2024
2ca8be6
Light edits to the company handbook (#8047)
jtemperton Mar 15, 2024
a6314ab
Clarified PostHog cookie name (#8060)
simfish85 Mar 15, 2024
66abfb6
chore: Update RN docs for v3 initialization (#7902)
benjackwhite Mar 18, 2024
40d8bae
Renamed v3 js-lite methods (#8021)
benjackwhite Mar 18, 2024
ad33448
docs: fix typo in `nextjs-analytics.md` (#8035)
a20hek Mar 18, 2024
e9e2080
Ruby add flag timeouts (#8058)
neilkakkar Mar 18, 2024
37a60c4
chore: document opt_out_persistence_by_default (#8025)
marandaneto Mar 18, 2024
69c311f
chore: add session recording section on flutter docs (#8066)
marandaneto Mar 18, 2024
309b577
fix: code snippets for node and rn v3 and v4 (#8068)
marandaneto Mar 18, 2024
8d10b08
Bunch of CS updates to the Handbook (#8055)
charlescook-ph Mar 18, 2024
7303439
Web analytics product page (#8001)
corywatilo Mar 18, 2024
6b63f9f
Update common-questions.mdx (#8065)
neilkakkar Mar 18, 2024
5a64bee
address pr feedback
Mar 18, 2024
17e077c
Merge remote-tracking branch 'origin/master' into by/cap-250-pa
Mar 18, 2024
9eb4a43
fix up the link
Mar 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"private": true,
"scripts": {
"build": "gatsby build",
"start": "TAILWIND_MODE=watch gatsby develop -H 0.0.0.0 -p 8001",
"start": "TAILWIND_MODE=watch gatsby develop -H 0.0.0.0 -p 8002",
xrdt marked this conversation as resolved.
Show resolved Hide resolved
"serve": "gatsby serve",
"format": "prettier --write \"**/*.{html,js,ts,tsx,json,yml,css,scss}\"",
"clean": "gatsby clean",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Pricing/Products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export const useProducts = () => {
slider: (
<LogSlider
stepsInRange={100}
marks={[MILLION, TEN_MILLION, HUNDRED_MILLION, BILLION]}
marks={[MILLION, TEN_MILLION, FIFTY_MILLION, MAX_PRODUCT_ANALYTICS]}
min={MILLION}
max={BILLION}
max={MAX_PRODUCT_ANALYTICS}
onChange={(value) => setProductAnalyticsSliderValue(value, sliderCurve)}
value={productAnalyticsSliderValue}
/>
Expand Down
11 changes: 6 additions & 5 deletions src/components/Pricing/experiment-control/Plans/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Feature = ({ feature }: { feature: BillingV2FeatureType }) => {
)
}

const Title = ({ title, className = '' }: { title: string; className?: string }) => {
const Title = ({ title, className = '' }: { title: string | Element; className?: string }) => {
return <h5 className={`m-0 text-[15px] opacity-70 font-medium ${className}`}>{title}</h5>
}

Expand Down Expand Up @@ -109,17 +109,18 @@ const PricingTiers = ({ plans, unit, compact = false, type }) => {
title={
plans[0].free_allocation === up_to ? (
'Free'
) : enterprise_flag_enabled && index === tiers.length - 1 ? (
<s>
) : type === 'product_analytics' && !up_to ? (
<>
$
{parseFloat(unit_amount_usd).toFixed(
Math.max(
...plans[plans.length - 1].tiers.map(
(tier) => tier.unit_amount_usd.split('.')[1]?.length ?? 0
)
)
)}
</s>
)}{' '}
- <Link to="/contact-sales">Contact us</Link> for custom pricing
Copy link
Member

Choose a reason for hiding this comment

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

This just feels weird - like why would we show the price if custom pricing is available? And for whom is it available?

Eg. "Custom Enterprise pricing available for large volumes". Possibly just in an (i) tooltip after the final tier price with a Contact Us link (posthog.com tooltips can be interactive)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-03-18 at 3 19 27 PM

Copy link
Member

Choose a reason for hiding this comment

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

Yeah that's better I think but not a giant link, just link "get in touch" after 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2024-03-18 at 3 43 43 PM

</>
) : (
`$${parseFloat(unit_amount_usd).toFixed(
Math.max(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
TEN_MILLION,
HUNDRED_MILLION,
BILLION,
TWO_FIFTY_MILLION,
} from '../../pricingLogic'
import { button } from 'components/CallToAction'
import usePostHog from 'hooks/usePostHog'
Expand Down Expand Up @@ -129,9 +130,9 @@ export const PricingCalculator = () => {
) : (
<LogSlider
stepsInRange={100}
marks={[MILLION, TEN_MILLION, HUNDRED_MILLION, BILLION]}
marks={[MILLION, TEN_MILLION, FIFTY_MILLION, MAX_PRODUCT_ANALYTICS]}
min={MILLION}
max={BILLION}
max={MAX_PRODUCT_ANALYTICS}
onChange={(value) => setProductAnalyticsSliderValue(value, sliderCurve)}
value={productAnalyticsSliderValue}
/>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Pricing/pricingLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ export const TWENTY_MILLION = 20000000
export const TWENTY_FIVE_MILLION = 25000000
export const FIFTY_MILLION = 50000000
export const HUNDRED_MILLION = 100000000
export const TWO_FIFTY_MILLION = 250000000
export const BILLION = 1000000000
export const MAX_PRODUCT_ANALYTICS = FIFTY_MILLION
export const MAX_PRODUCT_ANALYTICS = TWO_FIFTY_MILLION
export const MAX_SESSION_REPLAY = ONE_FIFTY_THOUSAND
export const MAX_FEATURE_FLAGS = TEN_MILLION
export const MAX_SURVEYS = TEN_THOUSAND
Expand Down