Documentation
This commit is contained in:
parent
33ce331413
commit
52e1fa2b6f
13 changed files with 270 additions and 64 deletions
10
src/runtime/composables/useWaaEvent.ts
Normal file
10
src/runtime/composables/useWaaEvent.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import { useNuxtApp } from '#imports';
|
||||
|
||||
export function useWaaEvent (name: string, params?: Record<string, any>) {
|
||||
const waa = useNuxtApp().$waa
|
||||
if(waa && waa.value) {
|
||||
waa.value.dispatchEvent(name, params);
|
||||
} else {
|
||||
console.debug("[WAA] Wide Angle Analytics is not yest initialized");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue