Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Add documentation links
Uku Taht520ff286cdb0
diff --git a/lib/plausible_web/templates/site/settings_custom_domain.html.eex b/lib/plausible_web/templates/site/settings_custom_domain.html.eexindex 1d12ce9956..9875cff527 100644--- a/lib/plausible_web/templates/site/settings_custom_domain.html.eex+++ b/lib/plausible_web/templates/site/settings_custom_domain.html.eex@@ -1,7 +1,11 @@<div class="shadow bg-white sm:rounded-md sm:overflow-hidden py-6 px-4 sm:p-6">- <header>+ <header class="relative"><h2 class="text-lg leading-6 font-medium text-gray-900">Custom domain</h2><p class="mt-1 text-sm leading-5 text-gray-500">Serve the tracking script from your domain name as a first-party resource instead of loading the script from our domain.</p>++ <%= link(to: "https://docs.plausible.io/custom-domain/", target: "_blank") 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><div class="mt-6"><%= if @site.custom_domain do %>diff --git a/lib/plausible_web/templates/site/settings_email_reports.html.eex b/lib/plausible_web/templates/site/settings_email_reports.html.eexindex 0a3531d911..cab8d809fe 100644--- a/lib/plausible_web/templates/site/settings_email_reports.html.eex+++ b/lib/plausible_web/templates/site/settings_email_reports.html.eex@@ -1,7 +1,10 @@<div class="shadow bg-white sm:rounded-md sm:overflow-hidden py-6 px-4 sm:p-6">- <header>+ <header class="relative"><h2 class="text-lg leading-6 font-medium text-gray-900">Email reports</h2><p class="mt-1 text-sm leading-5 text-gray-500">Send weekly/monthly analytics reports to as many addresses as you wish</p>+ <%= link(to: "https://docs.plausible.io/email-reports/", target: "_blank") 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><div class="my-8 flex items-center">diff --git a/lib/plausible_web/templates/site/settings_general.html.eex b/lib/plausible_web/templates/site/settings_general.html.eexindex f72f273e06..742450a0dc 100644--- a/lib/plausible_web/templates/site/settings_general.html.eex+++ b/lib/plausible_web/templates/site/settings_general.html.eex@@ -1,10 +1,13 @@<%= form_for @changeset, "/#{URI.encode_www_form(@site.domain)}/settings", fn f -> %><div class="shadow sm:rounded-md sm:overflow-hidden"><div class="bg-white py-6 px-4 space-y-6 sm:p-6">- <div>+ <header class="relative"><h2 class="text-lg leading-6 font-medium text-gray-900">General information</h2><p class="mt-1 text-sm leading-5 text-gray-500">Update your billing information. Please note that updating your location could affect your tax rates.</p>- </div>+ <%= link(to: "https://docs.plausible.io/general/", target: "_blank") 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><div class="grid grid-cols-4 gap-6"><div class="col-span-4 sm:col-span-2">diff --git a/lib/plausible_web/templates/site/settings_goals.html.eex b/lib/plausible_web/templates/site/settings_goals.html.eexindex 207f41966e..eb1d06f570 100644--- a/lib/plausible_web/templates/site/settings_goals.html.eex+++ b/lib/plausible_web/templates/site/settings_goals.html.eex@@ -1,7 +1,10 @@<div class="shadow bg-white sm:rounded-md sm:overflow-hidden py-6 px-4 sm:p-6">- <header>+ <header class="relative"><h2 class="text-lg leading-6 font-medium text-gray-900">Goals</h2><p class="mt-1 text-sm leading-5 text-gray-500">Define actions that you want your users to take like visiting a certain page, submitting a form, etc.</p>+ <%= link(to: "https://docs.plausible.io/goal-conversions/", target: "_blank") 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><%= if Enum.count(@goals) > 0 do %>diff --git a/lib/plausible_web/templates/site/settings_search_console.html.eex b/lib/plausible_web/templates/site/settings_search_console.html.eexindex f8c26fbe5d..721fdd8a86 100644--- a/lib/plausible_web/templates/site/settings_search_console.html.eex+++ b/lib/plausible_web/templates/site/settings_search_console.html.eex@@ -1,7 +1,10 @@<div class="shadow bg-white sm:rounded-md sm:overflow-hidden py-6 px-4 sm:p-6">- <header>+ <header class="relative"><h2 class="text-lg leading-6 font-medium text-gray-900">Google Search Console integration</h2><p class="mt-1 text-sm leading-5 text-gray-500">You can integrate with Google Search Console to get all of your important search results stats such as keyword phrases people find your site with.</p>+ <%= link(to: "https://docs.plausible.io/google-search-console-integration/", target: "_blank") 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><%= if @site.google_auth do %>diff --git a/lib/plausible_web/templates/site/settings_snippet.html.eex b/lib/plausible_web/templates/site/settings_snippet.html.eexindex 24f558e9bc..a69d8e7c1f 100644--- a/lib/plausible_web/templates/site/settings_snippet.html.eex+++ b/lib/plausible_web/templates/site/settings_snippet.html.eex@@ -1,7 +1,11 @@<%= form_for @conn, "/", [class: "shadow bg-white sm:rounded-md sm:overflow-hidden py-6 px-4 sm:p-6"], fn f -> %>- <header>+ <header class="relative"><h2 class="text-lg leading-6 font-medium text-gray-900">Javascript snippet</h2><p class="mt-1 text-sm leading-5 text-gray-500">Include this snippet in the <code><head></code> of your website.</p>++ <%= link(to: "https://docs.plausible.io/plausible-script", target: "_blank") 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><div class="my-4">