File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
redisinsight/api/src/modules/core/services/analytics Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export class AnalyticsService {
61
61
'agreements.analytics' ,
62
62
false ,
63
63
) ;
64
- if ( isAnalyticsGranted ) {
64
+ if ( isAnalyticsGranted || nonTracking ) {
65
65
this . analytics . track ( {
66
66
anonymousId : this . anonymousId ,
67
67
integrations : { Amplitude : { session_id : this . sessionId } } ,
@@ -70,15 +70,6 @@ export class AnalyticsService {
70
70
...eventData ,
71
71
} ,
72
72
} ) ;
73
- } else if ( nonTracking ) {
74
- this . analytics . track ( {
75
- anonymousId : NON_TRACKING_ANONYMOUS_ID ,
76
- integrations : { Amplitude : { session_id : this . sessionId } } ,
77
- event,
78
- properties : {
79
- ...eventData ,
80
- } ,
81
- } ) ;
82
73
}
83
74
} catch ( e ) {
84
75
// continue regardless of error
You can’t perform that action at this time.
0 commit comments