📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
'Go to profile' button
Blue Mouseefef3eebb7a1
diff --git a/backend/apps/cloud/src/analytics/analytics.service.ts b/backend/apps/cloud/src/analytics/analytics.service.tsindex 05037667d..2bb634f62 100644--- a/backend/apps/cloud/src/analytics/analytics.service.ts+++ b/backend/apps/cloud/src/analytics/analytics.service.ts@@ -4474,7 +4474,7 @@ export class AnalyticsService {const querySessionDetails = `SELECT- dv, br, brv, os, osv, lc, ref, so, me, ca, te, co, cc, rg, ct+ dv, br, brv, os, osv, lc, ref, so, me, ca, te, co, cc, rg, ct, profileIdFROM analyticsWHEREpid = {pid:FixedString(12)}@@ -4534,7 +4534,7 @@ export class AnalyticsService {if (!details) {const querySessionDetailsBackup = `SELECT- dv, br, brv, os, osv, lc, ref, so, me, ca, te, co, cc, rg, ct+ dv, br, brv, os, osv, lc, ref, so, me, ca, te, co, cc, rg, ct, profileIdFROM analyticsWHEREpid = {pid:FixedString(12)}diff --git a/backend/apps/community/src/analytics/analytics.service.ts b/backend/apps/community/src/analytics/analytics.service.tsindex d825c4369..fa9ee2840 100644--- a/backend/apps/community/src/analytics/analytics.service.ts+++ b/backend/apps/community/src/analytics/analytics.service.ts@@ -3892,7 +3892,7 @@ export class AnalyticsService {const querySessionDetails = `SELECT- dv, br, brv, os, osv, lc, ref, so, me, ca, te, co, cc, rg, ct+ dv, br, brv, os, osv, lc, ref, so, me, ca, te, co, cc, rg, ct, profileIdFROM analyticsWHEREpid = {pid:FixedString(12)}@@ -3950,7 +3950,7 @@ export class AnalyticsService {if (!details) {const querySessionDetailsBackup = `SELECT- dv, br, brv, os, osv, lc, ref, so, me, ca, te, co, cc, rg, ct+ dv, br, brv, os, osv, lc, ref, so, me, ca, te, co, cc, rg, ct, profileIdFROM analyticsWHEREpid = {pid:FixedString(12)}diff --git a/web/app/lib/models/Project.ts b/web/app/lib/models/Project.tsindex 265cd3ac6..d764dcf08 100644--- a/web/app/lib/models/Project.ts+++ b/web/app/lib/models/Project.ts@@ -130,6 +130,7 @@ export interface SessionDetails {rg: string | nullct: string | nulldv: string | null+ profileId: string | nullsdur?: numberisLive?: booleandiff --git a/web/app/pages/Project/tabs/Sessions/SessionDetailView.tsx b/web/app/pages/Project/tabs/Sessions/SessionDetailView.tsxindex 0ad3dbb7b..bc6855f75 100644--- a/web/app/pages/Project/tabs/Sessions/SessionDetailView.tsx+++ b/web/app/pages/Project/tabs/Sessions/SessionDetailView.tsx@@ -3,12 +3,14 @@ import _capitalize from 'lodash/capitalize'import _isEmpty from 'lodash/isEmpty'import _size from 'lodash/size'import _truncate from 'lodash/truncate'-import { GlobeIcon, MonitorIcon, SmartphoneIcon, TabletIcon, ClockIcon, LinkIcon } from 'lucide-react'+import { GlobeIcon, MonitorIcon, SmartphoneIcon, TabletIcon, ClockIcon, LinkIcon, UserIcon } from 'lucide-react'import { useMemo, useState } from 'react'import { useTranslation } from 'react-i18next'+import { Link } from 'react-router'-import { BROWSER_LOGO_MAP, OS_LOGO_MAP, OS_LOGO_MAP_DARK } from '~/lib/constants'+import { BROWSER_LOGO_MAP, OS_LOGO_MAP, OS_LOGO_MAP_DARK, PROJECT_TABS } from '~/lib/constants'import { SessionDetails as SessionDetailsType } from '~/lib/models/Project'+import { useCurrentProject } from '~/providers/CurrentProjectProvider'import { useTheme } from '~/providers/ThemeProvider'import Loader from '~/ui/Loader'import { Text } from '~/ui/Text'@@ -101,6 +103,7 @@ export const SessionDetailView = ({t,i18n: { language },} = useTranslation('common')+ const { id: projectId } = useCurrentProject()const { theme } = useTheme()const [zoomedTimeRange, setZoomedTimeRange] = useState<[Date, Date] | null>(null)@@ -271,6 +274,16 @@ export const SessionDetailView = ({</div></>) : null}++ {details.profileId ? (+ <Link+ to={`/projects/${projectId}?tab=${PROJECT_TABS.profiles}&profileId=${encodeURIComponent(details.profileId)}`}+ className='mt-2 flex w-full items-center justify-center gap-2 rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 transition-colors hover:bg-gray-50 dark:border-slate-600 dark:bg-slate-800 dark:text-gray-200 dark:hover:bg-slate-700'+ >+ <UserIcon className='h-4 w-4' />+ {t('project.goToProfile')}+ </Link>+ ) : null}</div></div>diff --git a/web/public/locales/de.json b/web/public/locales/de.jsonindex 4f4545961..e52a66752 100644--- a/web/public/locales/de.json+++ b/web/public/locales/de.json@@ -1250,6 +1250,7 @@"topPages": "Top-Seiten","locationAndDevice": "Standort & Gerät","sessionInfo": "Sitzungsinformationen",+ "goToProfile": "Zum Profil gehen","sessionActivity": "Sitzungsaktivität","pageflow": "Seitenfluss","userSessions": "Sitzungen",diff --git a/web/public/locales/en.json b/web/public/locales/en.jsonindex 27f00045c..ec6690e8f 100644--- a/web/public/locales/en.json+++ b/web/public/locales/en.json@@ -1250,6 +1250,7 @@"topPages": "Top pages","locationAndDevice": "Location & Device","sessionInfo": "Session info",+ "goToProfile": "Go to profile","sessionActivity": "Session activity","pageflow": "Page flow","userSessions": "Sessions",diff --git a/web/public/locales/fr.json b/web/public/locales/fr.jsonindex baf940391..a04cb82a8 100644--- a/web/public/locales/fr.json+++ b/web/public/locales/fr.json@@ -1250,6 +1250,7 @@"topPages": "Pages principales","locationAndDevice": "Localisation et appareil","sessionInfo": "Infos de session",+ "goToProfile": "Aller au profil","sessionActivity": "Activité de session","pageflow": "Parcours de pages","userSessions": "Sessions",diff --git a/web/public/locales/pl.json b/web/public/locales/pl.jsonindex a5863a51e..86f42ed21 100644--- a/web/public/locales/pl.json+++ b/web/public/locales/pl.json@@ -1250,6 +1250,7 @@"topPages": "Najpopularniejsze strony","locationAndDevice": "Lokalizacja i urządzenie","sessionInfo": "Informacje o sesji",+ "goToProfile": "Przejdź do profilu","sessionActivity": "Aktywność sesji","pageflow": "Przepływ stron","userSessions": "Sesje",diff --git a/web/public/locales/uk.json b/web/public/locales/uk.jsonindex b1276d034..97dffd1c2 100644--- a/web/public/locales/uk.json+++ b/web/public/locales/uk.json@@ -1250,6 +1250,7 @@"topPages": "Найпопулярніші сторінки","locationAndDevice": "Місцезнаходження та пристрій","sessionInfo": "Інформація про сесію",+ "goToProfile": "Перейти до профілю","sessionActivity": "Активність сесії","pageflow": "Маршрут сторінками","userSessions": "Сесії",