diff --git a/src/nationalarchives/analytics.mjs b/src/nationalarchives/analytics.mjs index 4739c622..a1c69d2f 100644 --- a/src/nationalarchives/analytics.mjs +++ b/src/nationalarchives/analytics.mjs @@ -170,7 +170,7 @@ class GA4 extends EventTracker { /** @protected */ recordEvent(eventName, data) { - const ga4Data = { event: eventName, "tna.data": data }; + const ga4Data = { event: eventName, "tna.event": data }; this.pushToDataLayer(ga4Data); } diff --git a/tasks/generate-fixture-html.js b/tasks/generate-fixture-html.js index 5c07da5e..914600cd 100644 --- a/tasks/generate-fixture-html.js +++ b/tasks/generate-fixture-html.js @@ -12,10 +12,6 @@ if (!fs.existsSync(fixturesOutputDirectory)) { fs.mkdirSync(fixturesOutputDirectory); } -if (!fs.existsSync("temp")) { - fs.mkdirSync("temp"); -} - const components = globSync( `${componentsDirectory}*${componentFixturesFile}`, ).map((componentFixtureFile) =>