1
0
mirror of https://github.com/kremalicious/gatsby-plugin-matomo.git synced 2024-12-22 17:23:23 +01:00

Add trackAllContentImpressions after trackPageView

This commit is contained in:
Jedidiah Broadbent 2019-07-09 01:01:14 +01:00
parent 92f37498ff
commit 1c3c458bb4

View File

@ -37,6 +37,7 @@ exports.onRouteUpdate = ({ location, prevLocation }) => {
_paq.push(['setDocumentTitle', title])
_paq.push(['trackPageView'])
_paq.push(['enableLinkTracking'])
_paq.push(['trackAllContentImpressions'])
if (dev) {
console.log(`[Matomo] Page view for: ${url} - ${title}`)