Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Add Paddle plan IDs

Blue Mouse863cfb96a305
diff --git a/web/app/lib/pricing/catalog.ts b/web/app/lib/pricing/catalog.ts
index b90e9b27c..ac6e9f7f2 100644
--- a/web/app/lib/pricing/catalog.ts
+++ b/web/app/lib/pricing/catalog.ts
@@ -54,7 +54,10 @@ export interface PlanLimit {
type PlanPriceCatalog = Record<
PlanTypeCode,
Partial<
- Record<EventTierCode, Record<BillingInterval, Record<CurrencyCode, PlanPrice>>>
+ Record<
+ EventTierCode,
+ Record<BillingInterval, Record<CurrencyCode, PlanPrice>>
+ >
>
>
@@ -201,57 +204,81 @@ export const PLAN_PRICES: PlanPriceCatalog = {
{ USD: 719, EUR: 619, GBP: 539 },
{ USD: 7190, EUR: 6190, GBP: 5390 },
925503,
- 925505
+ 925505,
),
},
plus: {
'100k': price(
{ USD: 39, EUR: 35, GBP: 29 },
{ USD: 390, EUR: 350, GBP: 290 },
+ 925536,
+ 925537,
),
'200k': price(
{ USD: 59, EUR: 49, GBP: 45 },
{ USD: 590, EUR: 490, GBP: 450 },
+ 925538,
+ 925539,
),
'500k': price(
{ USD: 109, EUR: 95, GBP: 79 },
{ USD: 1090, EUR: 950, GBP: 790 },
+ 925540,
+ 925541,
),
'1m': price(
{ USD: 179, EUR: 159, GBP: 135 },
{ USD: 1790, EUR: 1590, GBP: 1350 },
+ 925542,
+ 925543,
),
'2m': price(
{ USD: 279, EUR: 239, GBP: 209 },
{ USD: 2790, EUR: 2390, GBP: 2090 },
+ 925544,
+ 925545,
),
'5m': price(
{ USD: 439, EUR: 379, GBP: 329 },
{ USD: 4390, EUR: 3790, GBP: 3290 },
+ 925546,
+ 925547,
),
'10m': price(
{ USD: 629, EUR: 539, GBP: 469 },
{ USD: 6290, EUR: 5390, GBP: 4690 },
+ 925548,
+ 925549,
),
'15m': price(
- { USD: 919, EUR: 789, GBP: 679 },
- { USD: 9190, EUR: 7890, GBP: 6790 },
+ { USD: 919, EUR: 799, GBP: 699 },
+ { USD: 9190, EUR: 7990, GBP: 6990 },
+ 925550,
+ 925551,
),
'20m': price(
{ USD: 1139, EUR: 979, GBP: 849 },
{ USD: 11390, EUR: 9790, GBP: 8490 },
+ 925552,
+ 925553,
),
'30m': price(
{ USD: 1459, EUR: 1249, GBP: 1079 },
{ USD: 14590, EUR: 12490, GBP: 10790 },
+ 925554,
+ 925555,
),
'40m': price(
{ USD: 1799, EUR: 1549, GBP: 1329 },
{ USD: 17990, EUR: 15490, GBP: 13290 },
+ 925556,
+ 925557,
),
'50m': price(
{ USD: 2159, EUR: 1859, GBP: 1599 },
{ USD: 21590, EUR: 18590, GBP: 15990 },
+ 925558,
+ 925559,
),
},
enterprise: {},
diff --git a/web/app/pages/Subscribe/Subscribe.tsx b/web/app/pages/Subscribe/Subscribe.tsx
index acaa1362e..bdf07d1f4 100644
--- a/web/app/pages/Subscribe/Subscribe.tsx
+++ b/web/app/pages/Subscribe/Subscribe.tsx
@@ -13,11 +13,7 @@ import { useFetcher, useLoaderData, useNavigate } from 'react-router'
import { toast } from 'sonner'
import { usePaddle } from '~/hooks/usePaddle'
-import {
- CURRENCIES,
- paddleLanguageMapping,
- TRIAL_DAYS,
-} from '~/lib/constants'
+import { CURRENCIES, paddleLanguageMapping, TRIAL_DAYS } from '~/lib/constants'
import {
EVENT_TIER_CODES,
EVENT_TIERS,
@@ -69,10 +65,7 @@ const formatReplayQuota = (
const getPlanName = (planType: PlanTypeCode, t: TFunction) =>
t(`pricing.planTypes.${planType}.name`)
-const getCheckoutErrorMessage = (
- error: string | undefined,
- t: TFunction,
-) => {
+const getCheckoutErrorMessage = (error: string | undefined, t: TFunction) => {
if (error?.startsWith('billing.')) {
return t(error)
}
@@ -188,9 +181,7 @@ const Subscribe = () => {
generatePayLinkFetcher.data = undefined
} else if (generatePayLinkFetcher.data?.error) {
- toast.error(
- getCheckoutErrorMessage(generatePayLinkFetcher.data.error, t),
- )
+ toast.error(getCheckoutErrorMessage(generatePayLinkFetcher.data.error, t))
}
}, [
generatePayLinkFetcher.data,
@@ -253,12 +244,10 @@ const Subscribe = () => {
const faqItems = useMemo(() => {
const faqValues = {
- lowestPlanEventsAmount: EVENT_TIERS['100k'].monthlyEvents.toLocaleString(
- 'en-US',
- ),
- moderatePlanEventsAmount: EVENT_TIERS[
- '500k'
- ].monthlyEvents.toLocaleString('en-US'),
+ lowestPlanEventsAmount:
+ EVENT_TIERS['100k'].monthlyEvents.toLocaleString('en-US'),
+ moderatePlanEventsAmount:
+ EVENT_TIERS['500k'].monthlyEvents.toLocaleString('en-US'),
}
return [0, 1, 4].map((idx) => ({
@@ -353,7 +342,7 @@ const Subscribe = () => {
type='button'
onClick={() => setSelectedPlanType(planType)}
className={cn(
- 'rounded-lg bg-white p-4 text-left ring-1 ring-inset transition-all duration-150 dark:bg-slate-950',
+ 'rounded-lg bg-white p-4 text-left ring-1 transition-all duration-150 ring-inset dark:bg-slate-950',
isSelected
? 'ring-2 ring-slate-900 dark:ring-slate-200'
: 'ring-gray-200 hover:ring-gray-300 dark:ring-slate-700 dark:hover:ring-slate-600',
@@ -364,12 +353,21 @@ const Subscribe = () => {
{getPlanName(planType, t)}
</Text>
</div>
- <Text as='span' size='sm' colour='secondary' className='mt-3 block'>
+ <Text
+ as='span'
+ size='sm'
+ colour='secondary'
+ className='mt-3 block'
+ >
{currency.symbol}
- {formatPrice(price)}
- /{t('pricing.perMonth')}
+ {formatPrice(price)}/{t('pricing.perMonth')}
</Text>
- <Text as='span' size='xs' colour='muted' className='mt-1 block'>
+ <Text
+ as='span'
+ size='xs'
+ colour='muted'
+ className='mt-1 block'
+ >
{t('pricing.websiteCount', {
count: entitlements.websites,
})}
@@ -405,7 +403,7 @@ const Subscribe = () => {
type='button'
onClick={() => setSelectedEventTier(eventTier)}
className={cn(
- 'flex items-center justify-between rounded-lg bg-white px-4 py-3 text-left ring-1 ring-inset transition-all duration-150 dark:bg-slate-950',
+ 'flex items-center justify-between rounded-lg bg-white px-4 py-3 text-left ring-1 transition-all duration-150 ring-inset dark:bg-slate-950',
isSelected
? 'ring-2 ring-slate-900 dark:ring-slate-200'
: 'ring-gray-200 hover:ring-gray-300 dark:ring-slate-700 dark:hover:ring-slate-600',
@@ -416,8 +414,7 @@ const Subscribe = () => {
</Text>
<Text as='span' size='sm' colour='secondary'>
{currency.symbol}
- {formatPrice(price)}
- /{t('pricing.perMonth')}
+ {formatPrice(price)}/{t('pricing.perMonth')}
</Text>
</button>
)
@@ -451,7 +448,11 @@ const Subscribe = () => {
i18n.language,
)}{' '}
{t('pricing.eventsWithReplay', {
- replayQuota: formatReplayQuota(replayQuota, t, i18n.language),
+ replayQuota: formatReplayQuota(
+ replayQuota,
+ t,
+ i18n.language,
+ ),
})}
</Text>
</div>
diff --git a/web/app/routes/_index.tsx b/web/app/routes/_index.tsx
index 73021ade4..5634d1d0b 100644
--- a/web/app/routes/_index.tsx
+++ b/web/app/routes/_index.tsx
@@ -558,7 +558,7 @@ const NewHero = ({ stats }: { stats: Stats | null }) => {
}}
variant='secondary'
size='xl'
- className='h-12 border-white/25 bg-white/10 px-5 text-center items-center text-base font-semibold text-white shadow-none ring-white/25 backdrop-blur-md hover:bg-white/20 dark:border-white/25 dark:bg-white/10 dark:text-white dark:hover:bg-white/20'
+ className='h-12 items-center border-white/25 bg-white/10 px-5 text-center text-base font-semibold text-white shadow-none ring-white/25 backdrop-blur-md hover:bg-white/20 dark:border-white/25 dark:bg-white/10 dark:text-white dark:hover:bg-white/20'
aria-label={`${t('main.seeLiveDemo')} (opens in a new tab)`}
>
{t('common.liveDemo')}
diff --git a/web/app/routes/user-settings.tsx b/web/app/routes/user-settings.tsx
index 9ff13cba4..d3d5d542f 100644
--- a/web/app/routes/user-settings.tsx
+++ b/web/app/routes/user-settings.tsx
@@ -116,10 +116,7 @@ const resolveCatalogSelection = (formData: FormData) => {
if (!rawEventTier || !(rawEventTier in EVENT_TIERS)) {
return { error: 'billing.invalidPlanSelection' }
}
- if (
- rawBillingInterval !== 'monthly' &&
- rawBillingInterval !== 'yearly'
- ) {
+ if (rawBillingInterval !== 'monthly' && rawBillingInterval !== 'yearly') {
return { error: 'billing.invalidPlanSelection' }
}
if (!['USD', 'EUR', 'GBP'].includes(rawCurrencyCode)) {
diff --git a/web/app/ui/Tooltip.tsx b/web/app/ui/Tooltip.tsx
index a0dba2969..ff476353a 100644
--- a/web/app/ui/Tooltip.tsx
+++ b/web/app/ui/Tooltip.tsx
@@ -130,7 +130,7 @@ const Tooltip = ({
aria-label={triggerAriaLabel}
>
{tooltipNode || (
- <QuestionIcon className='cursor-help size-4 fill-slate-700 stroke-gray-50 dark:fill-slate-200 dark:stroke-slate-800' />
+ <QuestionIcon className='size-4 cursor-help fill-slate-700 stroke-gray-50 dark:fill-slate-200 dark:stroke-slate-800' />
)}
</TooltipTrigger>
<TooltipContent