From a220913d5477ddd9a55fb2e00753ecdc710af651 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Thu, 17 Oct 2024 09:54:45 -0500 Subject: [PATCH] CLDR-15821 v47 add Analytics to spec (#4138) --- tools/scripts/tr-archive/archive.js | 2 ++ tools/scripts/tr-archive/gtag.html | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 tools/scripts/tr-archive/gtag.html diff --git a/tools/scripts/tr-archive/archive.js b/tools/scripts/tr-archive/archive.js index 80df9f6f9f7..bdbd7874e6e 100644 --- a/tools/scripts/tr-archive/archive.js +++ b/tools/scripts/tr-archive/archive.js @@ -32,6 +32,7 @@ marked.use(markedAlert()); * @returns {Promise} name of output file (for status update) */ async function renderit(infile) { + const gtag = (await fs.readFile('gtag.html', 'utf-8')).trim(); console.log(`Reading ${infile}`); basename = path.basename(infile, ".md"); const outfile = path.join(path.dirname(infile), `${basename}.html`); @@ -55,6 +56,7 @@ async function renderit(infile) { // add CSS to HEAD head.innerHTML = head.innerHTML + + gtag + '\n' + `\n` + `\n` + `\n`; diff --git a/tools/scripts/tr-archive/gtag.html b/tools/scripts/tr-archive/gtag.html new file mode 100644 index 00000000000..2e91a24d2f3 --- /dev/null +++ b/tools/scripts/tr-archive/gtag.html @@ -0,0 +1,9 @@ + + +