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
1 changed files with 1 additions and 0 deletions

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