2
0

(ga) Add send_to option

This commit is contained in:
Baptiste Arnaud
2023-04-27 13:23:10 +02:00
parent d448e64dc9
commit 9e8acd97aa
5 changed files with 30 additions and 27 deletions

View File

@ -7,6 +7,7 @@ declare const gtag: (
event_category: string | undefined
event_label: string | undefined
value: number | undefined
send_to: string | undefined
}
) => void
@ -39,6 +40,7 @@ export const sendGaEvent = (options: GoogleAnalyticsOptions) => {
event_category: options.category,
event_label: options.label,
value: options.value,
send_to: options.sendTo,
})
}