Add more custom properties to be tracked (#3778)

We just released support for multiple custom property filters, but our demo/live setup
does not have many useful custom properties. This PR adds a few more to allow
better slicing-and-dicing.
pull/3779/head r2024.02.12-344
Karl-Aksel Puulmann 3 years ago committed by GitHub
parent 1cb7982cd9
commit 499be9f0b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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>

Loading…
Cancel
Save