Skip to content

Commit 3d3060a

Browse files
committed
remove dtrum
1 parent 8d4bd05 commit 3d3060a

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

frontend/.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ module.exports = {
7474
'closeModal2': true,
7575
'delighted': true,
7676
'describe': true,
77-
'dtrum': true,
7877
'em': true,
7978
'flagsmith': true,
8079
'ga': true,

frontend/common/stores/config-store.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,12 @@ store.dispatcherIndex = Dispatcher.register(store, (payload) => {
4141
}
4242
})
4343

44-
const enableDynatrace = !!window.enableDynatrace && typeof dtrum !== 'undefined'
45-
4644
flagsmith
4745
.init({
4846
AsyncStorage,
4947
api: Project.flagsmithClientAPI,
5048
cacheFlags: true,
5149
enableAnalytics: Project.flagsmithAnalytics,
52-
enableDynatrace,
5350
environmentID: Project.flagsmith,
5451
onChange: controller.loaded,
5552
realtime: Project.flagsmithRealtime,

frontend/global.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ declare global {
4646
const Column: typeof Component
4747
const Loader: typeof Component
4848
const E2E: boolean
49-
const dtrum: undefined | { identifyUser: (id: string) => void }
5049
const closeModal: () => void
5150
const closeModal2: () => void
5251
const toast: (message: string) => void

frontend/web/project/api.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as amplitude from '@amplitude/analytics-browser'
22
import data from 'common/data/base/_data'
33
import isFreeEmailDomain from 'common/utils/isFreeEmailDomain'
44

5-
const enableDynatrace = !!window.enableDynatrace && typeof dtrum !== 'undefined'
65
import { loadReoScript } from 'reodotdev'
76
import { groupBy } from 'lodash'
87
import getUserDisplayName from 'common/utils/getUserDisplayName'
@@ -61,10 +60,6 @@ global.API = {
6160
},
6261
alias(id, user = {}) {
6362
if (Project.excludeAnalytics?.includes(id)) return
64-
65-
if (enableDynatrace && user?.id) {
66-
dtrum.identifyUser(`${user.id}`)
67-
}
6863
Utils.setupCrisp()
6964
if (Project.reo) {
7065
const reoPromise = loadReoScript({ clientID: Project.reo })
@@ -187,10 +182,6 @@ global.API = {
187182
identify(id, user = {}) {
188183
if (Project.excludeAnalytics?.includes(id)) return
189184
try {
190-
if (enableDynatrace && user?.id) {
191-
dtrum.identifyUser(`${user.id}`)
192-
}
193-
194185
const planNames = {
195186
enterprise: 'Enterprise',
196187
free: 'Free',

0 commit comments

Comments
 (0)