mirror of
https://github.com/plausible/analytics.git
synced 2025-01-01 22:15:30 +03:00
303b3509f7
This pull request implements limits to funnels, revenue goals and custom props based on the site owner plan. It extends the current "premium feature" notice to account for the new plans, trials and the on-going private preview. Stats API is not in the context of this pull request, but will be implemented likewise.
41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
<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">
|
|
<h2 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-100">Goals</h2>
|
|
<p class="mt-2 text-sm leading-5 text-gray-500 dark:text-gray-200">
|
|
Define actions that you want your users to take, like visiting a certain page, submitting a form, etc.
|
|
</p>
|
|
<p class="text-sm leading-5 text-gray-500 dark:text-gray-200">
|
|
You can also <a
|
|
href={Routes.site_path(@conn, :settings_funnels, @site.domain)}
|
|
class="text-indigo-500 underline"
|
|
>compose Goals into Funnels</a>.
|
|
</p>
|
|
|
|
<%= link(to: "https://plausible.io/docs/goal-conversions", target: "_blank", rel: "noreferrer") do %>
|
|
<svg
|
|
class="w-6 h-6 absolute top-0 right-0 text-gray-400"
|
|
fill="currentColor"
|
|
viewBox="0 0 20 20"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
fill-rule="evenodd"
|
|
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"
|
|
clip-rule="evenodd"
|
|
>
|
|
</path>
|
|
</svg>
|
|
<% end %>
|
|
</header>
|
|
|
|
<PlausibleWeb.Components.Site.Feature.toggle
|
|
feature_mod={Plausible.Billing.Feature.Goals}
|
|
site={@site}
|
|
conn={@conn}
|
|
>
|
|
<%= live_render(@conn, PlausibleWeb.Live.GoalSettings,
|
|
session: %{"site_id" => @site.id, "domain" => @site.domain}
|
|
) %>
|
|
</PlausibleWeb.Components.Site.Feature.toggle>
|
|
</div>
|