我正在使用 gtag.js。我发送这个没有问题:
gtag('event', 'aaa', {
'event_category': 'bbb',
'event_label': error
});
Run Code Online (Sandbox Code Playgroud)
并在https://analytics.google.com上的实时 > 事件面板下检查它。但我发送后不知道去哪里查看:
gtag('event', 'exception', {
'description': error,
'fatal': true // set to true if the error is fatal
});
gtag('event', 'timing_complete', {
'name': 'load',
'value': Math.round(performance.now()),
'event_category': 'JS Dependencies'
});
Run Code Online (Sandbox Code Playgroud)
这两个特殊事件记录在此处: https: //developers.google.com/analytics/devguides/collection/gtagjs/exceptions。但没有 UI 来检查它们吗?
const metadataKey = "metadataKey";
class User
{
@Reflect.metadata(metadataKey, 1)
name: string;
@Reflect.metadata(metadataKey, 2)
age: number;
}
getPropertyDecorators(User); // I hope it can return [1, 2]
Run Code Online (Sandbox Code Playgroud)
我希望函数 getPropertyDecorators 不需要创建 User 的实例。