Injecting WAA via ref to account for load delay.
This commit is contained in:
parent
30c0b72eea
commit
ef6770f031
6 changed files with 49 additions and 15 deletions
|
@ -89,18 +89,12 @@ Site has to have these event enable in Wide Angle Analytics configuration prior
|
|||
|
||||
Currently **Click Events** are [emitted automatically](https://wideangle.co/documentation/tracking-click-events) based on element data attributes.
|
||||
|
||||
| :warning: The tracker script does not listen to events inside shadow DOM. This is known limitation to be addressed in near term. |
|
||||
|--------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
|
||||
### Tracking Downloads
|
||||
|
||||
Depending on the configured mode, the **Download Event** will fire automatically when either:
|
||||
* a file with recognized extension is being downloaded, or
|
||||
* when a link is marked with `data-waa-name` attribute.
|
||||
|
||||
| :warning: Currently the tracker script does not listen to events inside shadow DOM. This is known limitation to be addressed in near term. |
|
||||
|--------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
|
||||
### Tracking Custom Actions
|
||||
|
||||
Custom action are the most flexible and can be triggered directly from Vue components. As such their usage is not limitted due to Shadow DOM.
|
||||
|
@ -120,7 +114,7 @@ const sendEvent = async () => {
|
|||
session: 'cjhw92nf9aq',
|
||||
cohort: 'c1233'
|
||||
}
|
||||
waa.dispatchEvent('interest', params);
|
||||
waa.value.dispatchEvent('interest', params);
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue