We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d3fa67 commit 45edb19Copy full SHA for 45edb19
1 file changed
src/runtime/registry/bing-uet.ts
@@ -30,11 +30,11 @@ export function useScriptBingUet<T extends BingUetApi>(_options?: BingUetInput)
30
use() {
31
// After bat.js loads, initialize UET if not already done
32
if (options?.id && typeof window.UET === 'function' && Array.isArray(window.uetq)) {
33
- const uetOptions: Record<string, any> = {
+ const uetOptions = {
34
ti: options.id,
35
enableAutoSpaTracking: options.enableAutoSpaTracking ?? true,
36
+ q: window.uetq as any[],
37
}
- uetOptions.q = window.uetq
38
window.uetq = new window.UET(uetOptions)
39
window.uetq.push('pageLoad')
40
0 commit comments