File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ function verifyAddedEvents(addedEvents, initialRequest) {
64
64
if ( ! res || ( ! res . length && ! initialRequest ) ) {
65
65
throw ( { err : "Invalid length" } ) ;
66
66
}
67
-
68
67
if ( initialRequest ) {
69
68
lastEventCounts . e = res && res [ 0 ] && res [ 0 ] . e ? res [ 0 ] . e : 0 ;
70
69
lastEventCounts . ce = res && res [ 0 ] && res [ 0 ] . ce ? res [ 0 ] . ce : 0 ;
@@ -79,8 +78,8 @@ function verifyAddedEvents(addedEvents, initialRequest) {
79
78
const internalEventKey = statInternalEvents [ key ] || 'ce' ;
80
79
81
80
lastEventCounts [ internalEventKey ] = lastEventCounts [ internalEventKey ] || 0 ;
82
- lastEventCounts [ internalEventKey ] += event . count ;
83
- lastEventCounts . e += event . count ;
81
+ lastEventCounts [ internalEventKey ] += 1 ;
82
+ lastEventCounts . e += 1 ;
84
83
} ) ;
85
84
if ( ! addedEvents . filter ( item => item . key === '[CLY]_session' ) . length ) { // then session included with begin_session=1 and count it also.
86
85
lastEventCounts . s ++ ;
You can’t perform that action at this time.
0 commit comments