mirror of
https://github.com/kremalicious/gatsby-plugin-matomo.git
synced 2025-02-14 21:10:42 +01:00
Add trackAllContentImpressions after trackPageView
This commit is contained in:
parent
92f37498ff
commit
1c3c458bb4
@ -37,6 +37,7 @@ exports.onRouteUpdate = ({ location, prevLocation }) => {
|
|||||||
_paq.push(['setDocumentTitle', title])
|
_paq.push(['setDocumentTitle', title])
|
||||||
_paq.push(['trackPageView'])
|
_paq.push(['trackPageView'])
|
||||||
_paq.push(['enableLinkTracking'])
|
_paq.push(['enableLinkTracking'])
|
||||||
|
_paq.push(['trackAllContentImpressions'])
|
||||||
|
|
||||||
if (dev) {
|
if (dev) {
|
||||||
console.log(`[Matomo] Page view for: ${url} - ${title}`)
|
console.log(`[Matomo] Page view for: ${url} - ${title}`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user