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 more custom properties to be tracked (#3778)
Karl-Aksel Puulmann499be9f0b33f
diff --git a/lib/plausible_web/templates/layout/_tracking.html.heex b/lib/plausible_web/templates/layout/_tracking.html.heexindex a8a398013c..e999cbc67a 100644--- a/lib/plausible_web/templates/layout/_tracking.html.heex+++ b/lib/plausible_web/templates/layout/_tracking.html.heex@@ -19,7 +19,9 @@plausible('pageview', {u: pageUrl,props: {- logged_in: <%= is_map(@conn.assigns[:current_user]) %>+ logged_in: <%= is_map(@conn.assigns[:current_user]) %>,+ theme: '<%= if @conn.assigns[:current_user], do: @conn.assigns[:current_user].theme, else: "system" %>',+ browser_language: navigator.language || navigator.userLanguage}})</script>