Skip to content

Commit

Permalink
Change GA4 event path
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Feb 13, 2024
1 parent b215b3c commit d9b5718
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/nationalarchives/analytics.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 0 additions & 4 deletions tasks/generate-fixture-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit d9b5718

Please sign in to comment.