Consent API (#1)
# Changelog - fix typo in supressDnt to suppressDnt setting, - expose recordConsent and revokeConsent API calls, - expose Wide Angle API as `useWideAngle()` and remove obsolete `useWaaEvent` Reviewed-on: https://cloud.inputobjects.eu/forge/forge/wideangle/wideangle-nuxt/pulls/1 Co-authored-by: Jarek Rozanski <jrozanski@inputobjects.eu> Co-committed-by: Jarek Rozanski <jrozanski@inputobjects.eu>
This commit is contained in:
parent
787a1fd57f
commit
f621c33de9
13 changed files with 191 additions and 116 deletions
11
playground/components/sample-tracker.vue
Normal file
11
playground/components/sample-tracker.vue
Normal file
|
@ -0,0 +1,11 @@
|
|||
<template>
|
||||
<button @click="sendEvent">Send Event</button>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { useWideAngle } from '#imports';
|
||||
|
||||
const sendEvent = () => {
|
||||
useWideAngle().dispatchEvent('foo', {'param1': 'bar'}, {'value1': 123});
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue