File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,6 @@ class OptablePrebidAnalytics {
277
277
missed,
278
278
url : `${ window . location . hostname } ${ window . location . pathname } ` ,
279
279
tenant : this . config . tenant ,
280
- sessionDepth : sessionStorage . optableSessionDepth ,
281
280
// eslint-disable-next-line no-undef
282
281
optableWrapperVersion : SDK_WRAPPER_VERSION ,
283
282
} ;
@@ -287,11 +286,10 @@ class OptablePrebidAnalytics {
287
286
) ;
288
287
289
288
if ( window . optable . customAnalytics ) {
290
- const customData = window . optable . customAnalytics ( ) ;
291
- if ( Object . entries ( customData ) . length ) {
292
- this . log ( `Adding custom data to payload ${ JSON . stringify ( customData ) } ` ) ;
293
- witnessData = { ...witnessData , ...customData } ;
294
- }
289
+ await window . optable . customAnalytics ( ) . then ( ( response ) => {
290
+ this . log ( `Adding custom data to payload ${ JSON . stringify ( response ) } ` ) ;
291
+ Object . assign ( witnessData , response ) ;
292
+ } ) ;
295
293
}
296
294
await this . sendToWitnessAPI ( "auction_processed" , {
297
295
auction : JSON . stringify ( witnessData ) ,
You can’t perform that action at this time.
0 commit comments