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