Skip to content

Commit

Permalink
Track page title in Matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
gb-beng committed Apr 23, 2024
1 parent aef4b1d commit 834440f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/matomo.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default defineNuxtPlugin(() => {
_paq.push(['deleteCustomDimension', 1])
_paq.push(['setReferrerUrl', origin + from.path])
_paq.push(['setCustomUrl', origin + to.path])
_paq.push(['setDocumentTitle', document.title])
_paq.push(['trackPageView'])
console.debug(`trackPageView ${from.path}->${to.path}`)
}
Expand Down

0 comments on commit 834440f

Please sign in to comment.