Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

cheaper annual (#865)

Goldflag7f7a1cfe0866
diff --git a/client/src/app/subscribe/components/PricingCards.tsx b/client/src/app/subscribe/components/PricingCards.tsx
index 6f65c76f7..fb6e1d4de 100644
--- a/client/src/app/subscribe/components/PricingCards.tsx
+++ b/client/src/app/subscribe/components/PricingCards.tsx
@@ -150,7 +150,7 @@ export function PricingCards({ isLoggedIn }: { isLoggedIn: boolean }) {
</button>
</div>
<span className="absolute -top-3 -right-12 text-xs text-white bg-emerald-500 border border-emerald-500 rounded-full px-2 py-0.5 whitespace-nowrap">
- 2 months free
+ 4 months free
</span>
</div>
</div>
diff --git a/client/src/components/subscription/PaidPlain/PaidPlan.tsx b/client/src/components/subscription/PaidPlain/PaidPlan.tsx
index a0ce329d8..28711ae91 100644
--- a/client/src/components/subscription/PaidPlain/PaidPlan.tsx
+++ b/client/src/components/subscription/PaidPlain/PaidPlan.tsx
@@ -148,7 +148,7 @@ export function PaidPlan() {
</p>
{isAnnualPlan && (
<div className="mt-2 text-sm text-emerald-400">
- <p>You save by paying annually (2 months free)</p>
+ <p>You save by paying annually (4 months free)</p>
</div>
)}
<p className="text-neutral-400 text-sm">{formatRenewalDate()}</p>
diff --git a/client/src/components/subscription/PaidPlain/PlanDialog.tsx b/client/src/components/subscription/PaidPlain/PlanDialog.tsx
index 2be559b30..c24cfd9ea 100644
--- a/client/src/components/subscription/PaidPlain/PlanDialog.tsx
+++ b/client/src/components/subscription/PaidPlain/PlanDialog.tsx
@@ -1,13 +1,11 @@
import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog";
+import { toast } from "@/components/ui/sonner";
import { authClient } from "@/lib/auth";
import { BACKEND_URL } from "@/lib/const";
import { getStripePrices, STRIPE_TIERS } from "@/lib/stripe";
import { usePreviewSubscriptionUpdate, useUpdateSubscription } from "@/lib/subscription/useSubscriptionMutations";
import { cn } from "@/lib/utils";
-import { Loader2 } from "lucide-react";
import { useState } from "react";
-import { toast } from "@/components/ui/sonner";
-import { Badge } from "../../ui/badge";
import { PlanChangePreviewDialog } from "./PlanChangePreviewDialog";
interface PlanDialogProps {
@@ -161,7 +159,7 @@ export function PlanDialog({ open, onOpenChange, currentPlanName, hasActiveSubsc
)}
>
Annual
- <span className="ml-1 text-xs text-emerald-500">-17%</span>
+ <span className="ml-1 text-xs text-emerald-500">-33%</span>
</button>
</div>
</div>
@@ -191,7 +189,7 @@ export function PlanDialog({ open, onOpenChange, currentPlanName, hasActiveSubsc
"flex flex-col gap-2 justify-between p-3 rounded-lg border cursor-pointer",
isCurrent
? "bg-emerald-500/10 border-emerald-500"
- : "bg-neutral-100 dark:bg-neutral-800/20 border-neutral-300 dark:border-neutral-700/50 hover:bg-neutral-200 dark:hover:bg-neutral-800/30",
+ : "bg-neutral-50 dark:bg-neutral-800/20 border-neutral-100 dark:border-neutral-700/50 hover:bg-neutral-200 dark:hover:bg-neutral-800/30",
isLoading && "opacity-50"
)}
onClick={() => handlePlanSelection(plan.priceId, plan.name)}
diff --git a/client/src/lib/stripe.ts b/client/src/lib/stripe.ts
index b897b6fc6..35c3f9a62 100644
--- a/client/src/lib/stripe.ts
+++ b/client/src/lib/stripe.ts
@@ -18,8 +18,8 @@ const STRIPE_PRICES: StripePrice[] = [
events: 100_000,
},
{
- price: 190,
- priceId: "price_1RKuxUDFVprnAny2RkoZyxev",
+ price: 19 * 8,
+ priceId: "price_1SyiH0DFVprnAny2RGghi13M",
name: "standard100k-annual",
interval: "year",
shortName: "100k",
@@ -34,8 +34,8 @@ const STRIPE_PRICES: StripePrice[] = [
events: 250_000,
},
{
- price: 290,
- priceId: "price_1RKuxTDFVprnAny2rDcJOwHn",
+ price: 29 * 8,
+ priceId: "price_1SyiHJDFVprnAny2xSJxxLW0",
name: "standard250k-annual",
interval: "year",
shortName: "250k",
@@ -51,8 +51,8 @@ const STRIPE_PRICES: StripePrice[] = [
},
{
name: "standard500k-annual",
- priceId: "price_1RKuxSDFVprnAny2APD1EsL4",
- price: 490,
+ priceId: "price_1SyiGFDFVprnAny2gTPDOtpy",
+ price: 49 * 8,
interval: "year",
shortName: "500k",
events: 500_000,
@@ -67,8 +67,8 @@ const STRIPE_PRICES: StripePrice[] = [
},
{
name: "standard1m-annual",
- priceId: "price_1RKuxRDFVprnAny2f67uFcwC",
- price: 690,
+ priceId: "price_1SyiGTDFVprnAny2J19JdKFb",
+ price: 69 * 8,
interval: "year",
shortName: "1m",
events: 1_000_000,
@@ -83,8 +83,8 @@ const STRIPE_PRICES: StripePrice[] = [
},
{
name: "standard2m-annual",
- priceId: "price_1RKuxPDFVprnAny2NCYgKQf5",
- price: 990,
+ priceId: "price_1SyiGjDFVprnAny2XcoFwB8f",
+ price: 99 * 8,
interval: "year",
shortName: "2m",
events: 2_000_000,
@@ -99,8 +99,8 @@ const STRIPE_PRICES: StripePrice[] = [
},
{
name: "standard5m-annual",
- priceId: "price_1RKuxKDFVprnAny2UjJFcvHQ",
- price: 1490,
+ priceId: "price_1SyiFhDFVprnAny2GoHXTm0K",
+ price: 149 * 8,
interval: "year",
shortName: "5m",
events: 5_000_000,
@@ -115,8 +115,8 @@ const STRIPE_PRICES: StripePrice[] = [
},
{
name: "standard10m-annual",
- priceId: "price_1RKuxNDFVprnAny2mjFH5swO",
- price: 2490,
+ priceId: "price_1SyiFzDFVprnAny2OLUIUK0o",
+ price: 249 * 8,
interval: "year",
shortName: "10m",
events: 10_000_000,
@@ -131,8 +131,8 @@ const STRIPE_PRICES: StripePrice[] = [
},
{
name: "standard20m-annual",
- priceId: "price_1SKXxHDFVprnAny2fHARdc3Z",
- price: 3990,
+ priceId: "price_1SyiDzDFVprnAny2kSldxh49",
+ price: 399 * 8,
interval: "year",
shortName: "20m",
events: 20_000_000,
@@ -147,8 +147,8 @@ const STRIPE_PRICES: StripePrice[] = [
events: 100_000,
},
{
- price: 390,
- priceId: "price_1S8szIDFVprnAny2MfwmEsD3",
+ price: 39 * 8,
+ priceId: "price_1SyiEMDFVprnAny2oWEiR1Qa",
name: "pro100k-annual",
interval: "year",
shortName: "100k",
@@ -163,8 +163,8 @@ const STRIPE_PRICES: StripePrice[] = [
events: 250_000,
},
{
- price: 590,
- priceId: "price_1S8szHDFVprnAny2KbYorj7v",
+ price: 59 * 8,
+ priceId: "price_1SyiEdDFVprnAny2OCEMbT42",
name: "pro250k-annual",
interval: "year",
shortName: "250k",
@@ -179,8 +179,8 @@ const STRIPE_PRICES: StripePrice[] = [
events: 500_000,
},
{
- price: 990,
- priceId: "price_1S8szEDFVprnAny2z6M7Befa",
+ price: 99 * 8,
+ priceId: "price_1SyiEsDFVprnAny2ougv1XOJ",
name: "pro500k-annual",
interval: "year",
shortName: "500k",
@@ -195,8 +195,8 @@ const STRIPE_PRICES: StripePrice[] = [
events: 1_000_000,
},
{
- price: 1390,
- priceId: "price_1S8szCDFVprnAny2ujgml5hL",
+ price: 139 * 8,
+ priceId: "price_1SyiFBDFVprnAny2X5xb73Si",
name: "pro1m-annual",
interval: "year",
shortName: "1M",
@@ -211,8 +211,8 @@ const STRIPE_PRICES: StripePrice[] = [
events: 2_000_000,
},
{
- price: 1990,
- priceId: "price_1S8szBDFVprnAny2So7DIVTb",
+ price: 199 * 8,
+ priceId: "price_1SyiHtDFVprnAny2vmDMP6fu",
name: "pro2m-annual",
interval: "year",
shortName: "2M",
@@ -227,8 +227,8 @@ const STRIPE_PRICES: StripePrice[] = [
events: 5_000_000,
},
{
- price: 2990,
- priceId: "price_1S8sz9DFVprnAny2pEnr5hXD",
+ price: 299 * 8,
+ priceId: "price_1SyiHcDFVprnAny2B3bt5ZMs",
name: "pro5m-annual",
interval: "year",
shortName: "5M",
@@ -243,8 +243,8 @@ const STRIPE_PRICES: StripePrice[] = [
events: 10_000_000,
},
{
- price: 4990,
- priceId: "price_1S8sz5DFVprnAny2drMF3d7U",
+ price: 499 * 8,
+ priceId: "price_1SyiAaDFVprnAny2iWpXTyFV",
name: "pro10m-annual",
interval: "year",
shortName: "10M",
@@ -259,8 +259,8 @@ const STRIPE_PRICES: StripePrice[] = [
events: 20_000_000,
},
{
- price: 7990,
- priceId: "price_1SKXwcDFVprnAny2HCEv46PG",
+ price: 799 * 8,
+ priceId: "price_1Syi5UDFVprnAny2ALnTjery",
name: "pro20m-annual",
interval: "year",
shortName: "20M",
diff --git a/docs/src/components/PricingSection.tsx b/docs/src/components/PricingSection.tsx
index 339ebdb21..5a483def9 100644
--- a/docs/src/components/PricingSection.tsx
+++ b/docs/src/components/PricingSection.tsx
@@ -98,8 +98,8 @@ function getFormattedPrice(eventLimit: number | string, planType: "standard" | "
else return { custom: true };
}
- // Annual prices are 10x monthly (2 months free)
- const annualPrice = monthlyPrice * 10;
+ // Annual prices are 8 monthly (4 months free)
+ const annualPrice = monthlyPrice * 8;
return {
monthly: monthlyPrice,
annual: annualPrice,
@@ -174,7 +174,7 @@ export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, s
Annual
</button>
<div className="text-xs text-white absolute top-0 right-0 -translate-y-3 translate-x-1/2 bg-emerald-500 dark:bg-emerald-500 rounded-full px-2 py-0.5">
- 2 months free
+ 4 months free
</div>
</div>
</div>
diff --git a/server/src/lib/const.ts b/server/src/lib/const.ts
index 8c923ea48..aaa565a4f 100644
--- a/server/src/lib/const.ts
+++ b/server/src/lib/const.ts
@@ -47,7 +47,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
},
{
- priceId: "price_1RKuxUDFVprnAny2RkoZyxev",
+ priceId: "price_1SyiH0DFVprnAny2RGghi13M",
name: "standard100k-annual",
interval: "year",
limits: {
@@ -65,7 +65,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
},
{
- priceId: "price_1RKuxTDFVprnAny2rDcJOwHn",
+ priceId: "price_1SyiHJDFVprnAny2xSJxxLW0",
name: "standard250k-annual",
interval: "year",
limits: {
@@ -84,7 +84,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
{
name: "standard500k-annual",
- priceId: "price_1RKuxSDFVprnAny2APD1EsL4",
+ priceId: "price_1SyiGFDFVprnAny2gTPDOtpy",
interval: "year",
limits: {
events: 500_000,
@@ -102,7 +102,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
{
name: "standard1m-annual",
- priceId: "price_1RKuxRDFVprnAny2f67uFcwC",
+ priceId: "price_1SyiGTDFVprnAny2J19JdKFb",
interval: "year",
limits: {
events: 1_000_000,
@@ -120,7 +120,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
{
name: "standard2m-annual",
- priceId: "price_1RKuxPDFVprnAny2NCYgKQf5",
+ priceId: "price_1SyiGjDFVprnAny2XcoFwB8f",
interval: "year",
limits: {
events: 2_000_000,
@@ -138,7 +138,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
{
name: "standard5m-annual",
- priceId: "price_1RKuxKDFVprnAny2UjJFcvHQ",
+ priceId: "price_1SyiFhDFVprnAny2GoHXTm0K",
interval: "year",
limits: {
events: 5_000_000,
@@ -156,7 +156,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
{
name: "standard10m-annual",
- priceId: "price_1RKuxNDFVprnAny2mjFH5swO",
+ priceId: "price_1SyiFzDFVprnAny2OLUIUK0o",
interval: "year",
limits: {
events: 10_000_000,
@@ -174,7 +174,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
{
name: "standard20m-annual",
- priceId: "price_1SKXxHDFVprnAny2fHARdc3Z",
+ priceId: "price_1SyiDzDFVprnAny2kSldxh49",
interval: "year",
limits: {
events: 20_000_000,
@@ -192,7 +192,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
},
{
- priceId: "price_1S8szIDFVprnAny2MfwmEsD3",
+ priceId: "price_1SyiEMDFVprnAny2oWEiR1Qa",
name: "pro100k-annual",
interval: "year",
limits: {
@@ -210,7 +210,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
},
{
- priceId: "price_1S8szHDFVprnAny2KbYorj7v",
+ priceId: "price_1SyiEdDFVprnAny2OCEMbT42",
name: "pro250k-annual",
interval: "year",
limits: {
@@ -228,7 +228,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
},
{
- priceId: "price_1S8szEDFVprnAny2z6M7Befa",
+ priceId: "price_1SyiEsDFVprnAny2ougv1XOJ",
name: "pro500k-annual",
interval: "year",
limits: {
@@ -246,7 +246,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
},
{
- priceId: "price_1S8szCDFVprnAny2ujgml5hL",
+ priceId: "price_1SyiFBDFVprnAny2X5xb73Si",
name: "pro1m-annual",
interval: "year",
limits: {
@@ -264,7 +264,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
},
{
- priceId: "price_1S8szBDFVprnAny2So7DIVTb",
+ priceId: "price_1SyiHtDFVprnAny2vmDMP6fu",
name: "pro2m-annual",
interval: "year",
limits: {
@@ -282,7 +282,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
},
{
- priceId: "price_1S8sz9DFVprnAny2pEnr5hXD",
+ priceId: "price_1SyiHcDFVprnAny2B3bt5ZMs",
name: "pro5m-annual",
interval: "year",
limits: {
@@ -300,7 +300,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
},
{
- priceId: "price_1S8sz5DFVprnAny2drMF3d7U",
+ priceId: "price_1SyiAaDFVprnAny2iWpXTyFV",
name: "pro10m-annual",
interval: "year",
limits: {
@@ -318,7 +318,7 @@ const STRIPE_PRICES: StripePlan[] = [
},
},
{
- priceId: "price_1SKXwcDFVprnAny2HCEv46PG",
+ priceId: "price_1Syi5UDFVprnAny2ALnTjery",
name: "pro20m-annual",
interval: "year",
limits: {