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:
commit
4ee4c92524
@ -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}`)
|
||||
|
Loading…
Reference in New Issue
Block a user