📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Simplify
Blue Mousec03462752087
diff --git a/web/app/lib/pricing/catalog.ts b/web/app/lib/pricing/catalog.tsindex 1d2ff8b60..151a3521d 100644--- a/web/app/lib/pricing/catalog.ts+++ b/web/app/lib/pricing/catalog.ts@@ -387,49 +387,6 @@ export const PLAN_ENTITLEMENTS = {},} as const-export const ADDONS = {- websiteBundles: [- {- code: 'websites_50',- quantity: 50,- labelKey: 'pricing.addons.websiteBundle',- monthly: { USD: 7.5, EUR: 7, GBP: 6 },- },- {- code: 'websites_250',- quantity: 250,- labelKey: 'pricing.addons.websiteBundle',- monthly: { USD: 30, EUR: 27, GBP: 24 },- },- {- code: 'websites_1000',- quantity: 1000,- labelKey: 'pricing.addons.websiteBundle',- monthly: { USD: 99, EUR: 89, GBP: 79 },- },- ],- sessionReplayBundles: [- {- code: 'replays_5000',- quantity: 5000,- labelKey: 'pricing.addons.sessionReplayBundle',- monthly: { USD: 19, EUR: 17, GBP: 15 },- },- {- code: 'replays_25000',- quantity: 25000,- labelKey: 'pricing.addons.sessionReplayBundle',- monthly: { USD: 79, EUR: 69, GBP: 59 },- },- {- code: 'replays_100000',- quantity: 100000,- labelKey: 'pricing.addons.sessionReplayBundle',- monthly: { USD: 249, EUR: 209, GBP: 189 },- },- ],-} as const-const LEGACY_PLAN_LIMITS = {none: {index: 0,diff --git a/web/app/pages/UserSettings/UserSettings.tsx b/web/app/pages/UserSettings/UserSettings.tsxindex d4e93c76a..5c65c4624 100644--- a/web/app/pages/UserSettings/UserSettings.tsx+++ b/web/app/pages/UserSettings/UserSettings.tsx@@ -58,7 +58,6 @@ import { DEFAULT_METAINFO } from '~/lib/models/Metainfo'import { UsageInfo } from '~/lib/models/Usageinfo'import { User } from '~/lib/models/User'import {- ADDONS,getEffectivePlanType,type BillingInterval,type CurrencyCode,@@ -210,13 +209,17 @@ const DEFAULT_USAGE_INFO: UsageInfo = {},}+const WEBSITE_ADDON_QUANTITY_STEP = 50+const SESSION_REPLAY_ADDON_QUANTITY_STEP = 5000+const ADDON_QUANTITY_OPTION_COUNT = 21+const WEBSITE_ADDON_QUANTITY_OPTIONS = Array.from(- { length: 21 },- (_, index) => index * 50,+ { length: ADDON_QUANTITY_OPTION_COUNT },+ (_, index) => index * WEBSITE_ADDON_QUANTITY_STEP,)const SESSION_REPLAY_ADDON_QUANTITY_OPTIONS = Array.from(- { length: 21 },- (_, index) => index * 5000,+ { length: ADDON_QUANTITY_OPTION_COUNT },+ (_, index) => index * SESSION_REPLAY_ADDON_QUANTITY_STEP,)const formatBillingPrice = (amount: number) =>@@ -371,15 +374,11 @@ const UserSettings = () => {: 'USD') as CurrencyCodeconst currency = CURRENCIES[currencyCode]- const websiteAddonBundle = ADDONS.websiteBundles[0]- const websiteAddonPrice = websiteAddonBundle.monthly[currencyCode]const activeWebsiteAddonQuantity =websiteAddon?.quantity ?? purchasedWebsiteAddonsconst currentWebsiteAddonBillingInterval = (websiteAddon?.billingInterval ||'monthly') as BillingIntervalconst isWebsiteAddonLegacy = !!websiteAddon?.isLegacy- const sessionReplayAddonBundle = ADDONS.sessionReplayBundles[0]- const sessionReplayAddonPrice = sessionReplayAddonBundle.monthly[currencyCode]const activeSessionReplayAddonQuantity =sessionReplayAddon?.quantity ?? purchasedSessionReplayAddonsconst currentSessionReplayAddonBillingInterval =@@ -701,11 +700,6 @@ const UserSettings = () => {): 0const displayedPurchasedWebsites = activeWebsiteAddonQuantity- const selectedWebsiteAddonRecurringAmount =- currentWebsiteAddonPreview?.recurringAmount ??- websiteAddonPrice *- (selectedWebsiteAddonQuantity / websiteAddonBundle.quantity) *- (selectedWebsiteAddonBillingInterval === 'yearly' ? 10 : 1)// Yearly add-on billing is only offered to subscribers on a yearly plan;// monthly subscribers can still buy the add-on, billed monthly.const canSelectYearlyWebsiteAddon = user?.billingFrequency === 'yearly'@@ -832,11 +826,6 @@ const UserSettings = () => {),): 0- const selectedSessionReplayAddonRecurringAmount =- currentSessionReplayAddonPreview?.recurringAmount ??- sessionReplayAddonPrice *- (selectedSessionReplayAddonQuantity / sessionReplayAddonBundle.quantity) *- (selectedSessionReplayAddonBillingInterval === 'yearly' ? 10 : 1)const canSelectYearlySessionReplayAddon = user?.billingFrequency === 'yearly'const activeSessionReplayAddonRecurringAmount =sessionReplayAddon?.recurringAmount ?? null@@ -2436,10 +2425,7 @@ const UserSettings = () => {className='mt-1'>{t('billing.websiteAddonDescription', {- amount: websiteAddonBundle.quantity,- unitPrice: `${currency.symbol}${formatBillingPrice(- websiteAddonPrice / websiteAddonBundle.quantity,- )}`,+ amount: WEBSITE_ADDON_QUANTITY_STEP,})}</Text>@@ -2550,10 +2536,7 @@ const UserSettings = () => {className='mt-1'>{t('billing.sessionReplayAddonDescription', {- amount: sessionReplayAddonBundle.quantity,- bundlePrice: `${currency.symbol}${formatBillingPrice(- sessionReplayAddonPrice,- )}`,+ amount: SESSION_REPLAY_ADDON_QUANTITY_STEP,})}</Text>@@ -2894,10 +2877,7 @@ const UserSettings = () => {<div className='space-y-5 text-left'><Text as='p' size='sm' colour='secondary'>{t('billing.websiteAddonDescription', {- amount: websiteAddonBundle.quantity,- unitPrice: `${currency.symbol}${formatBillingPrice(- websiteAddonPrice / websiteAddonBundle.quantity,- )}`,+ amount: WEBSITE_ADDON_QUANTITY_STEP,})}</Text>@@ -3004,7 +2984,7 @@ const UserSettings = () => {<Text as='span' size='sm' weight='semibold'>{currentWebsiteAddonPreview.quantity > 0? `${currency.symbol}${formatBillingPrice(- selectedWebsiteAddonRecurringAmount,+ currentWebsiteAddonPreview.recurringAmount,)}/${t(selectedWebsiteAddonBillingInterval === 'yearly'? 'pricing.intervals.year'@@ -3066,10 +3046,7 @@ const UserSettings = () => {<div className='space-y-5 text-left'><Text as='p' size='sm' colour='secondary'>{t('billing.sessionReplayAddonDescription', {- amount: sessionReplayAddonBundle.quantity,- bundlePrice: `${currency.symbol}${formatBillingPrice(- sessionReplayAddonPrice,- )}`,+ amount: SESSION_REPLAY_ADDON_QUANTITY_STEP,})}</Text>@@ -3181,7 +3158,7 @@ const UserSettings = () => {<Text as='span' size='sm' weight='semibold'>{currentSessionReplayAddonPreview.quantity > 0? `${currency.symbol}${formatBillingPrice(- selectedSessionReplayAddonRecurringAmount,+ currentSessionReplayAddonPreview.recurringAmount,)}/${t(selectedSessionReplayAddonBillingInterval ==='yearly'diff --git a/web/public/locales/en.json b/web/public/locales/en.jsonindex b436920dd..01c7692b9 100644--- a/web/public/locales/en.json+++ b/web/public/locales/en.json@@ -2996,9 +2996,9 @@"addonsTitle": "Add-ons","addonsDesc": "Add-ons are recurring subscription extras. They are available for active paid subscriptions.","websiteAddonTitle": "Additional websites",- "websiteAddonDescription": "Add websites in chunks of {{amount}} at {{unitPrice}} per website per month.",+ "websiteAddonDescription": "Add websites in chunks of {{amount}} to your active subscription.","sessionReplayAddonTitle": "Additional session replays",- "sessionReplayAddonDescription": "Add recorded sessions in chunks of {{amount}} at {{bundlePrice}} per month.",+ "sessionReplayAddonDescription": "Add recorded sessions in chunks of {{amount}} to your active subscription.","sessionReplayCapacityTitle": "Session replay capacity","sessionReplayCapacityDescription": "Your current plan includes {{quota}} recorded sessions per month. For higher capacity or longer retention, choose a larger Plus plan or contact us for a custom entitlement.","sessionReplayCapacityCta": "Review replay plans",@@ -3212,12 +3212,6 @@"manualInvoicing": "We accept all major credit & debit cards. Enterprise customers can also pay by ACH, SEPA, wire transfer, or invoice."}},- "addons": {- "websiteTitle": "Website add-ons",- "sessionReplayTitle": "Session replay add-ons",- "websiteBundle": "+{{amount}} websites",- "sessionReplayBundle": "+{{amount}} recorded sessions"- },"billedAnnuallyAt": "Billed annually at {{amount}}","switchToMonthly": "Switch to monthly billing","upToXEvents": "Up to {{amount}} monthly events.",