Support Wide Angle Analytics values.
This commit is contained in:
parent
7b78980023
commit
804e8ea1d8
6 changed files with 5593 additions and 6631 deletions
|
@ -1,9 +1,10 @@
|
|||
import { useNuxtApp } from '#imports';
|
||||
|
||||
export function useWaaEvent (name: string, params?: Record<string, any>) {
|
||||
export function useWaaEvent (name: string, params?: Record<string, any>, values?: Record<string, number>) {
|
||||
const waa = useNuxtApp().$waa
|
||||
console.debug(`[WAA] Attempting to send Wide Angle event: ${name}`);
|
||||
if(waa && waa.value) {
|
||||
waa.value.dispatchEvent(name, params);
|
||||
waa.value.dispatchEvent(name, params, values);
|
||||
} else {
|
||||
console.debug("[WAA] Wide Angle Analytics is not yest initialized");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue