Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Add 2m & 5m plans to upgrade and change plan UI
Uku Taht56054ab86b2e
diff --git a/lib/plausible/billing/plans.ex b/lib/plausible/billing/plans.exindex 205a47e89d..83d11d6d73 100644--- a/lib/plausible/billing/plans.ex+++ b/lib/plausible/billing/plans.ex@@ -3,12 +3,16 @@ defmodule Plausible.Billing.Plans domonthly: %{"10k": %{product_id: "558018", due_now: "$6"},"100k": %{product_id: "558745", due_now: "$12"},- "1m": %{product_id: "558746", due_now: "$36"}+ "1m": %{product_id: "558746", due_now: "$36"},+ "2m": %{product_id: "597309", due_now: "$69"},+ "5m": %{product_id: "597311", due_now: "$99"}},yearly: %{"10k": %{product_id: "572810", due_now: "$48"},"100k": %{product_id: "590752", due_now: "$96"},- "1m": %{product_id: "590753", due_now: "$288"}+ "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.eexindex fee828e07a..7eef2ab4c2 100644--- a/lib/plausible_web/templates/billing/change_plan.html.eex+++ b/lib/plausible_web/templates/billing/change_plan.html.eex@@ -69,6 +69,20 @@<span x-show="billingCycle === 'yearly'">$24</span></td></tr>+ <tr @click="volume = '2m'" :class="{'border-2 border-green-300 bg-green-50': volume === '2m', 'border-b border-gray-200 cursor-pointer': volume !== '1m'}">+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': volume === '2m'}">2m</td>+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': volume === '2m'}">+ <span x-show="billingCycle === 'monthly'">$69</span>+ <span x-show="billingCycle === 'yearly'">$46</span>+ </td>+ </tr>+ <tr @click="volume = '5m'" :class="{'border-2 border-green-300 bg-green-50': volume === '5m', 'border-b border-gray-200 cursor-pointer': volume !== '1m'}">+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': volume === '5m'}">5m</td>+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': volume === '5m'}">+ <span x-show="billingCycle === 'monthly'">$99</span>+ <span x-show="billingCycle === 'yearly'">$66</span>+ </td>+ </tr></tbody></table></div>diff --git a/lib/plausible_web/templates/billing/upgrade.html.eex b/lib/plausible_web/templates/billing/upgrade.html.eexindex bcddd3af69..c67a3b89f9 100644--- a/lib/plausible_web/templates/billing/upgrade.html.eex+++ b/lib/plausible_web/templates/billing/upgrade.html.eex@@ -64,6 +64,20 @@<span x-show="billingCycle === 'yearly'">$24</span></td></tr>+ <tr @click="planSize = '2m'" :class="{'border-2 border-green-300': planSize === '2m', 'border-b border-gray-200 cursor-pointer': planSize !== '2m'}">+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': planSize === '2m'}">2m</td>+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': planSize === '2m'}">+ <span x-show="billingCycle === 'monthly'">$69</span>+ <span x-show="billingCycle === 'yearly'">$46</span>+ </td>+ </tr>+ <tr @click="planSize = '5m'" :class="{'border-2 border-green-300': planSize === '5m', 'border-b border-gray-200 cursor-pointer': planSize !== '5m'}">+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': planSize === '5m'}">5m</td>+ <td class="px-6 py-4 text-sm leading-5" :class="{'font-bold': planSize === '5m'}">+ <span x-show="billingCycle === 'monthly'">$99</span>+ <span x-show="billingCycle === 'yearly'">$66</span>+ </td>+ </tr></tbody></table></div>diff --git a/lib/plausible_web/views/auth_view.ex b/lib/plausible_web/views/auth_view.exindex de7acdad64..4f988e9538 100644--- a/lib/plausible_web/views/auth_view.ex+++ b/lib/plausible_web/views/auth_view.ex@@ -5,9 +5,13 @@ defmodule PlausibleWeb.AuthView do"558018" => "10k / monthly","558745" => "100k / monthly","558746" => "1m / monthly",+ "597309" => "2m / monthly",+ "597311" => "5m / monthly","572810" => "10k / yearly","590752" => "100k / yearly","590753" => "1m / yearly",+ "597310" => "2m / yearly",+ "597312" => "5m / yearly","free_10k" => "10k / free"}