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!

Improve UI & wording

Blue Mouse1c118fef4628
diff --git a/web/app/components/marketing/Integrations.tsx b/web/app/components/marketing/Integrations.tsx
index 06ac158ab..cb49eda58 100644
--- a/web/app/components/marketing/Integrations.tsx
+++ b/web/app/components/marketing/Integrations.tsx
@@ -272,7 +272,7 @@ const Integrations = () => {
>
{t('main.integrations.title')}
</Text>
- <Text as='p' size='lg' colour='secondary' className='mt-6 leading-8'>
+ <Text as='p' size='base' colour='secondary' className='mt-6'>
{t('main.integrations.description')}
</Text>
</div>
diff --git a/web/app/components/pricing/MarketingPricing.tsx b/web/app/components/pricing/MarketingPricing.tsx
index 06eab46cd..e4c046035 100644
--- a/web/app/components/pricing/MarketingPricing.tsx
+++ b/web/app/components/pricing/MarketingPricing.tsx
@@ -1,5 +1,4 @@
import {
- ArrowLeftIcon,
ArrowRightIcon,
CaretDownIcon,
CaretUpIcon,
@@ -15,18 +14,15 @@ import { DEFAULT_METAINFO, Metainfo } from '~/lib/models/Metainfo'
import {
EVENT_TIER_CODES,
EVENT_TIERS,
- PLAN_ENTITLEMENTS,
- getIncludedSessionReplays,
getPlanPrice,
type BillingInterval,
type CurrencyCode,
- type EventTierCode,
type PlanTypeCode,
} from '~/lib/pricing/catalog'
import { useAuth } from '~/providers/AuthProvider'
-import { Link } from '~/ui/Link'
-import { Switch } from '~/ui/Switch'
+import Button from '~/ui/Button'
import { Text } from '~/ui/Text'
+import Tooltip from '~/ui/Tooltip'
import { cn } from '~/utils/generic'
import routes from '~/utils/routes'
@@ -34,14 +30,25 @@ interface MarketingPricingProps {
metainfo?: Metainfo
}
+interface BenefitTooltip {
+ description: string
+ href?: string
+ linkLabel?: string
+ ariaLabel: string
+}
+
interface Benefit {
label: string
- inherited?: boolean
+ tooltip?: BenefitTooltip
}
const planCards: PlanTypeCode[] = ['standard', 'plus', 'enterprise']
const visibleBenefitsCount = 7
+const botProtectionDocsUrl =
+ 'https://swetrix.com/docs/sitesettings/bot-protection'
+const managedProxyDocsUrl =
+ 'https://swetrix.com/docs/adblockers/managed-proxy'
const formatEvents = (value: number) => value.toLocaleString('en-US')
@@ -61,9 +68,6 @@ const eventTierLabels = EVENT_TIER_CODES.map((tierCode) =>
formatCompactEvents(EVENT_TIERS[tierCode].monthlyEvents),
)
-const formatEntitlement = (value: number | string) =>
- typeof value === 'number' ? value.toLocaleString('en-US') : value
-
const getPriceFormat = (value: number) => ({
minimumFractionDigits: Number.isInteger(value) ? 0 : 2,
maximumFractionDigits: Number.isInteger(value) ? 0 : 2,
@@ -99,84 +103,113 @@ const PriceAmount = ({
const getPlanName = (planType: PlanTypeCode, t: TFunction) =>
t(`pricing.planTypes.${planType}.name`)
-const formatReplayBenefit = (
- replayQuota: number | string,
+const benefitWithTooltip = (
+ labelKey: string,
+ tooltipKey: string,
t: TFunction,
-) =>
- typeof replayQuota === 'number'
- ? t('pricing.sessionReplay.recordedSessions', {
- amount: formatEvents(replayQuota),
- })
- : t('pricing.sessionReplay.customQuota')
-
-const getBenefits = (
- planType: PlanTypeCode,
- eventTier: EventTierCode,
- t: TFunction,
-): Benefit[] => {
- const entitlements = PLAN_ENTITLEMENTS[planType]
- const replayQuota = getIncludedSessionReplays(planType, eventTier)
-
- const planLimits = [
- t('pricing.benefits.upToWebsites', {
- amount: formatEntitlement(entitlements.websites),
- }),
- t('pricing.benefits.upToTeamMembers', {
- amount: formatEntitlement(entitlements.teamMembers),
- }),
- t('pricing.benefits.upToOrganisations', {
- amount: formatEntitlement(entitlements.organisations),
- }),
- ]
+ href?: string,
+): Benefit => {
+ const label = t(labelKey)
+
+ return {
+ label,
+ tooltip: {
+ description: t(tooltipKey),
+ href,
+ linkLabel: href ? t('common.learnMore') : undefined,
+ ariaLabel: `${t('common.learnMore')}: ${label}`,
+ },
+ }
+}
+const getBenefits = (planType: PlanTypeCode, t: TFunction): Benefit[] => {
if (planType === 'standard') {
return [
- ...planLimits.map((label) => ({ label })),
- { label: t('pricing.benefits.customEvents') },
- { label: t('pricing.benefits.goals') },
- { label: t('pricing.benefits.webVitals') },
+ { label: t('pricing.websiteCount', { count: 10 }) },
+ { label: t('pricing.benefits.unlimitedMembers') },
+ { label: t('pricing.benefits.eventsAndGoals') },
+ { label: t('pricing.benefits.funnels') },
+ { label: t('pricing.benefits.sessionUserProfileAnalysis') },
+ benefitWithTooltip(
+ 'pricing.benefits.advancedBotDetection',
+ 'pricing.benefits.tooltips.advancedBotDetection',
+ t,
+ botProtectionDocsUrl,
+ ),
+ benefitWithTooltip(
+ 'pricing.benefits.adBlockerBypass',
+ 'pricing.benefits.tooltips.adBlockerBypass',
+ t,
+ managedProxyDocsUrl,
+ ),
{ label: t('pricing.benefits.errorTracking') },
{ label: t('pricing.benefits.emailReports') },
- { label: t('pricing.benefits.funnels') },
- { label: t('pricing.benefits.journeys') },
- { label: t('pricing.benefits.sessionsProfiles') },
- { label: t('pricing.benefits.featureFlags') },
- { label: t('pricing.benefits.abTests') },
- { label: t('pricing.benefits.revenueAnalytics') },
- { label: t('pricing.benefits.standardApi') },
+ { label: t('pricing.benefits.recaptchaAlternative') },
+ { label: t('pricing.benefits.restfulApiSdks') },
+ { label: t('pricing.benefits.googleAnalyticsImport') },
+ { label: t('pricing.benefits.humanSupport') },
]
}
if (planType === 'plus') {
return [
- { label: t('pricing.benefits.everythingInStandard'), inherited: true },
- ...planLimits.map((label) => ({ label })),
- { label: formatReplayBenefit(replayQuota, t) },
+ {
+ label: t('pricing.websiteCount', { count: 100 }),
+ tooltip: {
+ description: t('pricing.benefits.tooltips.plusWebsites'),
+ ariaLabel: `${t('common.learnMore')}: ${t('pricing.websiteCount', {
+ count: 100,
+ })}`,
+ },
+ },
+ { label: t('pricing.benefits.sessionReplays') },
+ { label: t('pricing.benefits.featureFlags') },
+ { label: t('pricing.benefits.abTesting') },
+ { label: t('pricing.benefits.twentyXHigherApiRateLimits') },
{ label: t('pricing.benefits.prioritySupport') },
- { label: t('pricing.benefits.higherApiLimits') },
- { label: t('pricing.benefits.dataExports') },
- { label: t('pricing.benefits.agencyOrganisations') },
- { label: t('pricing.benefits.advancedExperiments') },
- { label: t('pricing.benefits.revenueAnalytics') },
]
}
return [
- { label: t('pricing.benefits.everythingInPlus'), inherited: true },
- { label: t('pricing.benefits.customUserLimit') },
- { label: t('pricing.benefits.customSiteLimit') },
- { label: t('pricing.benefits.customOrganisationLimit') },
- { label: t('pricing.benefits.customEventVolume') },
- { label: t('pricing.benefits.ssoSaml') },
- { label: t('pricing.benefits.dedicatedInstance') },
+ { label: t('pricing.benefits.dedicatedAccountManager') },
+ benefitWithTooltip(
+ 'pricing.benefits.customEventLimits',
+ 'pricing.benefits.tooltips.customEventLimits',
+ t,
+ ),
+ { label: t('pricing.benefits.customFeatures') },
{ label: t('pricing.benefits.onPremise') },
- { label: t('pricing.benefits.manualInvoicing') },
+ { label: t('pricing.benefits.dedicatedInstance') },
+ { label: t('pricing.benefits.ssoSaml') },
+ { label: t('pricing.benefits.personalOnboarding') },
+ benefitWithTooltip(
+ 'pricing.benefits.manualInvoicing',
+ 'pricing.benefits.tooltips.manualInvoicing',
+ t,
+ ),
{ label: t('pricing.benefits.sla') },
- { label: t('pricing.benefits.whitelabeling') },
- { label: t('pricing.benefits.securityLegalSupport') },
]
}
+const BenefitTooltipContent = ({ tooltip }: { tooltip: BenefitTooltip }) => (
+ <span className='block'>
+ {tooltip.description}
+ {tooltip.href && tooltip.linkLabel ? (
+ <>
+ {' '}
+ <a
+ href={tooltip.href}
+ className='font-semibold underline decoration-dashed hover:decoration-solid'
+ target='_blank'
+ rel='noreferrer noopener'
+ >
+ {tooltip.linkLabel}
+ </a>
+ </>
+ ) : null}
+ </span>
+)
+
const BenefitRow = ({
benefit,
isEnterprise,
@@ -184,38 +217,47 @@ const BenefitRow = ({
benefit: Benefit
isEnterprise: boolean
}) => {
- if (benefit.inherited) {
- return (
- <div className='flex items-center gap-2.5'>
- <ArrowLeftIcon
- className={cn(
- 'size-4 shrink-0',
- isEnterprise ? 'text-gray-300' : 'text-gray-400 dark:text-gray-500',
- )}
- />
+ return (
+ <div className='flex items-start gap-2.5'>
+ <CheckIcon className='mt-0.5 size-4 shrink-0 text-emerald-600' weight='bold' />
+ <div className='flex min-w-0 items-center gap-1.5'>
<Text
as='p'
size='sm'
- weight='medium'
- colour={isEnterprise ? 'inherit' : 'muted'}
- className='italic'
+ colour='primary'
+ className={isEnterprise ? 'dark' : ''}
>
{benefit.label}
</Text>
+ {benefit.tooltip ? (
+ <Tooltip
+ ariaLabel={benefit.tooltip.ariaLabel}
+ text={<BenefitTooltipContent tooltip={benefit.tooltip} />}
+ className={isEnterprise ? 'dark' : ''}
+ />
+ ) : null}
</div>
- )
- }
-
- return (
- <div className='flex items-center gap-2.5'>
- <CheckIcon className='size-4 shrink-0 text-emerald-600 dark:text-emerald-400' />
- <Text as='p' size='sm' colour={isEnterprise ? 'inherit' : 'primary'}>
- {benefit.label}
- </Text>
</div>
)
}
+const BillingFrequencySwitch = ({ checked }: { checked: boolean }) => (
+ <span
+ aria-hidden='true'
+ className={cn(
+ 'relative inline-flex h-4 w-7 shrink-0 items-center justify-start rounded-full border-2 border-transparent transition-colors duration-200 ease-out',
+ checked ? 'bg-slate-900 dark:bg-slate-800' : 'bg-gray-300',
+ )}
+ >
+ <span
+ className={cn(
+ 'pointer-events-none inline-block size-3 transform rounded-full bg-white shadow-sm transition-transform duration-200 ease-out',
+ checked ? 'translate-x-3' : 'translate-x-0',
+ )}
+ />
+ </span>
+)
+
const MarketingPricing = ({
metainfo = DEFAULT_METAINFO,
}: MarketingPricingProps) => {
@@ -266,300 +308,384 @@ const MarketingPricing = ({
}
return (
- <section
- id='pricing'
- className='relative bg-gray-50 px-4 py-20 dark:bg-slate-950'
- >
- <div className='mx-auto max-w-7xl'>
- <div className='mx-auto max-w-3xl text-center'>
- <Text as='h2' size='4xl' weight='bold' className='sm:text-5xl'>
- {t('pricing.title')}
- </Text>
- <Text
- as='p'
- size='base'
- colour='secondary'
- className='mt-4 whitespace-pre-line'
- >
- {t('pricing.adv', { amount: TRIAL_DAYS })}
- </Text>
- </div>
-
- <div className='mx-auto mt-10 max-w-xl'>
- <div className='mb-6 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between'>
- <div>
- <Text as='h3' size='lg' weight='semibold'>
- {t('pricing.monthlyEvents')}
- </Text>
- <Text
- as='p'
- size='3xl'
- weight='bold'
- className='mt-1 text-blue-600 dark:text-blue-400'
- >
- {formatEvents(selectedMonthlyEvents)}
- </Text>
- </div>
+ <section id='pricing' className='relative bg-gray-50 p-2 dark:bg-slate-950'>
+ <div className='overflow-hidden rounded-2xl bg-gray-100 dark:bg-slate-900/50 py-16 ring-1 ring-gray-200/70 dark:ring-white/10 sm:py-20'>
+ <div className='mx-auto max-w-7xl'>
+ <div className='mx-auto max-w-3xl px-4 text-center sm:px-6 lg:px-8'>
+ <Text
+ as='h2'
+ size='3xl'
+ weight='bold'
+ colour='primary'
+ className='sm:text-4xl'
+ >
+ {t('pricing.title')}
+ </Text>
+ <Text
+ as='p'
+ size='base'
+ colour='primary'
+ className='mt-6 whitespace-pre-line'
+ >
+ {t('pricing.adv', { amount: TRIAL_DAYS })}
+ </Text>
+ </div>
- <div className='flex justify-start sm:justify-end'>
- <button
- type='button'
- onClick={toggleBillingFrequency}
- className='flex cursor-pointer items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2 text-gray-700 transition-colors hover:bg-gray-100 dark:border-slate-700 dark:bg-slate-900 dark:text-gray-200 dark:hover:bg-slate-800'
- >
- <Text as='span' size='sm' weight='medium' colour='inherit'>
- {t('pricing.billedYearly')}
- </Text>
- {yearlyDiscount > 0 ? (
+ <div className='mx-auto mt-10 max-w-xl px-4 sm:px-6 lg:px-8'>
+ <div className='mb-6 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between'>
+ <div>
+ <div className='flex items-center gap-1.5'>
<Text
- as='span'
- size='xs'
- weight='semibold'
- colour='success'
- className='rounded-md bg-emerald-500/20 px-1.5 py-0.5'
+ as='h3'
+ size='lg'
+ colour='secondary'
>
- -{yearlyDiscount} %
+ {t('pricing.monthlyEvents')}
</Text>
- ) : null}
- <Switch checked={isYearly} visualOnly />
- </button>
- </div>
- </div>
-
- <input
- aria-label={t('pricing.monthlyEventVolume')}
- type='range'
- min={0}
- max={EVENT_TIER_CODES.length - 1}
- step={1}
- value={selectedTierIndex}
- onChange={(event) =>
- setSelectedTierIndex(Number(event.target.value))
- }
- className='h-2 w-full cursor-pointer appearance-none rounded-full bg-gray-200 accent-blue-600 dark:bg-slate-700 dark:accent-blue-400 [&::-moz-range-thumb]:size-5 [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-blue-600 [&::-moz-range-thumb]:bg-white [&::-moz-range-thumb]:shadow-sm dark:[&::-moz-range-thumb]:border-blue-400 dark:[&::-moz-range-thumb]:bg-slate-950 [&::-webkit-slider-thumb]:size-5 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-blue-600 [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:shadow-sm dark:[&::-webkit-slider-thumb]:border-blue-400 dark:[&::-webkit-slider-thumb]:bg-slate-950'
- style={{
- background: `linear-gradient(to right, rgb(37 99 235) 0%, rgb(37 99 235) ${sliderPercent}%, rgb(209 213 219) ${sliderPercent}%, rgb(209 213 219) 100%)`,
- }}
- />
-
- <div
- className='mt-3 grid gap-1'
- style={{
- gridTemplateColumns: `repeat(${EVENT_TIER_CODES.length}, minmax(0, 1fr))`,
- }}
- >
- {eventTierLabels.map((label, index) => (
- <Text
- key={label}
- as='button'
- type='button'
- size='xs'
- weight={index === selectedTierIndex ? 'bold' : 'medium'}
- colour={index === selectedTierIndex ? 'primary' : 'muted'}
- className={cn(
- 'text-center',
- index === selectedTierIndex && 'text-blue-600 dark:text-blue-400',
- )}
- onClick={() => setSelectedTierIndex(index)}
- >
- {label}
- </Text>
- ))}
- </div>
- </div>
-
- <NumberFlowGroup>
- <div className='mx-auto mt-6 grid max-w-7xl gap-4 px-4 sm:px-6 lg:grid-cols-3 lg:px-8'>
- {planCards.map((planType) => {
- const isEnterprise = planType === 'enterprise'
- const benefits = getBenefits(planType, selectedTier, t)
- const visibleBenefits = showAllBenefits
- ? benefits
- : benefits.slice(0, visibleBenefitsCount)
- const hiddenBenefitsCount = Math.max(
- 0,
- benefits.length - visibleBenefits.length,
- )
- const monthlyPrice = getPlanPrice(
- planType,
- selectedTier,
- 'monthly',
- currencyCode,
- )?.amount
- const yearlyPrice = getPlanPrice(
- planType,
- selectedTier,
- 'yearly',
- currencyCode,
- )?.amount
- const yearlyMonthlyPrice = yearlyPrice
- ? Math.round((yearlyPrice / 12) * 100) / 100
- : null
- const monthlyPlan = getPlanPrice(
- planType,
- selectedTier,
- 'monthly',
- currencyCode,
- )
- const yearlyPlan = getPlanPrice(
- planType,
- selectedTier,
- 'yearly',
- currencyCode,
- )
- const hasPublishedPrice = Boolean(monthlyPrice && yearlyPrice)
- const canSelfServe = Boolean(
- monthlyPlan?.paddlePlanId && yearlyPlan?.paddlePlanId,
- )
-
- return (
- <div
- key={planType}
- className={cn(
- 'flex min-h-[520px] flex-col rounded-2xl p-5 ring-1',
- isEnterprise
- ? 'bg-slate-900 text-gray-50 ring-slate-700 dark:bg-slate-900 dark:text-gray-50 dark:ring-slate-700'
- : 'bg-white text-gray-950 ring-gray-200 dark:bg-slate-900 dark:text-gray-50 dark:ring-slate-700/70',
- )}
+ <Tooltip
+ ariaLabel={`${t('common.learnMore')}: ${t(
+ 'pricing.monthlyEvents',
+ )}`}
+ text={t('pricing.monthlyEventsTooltip')}
+ />
+ </div>
+ <Text
+ as='p'
+ size='3xl'
+ weight='bold'
+ colour='primary'
+ className='mt-1'
+ >
+ {formatEvents(selectedMonthlyEvents)}
+ </Text>
+ </div>
+
+ <div className='flex justify-start sm:justify-end'>
+ <button
+ type='button'
+ aria-pressed={isYearly}
+ onClick={toggleBillingFrequency}
+ className='flex cursor-pointer items-center gap-2 rounded-lg border border-gray-200 dark:border-white/10 bg-white px-3 py-2 transition-colors hover:bg-gray-50 dark:bg-slate-900 dark:hover:bg-slate-800'
>
- <div className='flex items-start justify-between gap-3'>
+ <Text as='span' size='sm' weight='medium' colour='primary'>
+ {t('pricing.billedYearly')}
+ </Text>
+ {yearlyDiscount > 0 ? (
<Text
- as='h3'
- size='lg'
- weight='bold'
- colour={isEnterprise ? 'inherit' : 'primary'}
+ as='span'
+ size='xs'
+ weight='semibold'
+ colour='success'
+ className='rounded-md bg-emerald-500/20 px-1.5 py-0.5'
>
- {getPlanName(planType, t)}
+ -{yearlyDiscount} %
</Text>
- </div>
+ ) : null}
+ <BillingFrequencySwitch checked={isYearly} />
+ </button>
+ </div>
+ </div>
- <div className='mt-2 min-h-[72px]'>
- {hasPublishedPrice ? (
- <>
- <div className='flex min-h-10 flex-wrap items-end gap-2'>
- <Text
- as='p'
- size='3xl'
- weight='bold'
- colour={isEnterprise ? 'inherit' : 'primary'}
- >
- <PriceAmount
- value={
- isYearly ? yearlyPrice ?? null : monthlyPrice ?? null
- }
- currencySymbol={currency.symbol}
- />
- </Text>
- <Text
- as='p'
- size='base'
- weight='semibold'
- colour={isEnterprise ? 'inherit' : 'secondary'}
- className='pb-1'
- >
- {`/${t(
- isYearly
- ? 'pricing.intervals.year'
- : 'pricing.intervals.month',
- )}`}
- </Text>
- </div>
- {isYearly ? (
- <div className='mt-2 flex h-6 flex-wrap items-baseline gap-1'>
- <Text
- as='span'
- size='sm'
- weight='semibold'
- colour={isEnterprise ? 'inherit' : 'secondary'}
- className='line-through'
- >
- {formatPrice(monthlyPrice ?? null, currency.symbol)}
- </Text>
+ <input
+ aria-label={t('pricing.monthlyEventVolume')}
+ type='range'
+ min={0}
+ max={EVENT_TIER_CODES.length - 1}
+ step={1}
+ value={selectedTierIndex}
+ onChange={(event) =>
+ setSelectedTierIndex(Number(event.target.value))
+ }
+ className='h-2 w-full cursor-pointer appearance-none rounded-full bg-gray-200 accent-blue-600 [&::-moz-range-thumb]:size-5 [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-blue-600 [&::-moz-range-thumb]:bg-white [&::-moz-range-thumb]:shadow-sm [&::-webkit-slider-thumb]:size-5 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-blue-600 [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:shadow-sm'
+ style={{
+ background: `linear-gradient(to right, rgb(37 99 235) 0%, rgb(37 99 235) ${sliderPercent}%, rgb(209 213 219) ${sliderPercent}%, rgb(209 213 219) 100%)`,
+ }}
+ />
+
+ <div
+ className='mt-3 grid gap-1'
+ style={{
+ gridTemplateColumns: `repeat(${EVENT_TIER_CODES.length}, minmax(0, 1fr))`,
+ }}
+ >
+ {eventTierLabels.map((label, index) => (
+ <Text
+ key={label}
+ as='button'
+ type='button'
+ size='xs'
+ weight={index === selectedTierIndex ? 'bold' : 'medium'}
+ colour={index === selectedTierIndex ? 'primary' : 'secondary'}
+ className='text-center'
+ onClick={() => setSelectedTierIndex(index)}
+ >
+ {label}
+ </Text>
+ ))}
+ </div>
+ </div>
+
+ <NumberFlowGroup>
+ <div className='mx-auto mt-6 grid max-w-7xl gap-4 px-4 sm:px-6 lg:grid-cols-3 lg:px-8'>
+ {planCards.map((planType) => {
+ const isEnterprise = planType === 'enterprise'
+ const benefits = getBenefits(planType, t)
+ const visibleBenefits = showAllBenefits
+ ? benefits
+ : benefits.slice(0, visibleBenefitsCount)
+ const hiddenBenefitsCount = Math.max(
+ 0,
+ benefits.length - visibleBenefits.length,
+ )
+ const monthlyPrice = getPlanPrice(
+ planType,
+ selectedTier,
+ 'monthly',
+ currencyCode,
+ )?.amount
+ const yearlyPrice = getPlanPrice(
+ planType,
+ selectedTier,
+ 'yearly',
+ currencyCode,
+ )?.amount
+ const yearlyMonthlyPrice = yearlyPrice
+ ? Math.round((yearlyPrice / 12) * 100) / 100
+ : null
+ const monthlyPlan = getPlanPrice(
+ planType,
+ selectedTier,
+ 'monthly',
+ currencyCode,
+ )
+ const yearlyPlan = getPlanPrice(
+ planType,
+ selectedTier,
+ 'yearly',
+ currencyCode,
+ )
+ const hasPublishedPrice = Boolean(monthlyPrice && yearlyPrice)
+ const canSelfServe = Boolean(
+ monthlyPlan?.paddlePlanId && yearlyPlan?.paddlePlanId,
+ )
+
+ return (
+ <div
+ key={planType}
+ className={cn(
+ 'flex min-h-[520px] flex-col rounded-2xl p-5 shadow-sm ring-1 dark:ring-white/10',
+ isEnterprise
+ ? 'bg-slate-900 ring-slate-700'
+ : 'bg-white ring-gray-200 dark:bg-slate-900',
+ )}
+ >
+ <div className='flex items-start justify-between gap-3'>
+ <Text
+ as='h3'
+ size='lg'
+ weight='bold'
+ colour='primary'
+ className={
+ isEnterprise ? 'dark' : ''
+ }
+ >
+ {getPlanName(planType, t)}
+ </Text>
+ </div>
+
+ <div className='mt-2 min-h-[72px]'>
+ {hasPublishedPrice ? (
+ <>
+ <div className='flex min-h-10 flex-wrap items-end gap-2'>
<Text
- as='span'
- size='sm'
+ as='p'
+ size='3xl'
weight='bold'
- colour={isEnterprise ? 'inherit' : 'primary'}
+ colour='primary'
+ className={
+ isEnterprise ? 'dark' : ''
+ }
>
- {formatPrice(yearlyMonthlyPrice, currency.symbol)}
+ <PriceAmount
+ value={
+ isYearly
+ ? (yearlyPrice ?? null)
+ : (monthlyPrice ?? null)
+ }
+ currencySymbol={currency.symbol}
+ />
</Text>
<Text
- as='span'
- size='sm'
- weight='semibold'
- colour={isEnterprise ? 'inherit' : 'secondary'}
+ as='p'
+ size='base'
+ weight='medium'
+ colour='secondary'
+ className={cn(
+ 'pb-1',
+ isEnterprise
+ ? 'dark'
+ : '',
+ )}
>
- /{t('pricing.intervals.month')}
+ {`/${t(
+ isYearly
+ ? 'pricing.intervals.year'
+ : 'pricing.intervals.month',
+ )}`}
</Text>
</div>
- ) : (
- <div className='mt-2 h-6' aria-hidden='true' />
- )}
- </>
- ) : (
- <Text as='p' size='3xl' weight='bold' colour='inherit'>
- {t('pricing.custom')}
- </Text>
- )}
- </div>
-
- <Link
- to={
- canSelfServe
- ? isAuthenticated
- ? routes.billing
- : routes.signup
- : routes.contact
- }
- className={cn(
- 'mt-5 inline-flex items-center justify-center gap-2 rounded-md px-4 py-2.5 transition-colors',
- isEnterprise
- ? 'bg-gray-50 text-slate-950 hover:bg-gray-200 dark:bg-gray-50 dark:text-slate-950 dark:hover:bg-gray-200'
- : 'bg-slate-900 text-gray-50 hover:bg-slate-700 dark:bg-slate-100 dark:text-slate-950 dark:hover:bg-white',
- )}
- >
- <Text as='span' size='sm' weight='semibold' colour='inherit'>
- {canSelfServe
- ? t('pricing.startFreeTrial')
- : t('pricing.contactUs')}
- </Text>
- <ArrowRightIcon className='size-4' />
- </Link>
-
- <div className='mt-5 space-y-3'>
- {visibleBenefits.map((benefit) => (
- <BenefitRow
- key={benefit.label}
- benefit={benefit}
- isEnterprise={isEnterprise}
- />
- ))}
- {hiddenBenefitsCount > 0 || showAllBenefits ? (
- <button
- type='button'
- onClick={() => setShowAllBenefits((value) => !value)}
- className='flex items-center gap-2.5 underline-animate'
- >
- {showAllBenefits ? (
- <CaretUpIcon className='size-4 text-gray-700 dark:text-gray-200' />
- ) : (
- <CaretDownIcon className='size-4 text-gray-700 dark:text-gray-200' />
- )}
- <Text as='span' size='sm' weight='medium' colour='primary'>
- {showAllBenefits
- ? t('common.showLess')
- : t('common.showMore', {
- count: hiddenBenefitsCount,
- })}
+ {isYearly ? (
+ <div className='mt-2 flex h-6 flex-wrap items-baseline gap-1'>
+ <Text
+ as='span'
+ size='sm'
+ weight='medium'
+ colour='secondary'
+ className={cn(
+ 'line-through',
+ isEnterprise
+ ? 'dark'
+ : '',
+ )}
+ >
+ {formatPrice(
+ monthlyPrice ?? null,
+ currency.symbol,
+ )}
+ </Text>
+ <Text
+ as='span'
+ size='sm'
+ weight='bold'
+ colour='primary'
+ className={
+ isEnterprise
+ ? 'dark'
+ : ''
+ }
+ >
+ {formatPrice(
+ yearlyMonthlyPrice,
+ currency.symbol,
+ )}
+ </Text>
+ <Text
+ as='span'
+ size='sm'
+ weight='medium'
+ colour='secondary'
+ className={
+ isEnterprise
+ ? 'dark'
+ : ''
+ }
+ >
+ /{t('pricing.intervals.month')}
+ </Text>
+ </div>
+ ) : (
+ <div className='mt-2 h-6' aria-hidden='true' />
+ )}
+ </>
+ ) : (
+ <Text
+ as='p'
+ size='3xl'
+ weight='bold'
+ colour='primary'
+ className={
+ isEnterprise ? 'dark' : ''
+ }
+ >
+ {t('pricing.custom')}
</Text>
- </button>
- ) : null}
+ )}
+ </div>
+
+ <Button
+ to={
+ canSelfServe
+ ? isAuthenticated
+ ? routes.billing
+ : routes.signup
+ : routes.contact
+ }
+ variant='primary'
+ size='lg'
+ className={cn('mt-5 justify-center gap-2', isEnterprise ? 'dark' : '')}
+ >
+ <Text
+ as='span'
+ size='sm'
+ weight='semibold'
+ colour='inherit'
+ >
+ {canSelfServe
+ ? t('pricing.startFreeTrial')
+ : t('pricing.contactUs')}
+ </Text>
+ <ArrowRightIcon className='size-4' />
+ </Button>
+
+ <div className='mt-5 space-y-3'>
+ {visibleBenefits.map((benefit) => (
+ <BenefitRow
+ key={benefit.label}
+ benefit={benefit}
+ isEnterprise={isEnterprise}
+ />
+ ))}
+ {hiddenBenefitsCount > 0 || showAllBenefits ? (
+ <button
+ type='button'
+ onClick={() => setShowAllBenefits((value) => !value)}
+ className='underline-animate flex items-center gap-2.5'
+ >
+ {showAllBenefits ? (
+ <CaretUpIcon
+ className={cn(
+ 'size-4',
+ isEnterprise
+ ? 'text-gray-200'
+ : 'text-gray-700',
+ )}
+ weight='bold'
+ />
+ ) : (
+ <CaretDownIcon
+ className={cn(
+ 'size-4',
+ isEnterprise
+ ? 'text-gray-200'
+ : 'text-gray-700',
+ )}
+ weight='bold'
+ />
+ )}
+ <Text
+ as='span'
+ size='sm'
+ weight='medium'
+ colour='primary'
+ className={
+ isEnterprise ? 'dark' : ''
+ }
+ >
+ {showAllBenefits
+ ? t('common.showLess')
+ : t('common.showMore', {
+ count: hiddenBenefitsCount,
+ })}
+ </Text>
+ </button>
+ ) : null}
+ </div>
</div>
- </div>
- )
- })}
- </div>
- </NumberFlowGroup>
+ )
+ })}
+ </div>
+ </NumberFlowGroup>
+ </div>
</div>
</section>
)
diff --git a/web/app/lib/pricing/catalog.ts b/web/app/lib/pricing/catalog.ts
index f617e513b..738ed55e4 100644
--- a/web/app/lib/pricing/catalog.ts
+++ b/web/app/lib/pricing/catalog.ts
@@ -259,17 +259,17 @@ export const PLAN_ENTITLEMENTS = {
apiRateLimitPerHour: 600,
sessionReplaysIncluded: 0,
featureKeys: [
- 'pricing.benefits.coreAnalytics',
- 'pricing.benefits.customEventsAndGoals',
- 'pricing.benefits.webVitals',
+ 'pricing.benefits.eventsAndGoals',
+ 'pricing.benefits.funnels',
+ 'pricing.benefits.sessionUserProfileAnalysis',
'pricing.benefits.errorTracking',
+ 'pricing.benefits.advancedBotDetection',
+ 'pricing.benefits.adBlockerBypass',
'pricing.benefits.emailReports',
- 'pricing.benefits.funnelsAndJourneys',
- 'pricing.benefits.visitorSessionsAndProfiles',
- 'pricing.benefits.featureFlags',
- 'pricing.benefits.experiments',
- 'pricing.benefits.revenueAnalytics',
- 'pricing.benefits.standardApi',
+ 'pricing.benefits.recaptchaAlternative',
+ 'pricing.benefits.restfulApiSdks',
+ 'pricing.benefits.googleAnalyticsImport',
+ 'pricing.benefits.humanSupport',
],
},
plus: {
@@ -293,12 +293,10 @@ export const PLAN_ENTITLEMENTS = {
'50m': 2500000,
},
featureKeys: [
- 'pricing.benefits.everythingInStandard',
- 'pricing.benefits.sessionReplay',
- 'pricing.benefits.moreOrganisations',
- 'pricing.benefits.higherApiLimits',
- 'pricing.benefits.dataExportWorkflows',
- 'pricing.benefits.largerReplayQuota',
+ 'pricing.benefits.sessionReplays',
+ 'pricing.benefits.featureFlags',
+ 'pricing.benefits.abTesting',
+ 'pricing.benefits.twentyXHigherApiRateLimits',
'pricing.benefits.prioritySupport',
],
},
@@ -309,14 +307,15 @@ export const PLAN_ENTITLEMENTS = {
apiRateLimitPerHour: 'custom',
sessionReplaysIncluded: 'custom',
featureKeys: [
- 'pricing.benefits.everythingInPlus',
- 'pricing.benefits.ssoSaml',
- 'pricing.benefits.dedicatedInstance',
+ 'pricing.benefits.dedicatedAccountManager',
+ 'pricing.benefits.customEventLimits',
+ 'pricing.benefits.customFeatures',
'pricing.benefits.onPremise',
+ 'pricing.benefits.dedicatedInstance',
+ 'pricing.benefits.ssoSaml',
+ 'pricing.benefits.personalOnboarding',
'pricing.benefits.manualInvoicing',
'pricing.benefits.sla',
- 'pricing.benefits.whitelabeling',
- 'pricing.benefits.securityLegalSupport',
],
},
} as const
diff --git a/web/app/ui/Tooltip.tsx b/web/app/ui/Tooltip.tsx
index f90fb87ec..a0dba2969 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='size-4.5 fill-slate-700 stroke-gray-50 dark:fill-slate-200 dark:stroke-slate-800' />
+ <QuestionIcon className='cursor-help size-4 fill-slate-700 stroke-gray-50 dark:fill-slate-200 dark:stroke-slate-800' />
)}
</TooltipTrigger>
<TooltipContent
diff --git a/web/public/locales/en.json b/web/public/locales/en.json
index a20694dcc..7941a3b4f 100644
--- a/web/public/locales/en.json
+++ b/web/public/locales/en.json
@@ -2896,8 +2896,8 @@
}
},
"pricing": {
- "title": "Pricing that scales on volume and capability",
- "adv": "Choose the monthly event volume you need, then pick the feature set that fits your team.\nStart with a {{amount}} day free trial. Cancel anytime before the trial ends.",
+ "title": "Pricing",
+ "adv": "Try Swetrix on your website for 14 days - completely free of charge. A payment method is required, but you can cancel anytime before the trial ends.",
"subscribe": "Subscribe",
"legacy": "Legacy",
"legacyDescription": "This plan or pricing is no longer available for new users. It is still available for existing users.",
@@ -2913,6 +2913,7 @@
"custom": "Custom",
"customLimits": "Custom limits",
"monthlyEvents": "Monthly events",
+ "monthlyEventsTooltip": "Events include pageviews, custom events, CAPTCHA completions, and error events.",
"monthlyEventVolume": "Monthly event volume",
"eventVolume": "Event volume",
"startFreeTrial": "Start free trial",
@@ -2952,48 +2953,39 @@
"customQuota": "Custom session replay quota"
},
"benefits": {
- "upToWebsites": "Up to {{amount}} websites",
- "upToTeamMembers": "Up to {{amount}} team members",
- "upToOrganisations": "Up to {{amount}} organisations",
- "coreAnalytics": "Core analytics",
- "customEvents": "Custom events",
- "customEventsAndGoals": "Custom events and goals",
- "goals": "Goals",
- "webVitals": "Web vitals",
+ "funnels": "Funnels",
+ "unlimitedMembers": "Unlimited members",
+ "eventsAndGoals": "Events & Goals",
+ "sessionUserProfileAnalysis": "Session & User profile analysis",
"errorTracking": "Error tracking",
+ "advancedBotDetection": "Advanced bot detection",
+ "adBlockerBypass": "Ad-blocker bypass",
"emailReports": "Email reports",
- "funnels": "Funnels",
- "journeys": "Journeys",
- "funnelsAndJourneys": "Funnels and journeys",
- "sessionsProfiles": "Sessions and profiles",
- "visitorSessionsAndProfiles": "Visitor sessions and profiles",
+ "recaptchaAlternative": "reCAPTCHA alternative",
+ "restfulApiSdks": "RESTful API & SDKs",
+ "googleAnalyticsImport": "Google Analytics import",
+ "humanSupport": "Human support",
+ "sessionReplays": "Session replays",
"featureFlags": "Feature flags",
- "experiments": "Experiments",
- "abTests": "A/B tests",
- "revenueAnalytics": "Revenue analytics",
- "standardApi": "Standard API",
- "everythingInStandard": "Everything in Standard",
- "sessionReplay": "Session replay",
- "moreOrganisations": "More organisations",
- "higherApiLimits": "Higher API limits",
- "dataExports": "Data exports",
- "dataExportWorkflows": "Data export workflows",
- "largerReplayQuota": "Larger replay quota",
+ "abTesting": "A/B testing",
+ "twentyXHigherApiRateLimits": "20x higher API rate limits",
"prioritySupport": "Priority support",
- "agencyOrganisations": "Agency-friendly organisations",
- "advancedExperiments": "Advanced experiments",
- "everythingInPlus": "Everything in Plus",
- "customUserLimit": "Custom user limit",
- "customSiteLimit": "Custom site limit",
- "customOrganisationLimit": "Custom organisation limit",
- "customEventVolume": "Custom event volume",
- "ssoSaml": "SSO and SAML",
- "dedicatedInstance": "Dedicated isolated instance",
+ "dedicatedAccountManager": "Dedicated account manager for ongoing support",
+ "customEventLimits": "Custom event limits",
+ "customFeatures": "Custom features",
"onPremise": "On-premise installation",
+ "dedicatedInstance": "Dedicated isolated instance",
+ "ssoSaml": "SAML-based single sign-on (SSO)",
+ "personalOnboarding": "Personal onboarding",
"manualInvoicing": "Manual invoicing",
- "sla": "SLA",
- "whitelabeling": "Whitelabeling",
- "securityLegalSupport": "Security and legal support"
+ "sla": "Enterprise SLA",
+ "tooltips": {
+ "advancedBotDetection": "Swetrix filters automated traffic before it is stored, from known bot user agents and headless browsers to stricter checks for suspicious headers, probe paths, referrer spam, and datacenter IPs. Blocked bot requests never count toward your event quota.",
+ "adBlockerBypass": "Route the tracker script and analytics traffic through a managed reverse proxy on your own subdomain, so requests are served first-party from your domain.",
+ "plusWebsites": "Swetrix has no limit on the number of websites you can add. You can purchase more websites via add-ons. Bulk discounts are available if you contact support.",
+ "customEventLimits": "Enterprise plans are flexible for event limits, API rate limits, and project quantity.",
+ "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",
@@ -3010,21 +3002,6 @@
"trialEnded": "Trial ended",
"overXEvents": "Over {{amount}} events",
"contactUs": "Contact us",
- "tiers": {
- "upToXWebsites": "Add up to {{amount}} websites",
- "dataOwnership": "100% data ownership",
- "trafficWebAnalytics": "Traffic web analytics",
- "teamMembers": "Team members",
- "apiAccess": "API access",
- "funnels": "Funnels",
- "websiteSpeedAnalytics": "Website speed analytics",
- "sessionAnalysis": "Session analysis",
- "errorTracking": "Error tracking",
- "featureFlags": "Feature flags",
- "experiments": "Experiments",
- "captcha": "CAPTCHA",
- "moreWebsitesForFee": "Swetrix has no limit on the number of websites you can add. {{amount}} websites are the default limit all plans have. You can purchase more websites for an additional fee."
- },
"downgradeTitle": "Are you sure you want to downgrade?",
"downgradeDesc": "After downgrading, your plan will include fewer projects and available events per month. In case your website contains more traffic than the plan you want to downgrade to includes, this will result in not all events being stored in our database.\nYou will be able to return to your current plan at any time.\nIf you have any questions, you can always email us at {{email}}.",
"cancelTitle": "Are you sure you want to cancel your subscription?",