Analytics: Use Fullstory to get behavioral data (#53732)

This commit is contained in:
Ivan Ortega Alba
2022-08-16 10:32:00 +02:00
committed by GitHub
parent a7dd095231
commit 961479b111
14 changed files with 63 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ import { Echo } from './core/services/echo/Echo';
import { reportPerformance } from './core/services/echo/EchoSrv';
import { PerformanceBackend } from './core/services/echo/backends/PerformanceBackend';
import { ApplicationInsightsBackend } from './core/services/echo/backends/analytics/ApplicationInsightsBackend';
import { FullstoryBackend } from './core/services/echo/backends/analytics/FullstoryBackend';
import { GAEchoBackend } from './core/services/echo/backends/analytics/GABackend';
import { RudderstackBackend } from './core/services/echo/backends/analytics/RudderstackBackend';
import { GrafanaJavascriptAgentBackend } from './core/services/echo/backends/grafana-javascript-agent/GrafanaJavascriptAgentBackend';
@@ -206,6 +207,12 @@ function initEchoSrv() {
registerEchoBackend(new PerformanceBackend({}));
}
if (config.featureToggles.fullstoryUserTracking && config.fullstoryOrgId) {
registerEchoBackend(
new FullstoryBackend({ orgId: config.fullstoryOrgId, devMode: process.env.NODE_ENV === 'development' })
);
}
if (config.sentry.enabled) {
registerEchoBackend(
new SentryEchoBackend({