mirror of
https://github.com/plausible/analytics.git
synced 2024-12-26 02:55:02 +03:00
22ecbe7bc7
* move format_price to Plausible.Billing * move PlausibleWeb.Components.Billing file to subfolder * extract new Notice module * rename test file and module name * move growth_grandfathered notice to notice.ex * extract a PlanBenefits module * extract PlanBox component * extract PageviewSlider component * fix plan benefits text color
41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
<section class="shadow bg-white dark:bg-gray-800 sm:rounded-md sm:overflow-hidden">
|
|
<PlausibleWeb.Components.Billing.Notice.premium_feature
|
|
billable_user={@site.owner}
|
|
current_user={@current_user}
|
|
feature_mod={Plausible.Billing.Feature.Props}
|
|
grandfathered?
|
|
/>
|
|
|
|
<div class="py-6 px-4 sm:p-6">
|
|
<header class="w-full flex relative">
|
|
<span class="flex-1">
|
|
<h1 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-100">
|
|
Custom Properties
|
|
</h1>
|
|
|
|
<p class="mt-2 text-sm leading-5 text-gray-500 dark:text-gray-200">
|
|
Attach Custom Properties when sending a Pageview or an Event to
|
|
create custom metrics.
|
|
</p>
|
|
<p class="text-sm leading-5 text-gray-500 dark:text-gray-200">
|
|
In order for the properties to show up on your dashboard, you need to
|
|
explicitly add them below first.
|
|
</p>
|
|
</span>
|
|
|
|
<PlausibleWeb.Components.Generic.docs_info slug="custom-props/introduction" />
|
|
</header>
|
|
|
|
<PlausibleWeb.Components.Site.Feature.toggle
|
|
feature_mod={Plausible.Billing.Feature.Props}
|
|
site={@site}
|
|
conn={@conn}
|
|
>
|
|
<%= live_render(@conn, PlausibleWeb.Live.PropsSettings,
|
|
id: "props-form",
|
|
session: %{"site_id" => @site.id, "domain" => @site.domain}
|
|
) %>
|
|
</PlausibleWeb.Components.Site.Feature.toggle>
|
|
</div>
|
|
</section>
|