Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Send user name and email correctly

Uku Taht4b321bdd379f
diff --git a/lib/plausible_web/views/error_view.ex b/lib/plausible_web/views/error_view.ex
index d6a190a36a..b75a884be7 100644
--- a/lib/plausible_web/views/error_view.ex
+++ b/lib/plausible_web/views/error_view.ex
@@ -30,8 +30,10 @@ defmodule PlausibleWeb.ErrorView do
opts =
%{
eventId: event_id,
- "user.email": current_user && current_user.email,
- "user.name": current_user && current_user.name
+ user: %{
+ name: current_user && current_user.name,
+ email: current_user && current_user.email
+ }
}
|> Jason.encode!()