Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Add 200k and 500k plans

Uku Tahtf65df5fb0c90
diff --git a/lib/plausible/billing/plans.ex b/lib/plausible/billing/plans.ex
index 83d11d6d73..25497e9813 100644
--- a/lib/plausible/billing/plans.ex
+++ b/lib/plausible/billing/plans.ex
@@ -3,6 +3,8 @@ defmodule Plausible.Billing.Plans do
monthly: %{
"10k": %{product_id: "558018", due_now: "$6"},
"100k": %{product_id: "558745", due_now: "$12"},
+ "200k": %{product_id: "597485", due_now: "$18"},
+ "500k": %{product_id: "597487", due_now: "$27"},
"1m": %{product_id: "558746", due_now: "$36"},
"2m": %{product_id: "597309", due_now: "$69"},
"5m": %{product_id: "597311", due_now: "$99"}
@@ -10,6 +12,8 @@ defmodule Plausible.Billing.Plans do
yearly: %{
"10k": %{product_id: "572810", due_now: "$48"},
"100k": %{product_id: "590752", due_now: "$96"},
+ "200k": %{product_id: "597486", due_now: "$114"},
+ "500k": %{product_id: "597488", due_now: "$216"},
"1m": %{product_id: "590753", due_now: "$288"},
"2m": %{product_id: "597310", due_now: "$552"},
"5m": %{product_id: "597312", due_now: "$792"}
diff --git a/lib/plausible_web/templates/billing/change_plan.html.eex b/lib/plausible_web/templates/billing/change_plan.html.eex
index 7eef2ab4c2..78e60a7063 100644
--- a/lib/plausible_web/templates/billing/change_plan.html.eex
+++ b/lib/plausible_web/templates/billing/change_plan.html.eex
@@ -62,6 +62,20 @@
<span x-show="billingCycle === 'yearly'">$8</span>
</td>
</tr>
+ <tr @click="volume = '200k'" :class="{'border-2 border-green-300 bg-green-50': volume === '200k', 'border-b border-gray-200 cursor-pointer': volume !== '200k'}">
+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': volume === '200k'}">200k</td>
+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': volume === '200k'}">
+ <span x-show="billingCycle === 'monthly'">$18</span>
+ <span x-show="billingCycle === 'yearly'">$12</span>
+ </td>
+ </tr>
+ <tr @click="volume = '500k'" :class="{'border-2 border-green-300 bg-green-50': volume === '500k', 'border-b border-gray-200 cursor-pointer': volume !== '500k'}">
+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': volume === '500k'}">500k</td>
+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': volume === '500k'}">
+ <span x-show="billingCycle === 'monthly'">$27</span>
+ <span x-show="billingCycle === 'yearly'">$18</span>
+ </td>
+ </tr>
<tr @click="volume = '1m'" :class="{'border-2 border-green-300 bg-green-50': volume === '1m', 'border-b border-gray-200 cursor-pointer': volume !== '1m'}">
<td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': volume === '1m'}">1m</td>
<td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': volume === '1m'}">
diff --git a/lib/plausible_web/templates/billing/upgrade.html.eex b/lib/plausible_web/templates/billing/upgrade.html.eex
index c67a3b89f9..be0889f8a0 100644
--- a/lib/plausible_web/templates/billing/upgrade.html.eex
+++ b/lib/plausible_web/templates/billing/upgrade.html.eex
@@ -57,6 +57,20 @@
<span x-show="billingCycle === 'yearly'">$8</span>
</td>
</tr>
+ <tr @click="planSize = '200k'" :class="{'border-2 border-green-300': planSize === '200k', 'border-b border-gray-200 cursor-pointer': planSize !== '200k'}">
+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': planSize === '200k'}">200k</td>
+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': planSize === '200k'}">
+ <span x-show="billingCycle === 'monthly'">$18</span>
+ <span x-show="billingCycle === 'yearly'">$12</span>
+ </td>
+ </tr>
+ <tr @click="planSize = '500k'" :class="{'border-2 border-green-300': planSize === '500k', 'border-b border-gray-200 cursor-pointer': planSize !== '500k'}">
+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': planSize === '500k'}">500k</td>
+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': planSize === '500k'}">
+ <span x-show="billingCycle === 'monthly'">$27</span>
+ <span x-show="billingCycle === 'yearly'">$18</span>
+ </td>
+ </tr>
<tr @click="planSize = '1m'" :class="{'border-2 border-green-300': planSize === '1m', 'border-b border-gray-200 cursor-pointer': planSize !== '1m'}">
<td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': planSize === '1m'}">1m</td>
<td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': planSize === '1m'}">
diff --git a/lib/plausible_web/views/auth_view.ex b/lib/plausible_web/views/auth_view.ex
index 4f988e9538..85a62f9e04 100644
--- a/lib/plausible_web/views/auth_view.ex
+++ b/lib/plausible_web/views/auth_view.ex
@@ -4,11 +4,15 @@ defmodule PlausibleWeb.AuthView do
@subscription_names %{
"558018" => "10k / monthly",
"558745" => "100k / monthly",
+ "597485" => "200k / monthly",
+ "597487" => "500k / monthly",
"558746" => "1m / monthly",
"597309" => "2m / monthly",
"597311" => "5m / monthly",
"572810" => "10k / yearly",
"590752" => "100k / yearly",
+ "597486" => "200k / yearly",
+ "597488" => "500k / yearly",
"590753" => "1m / yearly",
"597310" => "2m / yearly",
"597312" => "5m / yearly",