diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 61d09ea..ee6f199 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -22,8 +22,6 @@ jobs:
runs-on: ubuntu-latest
# Use production environment specified in GitHub settings
environment: production
- env:
- GOOGLE_ANALYTICS_ID: ${{ secrets.GOOGLE_ANALYTICS_ID }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
diff --git a/src/util/index.ts b/src/util/index.ts
index 2a0a903..c9e069b 100644
--- a/src/util/index.ts
+++ b/src/util/index.ts
@@ -18,12 +18,6 @@ const TEMPLATE = fs
.readFileSync(path.join(__dirname, "template.html"))
.toString();
-const GOOGLE_ANALYTICS_ID = process.env.GOOGLE_ANALYTICS_ID;
-
-if (!GOOGLE_ANALYTICS_ID && process.env.NODE_ENV == "production") {
- throw new Error("GOOGLE_ANALYTICS_ID environment variable not defined");
-}
-
const WEBSITES = [
{
sitename: "index",
@@ -106,10 +100,6 @@ function generatePage(name: string): string {
for (key of Object.keys(site)) {
html = html.replace(new RegExp("\\$" + key.toUpperCase()), site[key]);
}
- html = html.replace(
- new RegExp("$GOOGLE_ANALYTICS_ID", "gm"),
- GOOGLE_ANALYTICS_ID
- );
return html;
}
diff --git a/src/util/template.html b/src/util/template.html
index a0b0850..a085c71 100644
--- a/src/util/template.html
+++ b/src/util/template.html
@@ -10,13 +10,13 @@
-
+