Skip to content

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

Add notice about feature preview

Uku Tahtae784448306e
diff --git a/config/runtime.exs b/config/runtime.exs
index 88c6e276a6..53ec73e213 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -169,14 +169,6 @@ site_limit_exempt =
|> String.split(",")
|> Enum.map(&String.trim/1)
-import_testers =
- config_dir
- |> get_var_from_path_or_env("IMPORT_TESTERS", "")
- |> String.split(",")
- |> Enum.map(&String.trim/1)
- |> Enum.filter(&(&1 !== ""))
- |> Enum.map(&String.to_integer/1)
-
disable_cron =
config_dir
|> get_var_from_path_or_env("DISABLE_CRON", "false")
@@ -201,7 +193,6 @@ config :plausible,
super_admin_user_ids: super_admin_user_ids,
site_limit: site_limit,
site_limit_exempt: site_limit_exempt,
- import_testers: import_testers,
is_selfhost: is_selfhost,
custom_script_name: custom_script_name,
domain_blacklist: domain_blacklist
diff --git a/lib/plausible_web/templates/site/settings_general.html.eex b/lib/plausible_web/templates/site/settings_general.html.eex
index af8eab9f0c..4e5e512b68 100644
--- a/lib/plausible_web/templates/site/settings_general.html.eex
+++ b/lib/plausible_web/templates/site/settings_general.html.eex
@@ -47,9 +47,14 @@
</div>
<% end %>
-<%= if Application.get_env(:plausible, :environment) == "prod" && @conn.assigns[:current_user].id in Application.get_env(:plausible, :import_testers) do %>
<div class="shadow bg-white dark:bg-gray-800 sm:rounded-md sm:overflow-hidden py-6 px-4 sm:p-6">
- <header class="relative">
+
+ <div class="w-full px-4 py-4 text-sm text-yellow-800 bg-yellow-100 rounded transition" role="alert">
+ <b>Feature preview:</b> Import from Google Analytics is ready to be tested, but it's not completely finalized yet. Please leave your
+ feedback on the relevant <%= link("Github Discussion", to: "https://github.com/plausible/analytics/discussions/1794", target: "_blank", class: "underline") %> so we can improve the feature.
+ </div>
+
+ <header class="relative mt-4">
<h2 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-100">Data Import from Google Analytics</h2>
<p class="mt-1 text-sm leading-5 text-gray-500 dark:text-gray-200">Import existing data from your Google Analytics account.</p>
<%= link(to: "https://docs.plausible.io/import-data/", target: "_blank", rel: "noreferrer") do %>
@@ -112,4 +117,3 @@
</div>
<% end %>
</div>
-<% end %>