Open benfeather opened 5 days ago
This is my current workaround, but ideally, it wouldn't be required:
npm i -D @types/gtag.js
export function useGtag() {
const { proxy } = useScriptGoogleAnalytics()
return {
gtag: proxy.gtag as Gtag.Gtag,
}
}
đ What are you trying to do?
I'm trying to use the googleTagManager registry script and the useScriptGoogleAnalytics composable.
I have the registry script set up like so:
In my app.vue file, I'm using the composable like so:
But the gtag type shows an error in my IDE: "Expected 2 arguments, but got 3."
However, the modules/composable works as expected (I have tested it with the tag assistant).
How can I get the types working?
đ What have you tried?
No response
âšī¸ Additional context
No response