From 952d58ebe8cbfb16b95d450f7165bf162e0a0c38 Mon Sep 17 00:00:00 2001 From: AbigailDeng Date: Mon, 30 Sep 2024 13:45:18 +0800 Subject: [PATCH] feat: amplitude --- docusaurus.config.ts | 4 ++-- {src => static}/js/amplitude.js | 0 {src => static}/js/google-analytics.js | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename {src => static}/js/amplitude.js (100%) rename {src => static}/js/google-analytics.js (100%) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 5ac623e..73f0c24 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -44,11 +44,11 @@ const config: Config = { }, { src: "https://www.googletagmanager.com/gtag/js?id=G-PFZ0BCQHMY", - async: true, + defer: true, }, { src: "/js/google-analytics.js", - async: true, + defer: true, }, ], presets: [ diff --git a/src/js/amplitude.js b/static/js/amplitude.js similarity index 100% rename from src/js/amplitude.js rename to static/js/amplitude.js diff --git a/src/js/google-analytics.js b/static/js/google-analytics.js similarity index 100% rename from src/js/google-analytics.js rename to static/js/google-analytics.js