1
0
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:
Steffen Schwark 2021-10-15 16:18:23 +01:00
parent 3bc12645a5
commit bdb71375f8

View File

@ -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