We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've been trying to setup Matomo tracking but it only tracks the pageview on hard refreshes.
So far I've created a client plugin (url omitted).
export default defineNuxtPlugin((nuxtApp) => { const router = useRouter() const {proxy} = useScriptMatomoAnalytics({ matomoUrl: 'https://', siteId: '1', disableCookies: true, enableLinkTracking: true, trackPageView: false }) if (process.client) { router.afterEach((to) => { setTimeout(() => { proxy._paq.push(['setDocumentTitle', document.title]) proxy._paq.push(['setCustomUrl', window.location.pathname + window.location.search]) proxy._paq.push(['trackPageView']) }, 100) }) } })
I've also tried a nuxt finish hook and a watcher without success.
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
📚 What are you trying to do?
I've been trying to setup Matomo tracking but it only tracks the pageview on hard refreshes.
🔍 What have you tried?
So far I've created a client plugin (url omitted).
I've also tried a nuxt finish hook and a watcher without success.
ℹ️ Additional context
No response
The text was updated successfully, but these errors were encountered: