mirror of
https://github.com/kremalicious/gatsby-plugin-matomo.git
synced 2024-12-22 17:23:23 +01:00
Standard Matomo tracking code
This commit is contained in:
parent
3bc12645a5
commit
bdb71375f8
@ -26,7 +26,7 @@ function buildTrackingCode(pluginOptions) {
|
||||
const html = `
|
||||
window.dev = ${dev}
|
||||
if (window.dev === true || ${dntCondition}) {
|
||||
window._paq = window._paq || [];
|
||||
var _paq = window._paq = window._paq || [];
|
||||
${requireConsent ? "window._paq.push(['requireConsent']);" : ''}
|
||||
${
|
||||
requireCookieConsent
|
||||
|
Loading…
Reference in New Issue
Block a user