diff --git a/libs/templates/404/404.js b/libs/templates/404/404.js index 4180d6746e..84b50cd3ac 100644 --- a/libs/templates/404/404.js +++ b/libs/templates/404/404.js @@ -12,6 +12,9 @@ async function get404(path) { const main = document.body.querySelector('main'); main.append(section); await loadArea(main); + import('../../martech/analytics.js').then((analytics) => { + document.querySelectorAll('main > div').forEach((area, idx) => analytics.decorateSectionAnalytics(area, idx)); + }); } async function getLegacy404() {