2023-07-27 17:46:32 +03:00
|
|
|
<section class="shadow bg-white dark:bg-gray-800 sm:rounded-md sm:overflow-hidden">
|
2023-12-15 19:59:16 +03:00
|
|
|
<PlausibleWeb.Components.Billing.Notice.premium_feature
|
2023-10-11 23:24:16 +03:00
|
|
|
billable_user={@site.owner}
|
2023-10-11 15:40:01 +03:00
|
|
|
current_user={@current_user}
|
|
|
|
feature_mod={Plausible.Billing.Feature.Props}
|
|
|
|
grandfathered?
|
|
|
|
/>
|
2023-07-27 17:46:32 +03:00
|
|
|
|
|
|
|
<div class="py-6 px-4 sm:p-6">
|
2023-10-18 15:01:17 +03:00
|
|
|
<header class="w-full flex relative">
|
2023-07-27 17:46:32 +03:00
|
|
|
<span class="flex-1">
|
|
|
|
<h1 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-100">
|
2023-08-07 20:11:14 +03:00
|
|
|
Custom Properties
|
2023-07-27 17:46:32 +03:00
|
|
|
</h1>
|
|
|
|
|
2023-09-13 15:55:29 +03:00
|
|
|
<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>
|
2023-07-27 17:46:32 +03:00
|
|
|
</span>
|
|
|
|
|
2023-10-18 15:01:17 +03:00
|
|
|
<PlausibleWeb.Components.Generic.docs_info slug="custom-props/introduction" />
|
2023-07-27 17:46:32 +03:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<PlausibleWeb.Components.Site.Feature.toggle
|
2023-10-11 15:40:01 +03:00
|
|
|
feature_mod={Plausible.Billing.Feature.Props}
|
2023-07-27 17:46:32 +03:00
|
|
|
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>
|