Skip to content

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

retention limit (#6807)

Marko Saric722a49ac2de5
diff --git a/lib/plausible/billing/plan_benefits.ex b/lib/plausible/billing/plan_benefits.ex
index 802e37762f..33c383dbad 100644
--- a/lib/plausible/billing/plan_benefits.ex
+++ b/lib/plausible/billing/plan_benefits.ex
@@ -10,7 +10,7 @@ defmodule Plausible.Billing.PlanBenefits do
def for_starter(starter_plan) do
[
site_limit_benefit(starter_plan),
- data_retention_benefit(starter_plan),
+ "No retention limit",
"Intuitive, fast and privacy-friendly dashboard",
"Email/Slack reports",
"Google Analytics import"
@@ -35,7 +35,12 @@ defmodule Plausible.Billing.PlanBenefits do
team_member_limit_benefit(growth_plan),
"Team Management"
])
- |> Kernel.++(if(lowest_plan?, do: benefits_available_on_lowest_plan(), else: []))
+ |> Kernel.++(
+ if(lowest_plan?,
+ do: ["No retention limit" | benefits_available_on_lowest_plan()],
+ else: []
+ )
+ )
|> Kernel.++(feature_benefits(growth_plan))
|> Kernel.--(starter_benefits)
|> Enum.filter(& &1)
@@ -52,8 +57,7 @@ defmodule Plausible.Billing.PlanBenefits do
[
"Everything in Growth",
site_limit_benefit(plan),
- team_member_limit_benefit(plan),
- data_retention_benefit(plan)
+ team_member_limit_benefit(plan)
]
|> Kernel.++(feature_benefits(plan))
|> Kernel.--(growth_benefits)
@@ -89,9 +93,6 @@ defmodule Plausible.Billing.PlanBenefits do
true -> "50+ sites"
end
- data_retention =
- if "5 years of data retention" in business_benefits, do: "5+ years of data retention"
-
[
"Everything in Business",
sites,
@@ -101,7 +102,6 @@ defmodule Plausible.Billing.PlanBenefits do
"Single Sign-On (SSO)",
"Managed Proxy",
"Scheduled raw event data exports",
- data_retention,
"Priority support"
]
|> Enum.filter(& &1)
@@ -111,10 +111,6 @@ defmodule Plausible.Billing.PlanBenefits do
["Saved Segments", "Annotations"]
end
- defp data_retention_benefit(%Plan{} = plan) do
- if plan.data_retention_in_years, do: "#{plan.data_retention_in_years} years of data retention"
- end
-
defp team_member_limit_benefit(%Plan{} = plan) do
case plan.team_member_limit do
:unlimited -> "Unlimited team members"
diff --git a/test/plausible/billing/plan_benefits_test.exs b/test/plausible/billing/plan_benefits_test.exs
index cfcc4b51ab..dc5606c190 100644
--- a/test/plausible/billing/plan_benefits_test.exs
+++ b/test/plausible/billing/plan_benefits_test.exs
@@ -7,7 +7,7 @@ defmodule Plausible.Billing.PlanBenefitsTest do
test "returns v5 Starter plan benefits" do
assert PlanBenefits.for_starter(get_10k_plan(5, :starter)) == [
"One site",
- "3 years of data retention",
+ "No retention limit",
"Intuitive, fast and privacy-friendly dashboard",
"Email/Slack reports",
"Google Analytics import",
@@ -55,6 +55,7 @@ defmodule Plausible.Billing.PlanBenefitsTest do
"Up to 50 sites",
"Unlimited team members",
"Team Management",
+ "No retention limit",
"Saved Segments",
"Annotations",
"Goals and custom events",
@@ -78,7 +79,6 @@ defmodule Plausible.Billing.PlanBenefitsTest do
"Everything in Growth",
"Up to 10 sites",
"Up to 10 team members",
- "5 years of data retention",
"Custom Properties",
"Stats API (600 requests per hour)",
"Data Studio Connector",
@@ -97,7 +97,6 @@ defmodule Plausible.Billing.PlanBenefitsTest do
"Everything in Growth",
"Up to 50 sites",
"Up to 10 team members",
- "5 years of data retention",
"Custom Properties",
"Ecommerce revenue attribution",
"Funnels and user journeys",
@@ -151,7 +150,6 @@ defmodule Plausible.Billing.PlanBenefitsTest do
"Single Sign-On (SSO)",
"Managed Proxy",
"Scheduled raw event data exports",
- "5+ years of data retention",
"Priority support"
]
end
@@ -172,7 +170,6 @@ defmodule Plausible.Billing.PlanBenefitsTest do
"Single Sign-On (SSO)",
"Managed Proxy",
"Scheduled raw event data exports",
- "5+ years of data retention",
"Priority support"
]
end
diff --git a/test/plausible_web/live/choose_plan_test.exs b/test/plausible_web/live/choose_plan_test.exs
index 0f2ea28261..23265ed9bc 100644
--- a/test/plausible_web/live/choose_plan_test.exs
+++ b/test/plausible_web/live/choose_plan_test.exs
@@ -96,7 +96,7 @@ defmodule PlausibleWeb.Live.ChoosePlanTest do
assert starter_box =~ "Google Analytics import"
assert starter_box =~ "Goals and custom events"
assert starter_box =~ "One site"
- assert starter_box =~ "3 years of data retention"
+ assert starter_box =~ "No retention limit"
assert growth_box =~ "Up to 3 team members"
assert growth_box =~ "Up to 3 sites"
@@ -493,7 +493,7 @@ defmodule PlausibleWeb.Live.ChoosePlanTest do
assert starter_box =~ "Google Analytics import"
assert starter_box =~ "Goals and custom events"
assert starter_box =~ "One site"
- assert starter_box =~ "3 years of data retention"
+ assert starter_box =~ "No retention limit"
assert growth_box =~ "Up to 3 team members"
assert growth_box =~ "Up to 3 sites"
@@ -509,7 +509,7 @@ defmodule PlausibleWeb.Live.ChoosePlanTest do
assert business_box =~ "Custom Properties"
assert business_box =~ "Funnels"
assert business_box =~ "Ecommerce revenue attribution"
- assert business_box =~ "5 years of data retention"
+ refute business_box =~ "data retention"
refute business_box =~ "Goals and custom events"
@@ -520,7 +520,7 @@ defmodule PlausibleWeb.Live.ChoosePlanTest do
assert enterprise_box =~ "Sites API access for"
assert enterprise_box =~ "Single Sign-On (SSO)"
assert enterprise_box =~ "Priority support"
- assert enterprise_box =~ "5+ years of data retention"
+ refute enterprise_box =~ "data retention"
assert text_of_attr(find(doc, "#{@enterprise_plan_box} p a"), "href") =~
"https://plausible.io/white-label-web-analytics"
@@ -911,7 +911,7 @@ defmodule PlausibleWeb.Live.ChoosePlanTest do
assert starter_box =~ "Google Analytics import"
assert starter_box =~ "Goals and custom events"
assert starter_box =~ "One site"
- assert starter_box =~ "3 years of data retention"
+ assert starter_box =~ "No retention limit"
assert growth_box =~ "Up to 3 team members"
assert growth_box =~ "Up to 3 sites"