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!

change plan prices; add 15m and 20m plans

Blue Mouseac695b04ce20
diff --git a/backend/apps/cloud/src/user/entities/user.entity.ts b/backend/apps/cloud/src/user/entities/user.entity.ts
index ce383d18e..d9a48b26b 100644
--- a/backend/apps/cloud/src/user/entities/user.entity.ts
+++ b/backend/apps/cloud/src/user/entities/user.entity.ts
@@ -24,12 +24,15 @@ export enum PlanCode {
trial = 'trial',
hobby = 'hobby',
freelancer = 'freelancer',
+ '100k' = '100k',
'200k' = '200k',
'500k' = '500k',
startup = 'startup',
'2m' = '2m',
enterprise = 'enterprise',
'10m' = '10m',
+ '15m' = '15m',
+ '20m' = '20m',
}
export enum DashboardBlockReason {
@@ -53,7 +56,6 @@ export const ACCOUNT_PLANS = {
id: PlanCode.none,
monthlyUsageLimit: 0,
maxAlerts: 0,
- legacy: false,
pid: null,
ypid: null,
},
@@ -61,7 +63,6 @@ export const ACCOUNT_PLANS = {
id: PlanCode.free,
monthlyUsageLimit: 5000,
maxAlerts: 1,
- legacy: true,
pid: null,
ypid: null,
},
@@ -69,7 +70,6 @@ export const ACCOUNT_PLANS = {
id: PlanCode.trial,
monthlyUsageLimit: 10000000,
maxAlerts: 50,
- legacy: false,
pid: null,
ypid: null,
},
@@ -79,7 +79,6 @@ export const ACCOUNT_PLANS = {
pid: '813694', // Plan ID
ypid: '813695', // Plan ID - Yearly billing
maxAlerts: 50,
- legacy: false,
},
[PlanCode.freelancer]: {
id: PlanCode.freelancer,
@@ -87,7 +86,13 @@ export const ACCOUNT_PLANS = {
pid: '752316', // Plan ID
ypid: '776469', // Plan ID - Yearly billing
maxAlerts: 50,
- legacy: false,
+ },
+ [PlanCode['100k']]: {
+ id: PlanCode['100k'],
+ monthlyUsageLimit: 100000,
+ pid: '916455', // Plan ID
+ ypid: '916456', // Plan ID - Yearly billing
+ maxAlerts: 50,
},
[PlanCode['200k']]: {
id: PlanCode['200k'],
@@ -95,7 +100,6 @@ export const ACCOUNT_PLANS = {
pid: '854654', // Plan ID
ypid: '854655', // Plan ID - Yearly billing
maxAlerts: 50,
- legacy: false,
},
[PlanCode['500k']]: {
id: PlanCode['500k'],
@@ -103,7 +107,6 @@ export const ACCOUNT_PLANS = {
pid: '854656', // Plan ID
ypid: '854657', // Plan ID - Yearly billing
maxAlerts: 50,
- legacy: false,
},
[PlanCode.startup]: {
id: PlanCode.startup,
@@ -111,7 +114,6 @@ export const ACCOUNT_PLANS = {
pid: '752317',
ypid: '776470',
maxAlerts: 50,
- legacy: false,
},
[PlanCode['2m']]: {
id: PlanCode['2m'],
@@ -119,7 +121,6 @@ export const ACCOUNT_PLANS = {
pid: '854663', // Plan ID
ypid: '854664', // Plan ID - Yearly billing
maxAlerts: 50,
- legacy: false,
},
[PlanCode.enterprise]: {
id: PlanCode.enterprise,
@@ -127,7 +128,6 @@ export const ACCOUNT_PLANS = {
pid: '752318',
ypid: '776471',
maxAlerts: 50,
- legacy: false,
},
[PlanCode['10m']]: {
id: PlanCode['10m'],
@@ -135,7 +135,20 @@ export const ACCOUNT_PLANS = {
pid: '854665', // Plan ID
ypid: '854666', // Plan ID - Yearly billing
maxAlerts: 50,
- legacy: false,
+ },
+ [PlanCode['15m']]: {
+ id: PlanCode['15m'],
+ monthlyUsageLimit: 15000000,
+ pid: '916451', // Plan ID
+ ypid: '916452', // Plan ID - Yearly billing
+ maxAlerts: 50,
+ },
+ [PlanCode['20m']]: {
+ id: PlanCode['20m'],
+ monthlyUsageLimit: 20000000,
+ pid: '916453', // Plan ID
+ ypid: '916454', // Plan ID - Yearly billing
+ maxAlerts: 50,
},
}
diff --git a/backend/migrations/mysql/2025_09_28.sql b/backend/migrations/mysql/2025_09_28.sql
new file mode 100644
index 000000000..dfd18d061
--- /dev/null
+++ b/backend/migrations/mysql/2025_09_28.sql
@@ -0,0 +1 @@
+alter table user modify column `planCode` enum('none','free','trial','hobby','freelancer','100k','200k','500k','startup','2m','enterprise','10m','15m','20m') NOT NULL DEFAULT 'trial' after roles;
diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.ts
index 75e4a5e2a..cb795a6b6 100644
--- a/web/app/lib/constants/index.ts
+++ b/web/app/lib/constants/index.ts
@@ -647,7 +647,7 @@ export const PLAN_LIMITS = {
index: 2, // 'downgrade' or 'upgrade' logic depends on this
planCode: 'freelancer',
monthlyUsageLimit: 100000,
- legacy: false,
+ legacy: true,
price: {
USD: {
monthly: 15,
@@ -666,6 +666,29 @@ export const PLAN_LIMITS = {
ypid: 776469, // Plan ID - Yearly billing
maxAlerts: 50,
},
+ '100k': {
+ index: 2.5, // 'downgrade' or 'upgrade' logic depends on this
+ planCode: '100k',
+ monthlyUsageLimit: 100000,
+ legacy: false,
+ price: {
+ USD: {
+ monthly: 19,
+ yearly: 190,
+ },
+ EUR: {
+ monthly: 17,
+ yearly: 170,
+ },
+ GBP: {
+ monthly: 15,
+ yearly: 150,
+ },
+ },
+ pid: 916455, // Plan ID
+ ypid: 916456, // Plan ID - Yearly billing
+ maxAlerts: 50,
+ },
'200k': {
index: 3, // 'downgrade' or 'upgrade' logic depends on this
planCode: '200k',
@@ -673,8 +696,8 @@ export const PLAN_LIMITS = {
legacy: false,
price: {
USD: {
- monthly: 25,
- yearly: 250,
+ monthly: 29,
+ yearly: 290,
},
EUR: {
monthly: 25,
@@ -696,16 +719,16 @@ export const PLAN_LIMITS = {
legacy: false,
price: {
USD: {
- monthly: 45,
- yearly: 450,
+ monthly: 49,
+ yearly: 490,
},
EUR: {
- monthly: 45,
- yearly: 450,
+ monthly: 42,
+ yearly: 420,
},
GBP: {
- monthly: 40,
- yearly: 400,
+ monthly: 39,
+ yearly: 390,
},
},
pid: 854656, // Plan ID
@@ -719,16 +742,16 @@ export const PLAN_LIMITS = {
legacy: false,
price: {
USD: {
- monthly: 59,
- yearly: 590,
+ monthly: 79,
+ yearly: 790,
},
EUR: {
- monthly: 57,
- yearly: 570,
+ monthly: 69,
+ yearly: 690,
},
GBP: {
- monthly: 49,
- yearly: 490,
+ monthly: 59,
+ yearly: 590,
},
},
pid: 752317,
@@ -742,16 +765,16 @@ export const PLAN_LIMITS = {
legacy: false,
price: {
USD: {
- monthly: 84,
- yearly: 840,
+ monthly: 119,
+ yearly: 1190,
},
EUR: {
- monthly: 84,
- yearly: 840,
+ monthly: 99,
+ yearly: 990,
},
GBP: {
- monthly: 74,
- yearly: 740,
+ monthly: 89,
+ yearly: 890,
},
},
pid: 854663,
@@ -765,16 +788,16 @@ export const PLAN_LIMITS = {
legacy: false,
price: {
USD: {
- monthly: 110,
- yearly: 1100,
+ monthly: 179,
+ yearly: 1790,
},
EUR: {
- monthly: 110,
- yearly: 1100,
+ monthly: 149,
+ yearly: 1490,
},
GBP: {
- monthly: 95,
- yearly: 950,
+ monthly: 139,
+ yearly: 1390,
},
},
pid: 752318,
@@ -788,25 +811,71 @@ export const PLAN_LIMITS = {
legacy: false,
price: {
USD: {
- monthly: 150,
- yearly: 1500,
+ monthly: 249,
+ yearly: 2490,
},
EUR: {
- monthly: 150,
- yearly: 1500,
+ monthly: 209,
+ yearly: 2090,
},
GBP: {
- monthly: 130,
- yearly: 1300,
+ monthly: 189,
+ yearly: 1890,
},
},
pid: 854665,
ypid: 854666,
maxAlerts: 50,
},
+ '15m': {
+ index: 9, // 'downgrade' or 'upgrade' logic depends on this
+ planCode: '15m',
+ monthlyUsageLimit: 15000000,
+ legacy: false,
+ price: {
+ USD: {
+ monthly: 349,
+ yearly: 3490,
+ },
+ EUR: {
+ monthly: 299,
+ yearly: 2990,
+ },
+ GBP: {
+ monthly: 259,
+ yearly: 2590,
+ },
+ },
+ pid: 916451,
+ ypid: 916452,
+ maxAlerts: 50,
+ },
+ '20m': {
+ index: 10, // 'downgrade' or 'upgrade' logic depends on this
+ planCode: '20m',
+ monthlyUsageLimit: 20000000,
+ legacy: false,
+ price: {
+ USD: {
+ monthly: 419,
+ yearly: 4190,
+ },
+ EUR: {
+ monthly: 359,
+ yearly: 3590,
+ },
+ GBP: {
+ monthly: 319,
+ yearly: 3190,
+ },
+ },
+ pid: 916453,
+ ypid: 916454,
+ maxAlerts: 50,
+ },
}
-export const STANDARD_PLANS = ['freelancer', '200k', '500k', 'startup', '2m', 'enterprise', '10m']
+export const STANDARD_PLANS = ['100k', '200k', '500k', 'startup', '2m', 'enterprise', '10m', '15m', '20m']
export const TRIAL_DAYS = 14