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
Adjust custom props of demo CTA events (#6424)
Marko Saricadaab498eaba
diff --git a/lib/plausible_web/templates/stats/stats.html.heex b/lib/plausible_web/templates/stats/stats.html.heexindex 33aa32a843..633430e04a 100644--- a/lib/plausible_web/templates/stats/stats.html.heex+++ b/lib/plausible_web/templates/stats/stats.html.heex@@ -57,7 +57,7 @@></div><div id="modal_root"></div>- <%= if [email protected][:current_user] && @conn.assigns[:demo] do %>+ <%= if ee?() && [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">You just saw how Plausible tracks plausible.io <br />@@ -67,7 +67,7 @@<div class="inline-flex shadow-sm rounded-md"><ahref="/register"- onclick="plausible('CTA Click', {props: {location: 'Live demo', button: 'Start free trial'}})"+ onclick="plausible('CTA Click', {props: {position: 'Bottom', type: '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">Start free trial@@ -76,7 +76,7 @@<div class="inline-flex ml-3 shadow-xs rounded-md"><ahref="/#pricing"- onclick="plausible('CTA Click', {props: {location: 'Live demo', button: 'See pricing'}})"+ onclick="plausible('CTA Click', {props: {position: 'Bottom', type: '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">See pricingdiff --git a/test/plausible_web/controllers/stats_controller_test.exs b/test/plausible_web/controllers/stats_controller_test.exsindex dc9f858d03..f259062f1e 100644--- a/test/plausible_web/controllers/stats_controller_test.exs+++ b/test/plausible_web/controllers/stats_controller_test.exs@@ -77,6 +77,7 @@ defmodule PlausibleWeb.StatsControllerTest do])end+ @tag :ee_onlytest "plausible.io live demo - shows site stats, header and footer", %{conn: conn} dosite = new_site(domain: "plausible.io", public: true)populate_stats(site, [build(:pageview)])