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

Merge pull request #19 from Jedidiah/track-content

Add trackAllContentImpressions to record/enable content tracking
This commit is contained in:
Matthias Kretschmann 2020-02-15 12:53:39 +01:00 committed by GitHub
commit 4ee4c92524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}`)