(eventParams)
| 54 | } = params |
| 55 | |
| 56 | const trackSdkRuntimeEvent: TrackEventFn = (eventParams) => { |
| 57 | if ( |
| 58 | clientEnv.NEXT_PUBLIC_CB_ENVIRONMENT === 'prod' && |
| 59 | !shouldTrackAnalyticsEvent({ |
| 60 | event: eventParams.event, |
| 61 | distinctId: eventParams.userId, |
| 62 | properties: eventParams.properties, |
| 63 | }) |
| 64 | ) { |
| 65 | return |
| 66 | } |
| 67 | |
| 68 | trackCommonEvent(eventParams) |
| 69 | } |
| 70 | |
| 71 | return { |
| 72 | // Environment |
nothing calls this directly
no test coverage detected