ga.ts 180 字节
Newer Older
L
LeoKu 已提交
1 2 3 4 5 6 7 8 9
export function recordEvent(
  action: string,
  params: {
    event_category: string
    event_label?: string
    value?: number
  }
) {
  window?.gtag('event', action, params)
L
LeoKu 已提交
10
}