From 7f073057e2fa63edf36d77af95a8a3e8aa0d1fcb Mon Sep 17 00:00:00 2001 From: Arturs Sosins Date: Fri, 17 Jan 2025 20:40:00 +0200 Subject: [PATCH] Add self tracking capabilities --- frontend/express/app.js | 3 +- frontend/express/views/dashboard.html | 280 ++++++++++-------- .../public/javascripts/countly.views.js | 11 + .../public/localization/plugins.properties | 4 +- 4 files changed, 171 insertions(+), 127 deletions(-) diff --git a/frontend/express/app.js b/frontend/express/app.js index 912a532cf51..4af7bd9c927 100644 --- a/frontend/express/app.js +++ b/frontend/express/app.js @@ -116,8 +116,8 @@ plugins.setConfigs("frontend", { session_timeout: 30, use_google: true, code: true, - google_maps_api_key: "", offline_mode: false, + self_tracking: "", }); if (!plugins.isPluginEnabled('tracker')) { @@ -137,7 +137,6 @@ plugins.setUserConfigs("frontend", { session_timeout: false, use_google: false, code: false, - google_maps_api_key: "" }); plugins.setConfigs("security", { diff --git a/frontend/express/views/dashboard.html b/frontend/express/views/dashboard.html index c6baa6a5fb2..ca294957cbc 100644 --- a/frontend/express/views/dashboard.html +++ b/frontend/express/views/dashboard.html @@ -1886,148 +1886,180 @@

{{this.nam <% if (!offline_mode) { %> - <% if (!track || track == "GA" && member['global_admin'] || track == "noneGA" && !member['global_admin']) { %> - - - + - <% } %> + + Countly2.user_details({ + "name": countlyGlobal.member.full_name || "", + "username": countlyGlobal.member.username || "", + "email": countlyGlobal.member.email + }); + } + <% } %>