File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ export function writeDataPoint(
2525 if ( data ?. identityType !== undefined ) {
2626 identityKindString = identityTypeEnumToString ( data . identityType ) ;
2727 }
28+
29+ const game = data ?. game || 'unknown' ;
2830 /* ORDER HERE IS VERY IMPORTANT. IF ANYTHING CHANGES, MUST BE APPENDED. MAX 20 */
2931 const reportData : AnalyticsEngineDataPoint = {
3032 blobs : [
@@ -41,14 +43,15 @@ export function writeDataPoint(
4143 // crafthead data
4244 data ?. kind || 'unknown' ,
4345 identityKindString ,
44- data ?. game || 'unknown' ,
46+ game ,
4547 ] ,
4648 doubles : [
4749 ( request . cf ?. asn as number ) || 0 ,
4850 data ?. responseCode ?? 0 ,
4951 data ?. cached ? 1 : 0 ,
5052 totalTime ,
5153 ] ,
54+ indexes : [ game ] ,
5255 } ;
5356 try {
5457 analytics ?. writeDataPoint ?.( reportData ) ;
You can’t perform that action at this time.
0 commit comments