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
live demo new cta (#6380)
Marko Saric056bb88f3709
diff --git a/lib/plausible_web/templates/stats/stats.html.heex b/lib/plausible_web/templates/stats/stats.html.heexindex 50ae77b79a..33aa32a843 100644--- a/lib/plausible_web/templates/stats/stats.html.heex+++ b/lib/plausible_web/templates/stats/stats.html.heex@@ -60,24 +60,26 @@<%= if [email protected][:current_user] && @conn.assigns[:demo] do %><div class="py-12 lg:py-16 lg:flex lg:items-center lg:justify-between"><h2 class="text-3xl font-extrabold tracking-tight text-gray-900 leading-9 sm:text-4xl sm:leading-10 dark:text-gray-100">- Want these stats for your website? <br />- <span class="text-indigo-600">Start your free trial today.</span>+ You just saw how Plausible tracks plausible.io <br />+ <span class="text-indigo-600">No cookies, no personal data, no Google</span></h2><div class="flex mt-8 lg:shrink-0 lg:mt-0"><div class="inline-flex shadow-sm rounded-md"><ahref="/register"+ onclick="plausible('CTA Click', {props: {location: 'Live demo', button: 'Start free trial'}})"class="inline-flex items-center justify-center px-5 py-3 text-base font-medium text-white bg-indigo-600 border border-transparent leading-6 rounded-md hover:bg-indigo-500 focus:outline-hidden focus:ring transition duration-150 ease-in-out">- Get started+ Start free trial</a></div><div class="inline-flex ml-3 shadow-xs rounded-md"><a- href="/"+ href="/#pricing"+ onclick="plausible('CTA Click', {props: {location: 'Live demo', button: 'See pricing'}})"class="inline-flex items-center justify-center px-5 py-3 text-base font-medium text-indigo-600 bg-white border border-transparent leading-6 rounded-md dark:text-gray-100 dark:bg-gray-800 hover:text-indigo-500 dark:hover:text-indigo-500 focus:outline-hidden focus:ring transition duration-150 ease-in-out">- Learn more+ See pricing</a></div></div>diff --git a/test/plausible_web/controllers/stats_controller_test.exs b/test/plausible_web/controllers/stats_controller_test.exsindex 21758345d2..41d5432c4f 100644--- a/test/plausible_web/controllers/stats_controller_test.exs+++ b/test/plausible_web/controllers/stats_controller_test.exs@@ -92,7 +92,9 @@ defmodule PlausibleWeb.StatsControllerTest doassert text_of_element(resp, "title") == "Plausible Analytics: Live Demo"assert resp =~ "Login"- assert resp =~ "Want these stats for your website?"+ assert resp =~ "You just saw how Plausible tracks plausible.io"+ assert resp =~ "Start free trial"+ assert resp =~ "See pricing"assert resp =~ "Getting started"end