From f9879c311128675a2d9a66c72af80fe07dfc4e05 Mon Sep 17 00:00:00 2001 From: Caryl Wyatt Date: Tue, 14 May 2024 12:05:26 -0500 Subject: [PATCH] fix matomo function --- src/js/lib/analytics.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/lib/analytics.js b/src/js/lib/analytics.js index 3e4583b..f7faada 100644 --- a/src/js/lib/analytics.js +++ b/src/js/lib/analytics.js @@ -44,7 +44,8 @@ export class AnalyticsManager { } - addMatomoScript() { + //need the arrow function syntax for 'this' to be defined + addMatomoScript = () => { var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];