mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 04:37:47 +08:00
56fee15685
* chore: add spon * chore: add spon dark * chore: add spon ui * chore: add spon ui2 * chore: add analytics * chore: add readme
16 lines
285 B
TypeScript
16 lines
285 B
TypeScript
export const sendEvent = (
|
|
action: string,
|
|
label: string,
|
|
value?: any,
|
|
category?: string
|
|
): void => {
|
|
const gtag = (window as any).gtag
|
|
if (gtag) {
|
|
gtag('event', action, {
|
|
event_label: label,
|
|
event_value: value,
|
|
event_category: category,
|
|
})
|
|
}
|
|
}
|