From 8a67e8870875f56f8cf15861c8a99248eac996df Mon Sep 17 00:00:00 2001 From: jffarge Date: Tue, 29 Mar 2022 13:55:09 +0200 Subject: [PATCH] init amplitude with appropriate ID Signed-off-by: jffarge --- website/src/theme/DocPage/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/src/theme/DocPage/index.js b/website/src/theme/DocPage/index.js index b76af607..0f0c6d60 100644 --- a/website/src/theme/DocPage/index.js +++ b/website/src/theme/DocPage/index.js @@ -140,6 +140,9 @@ function DocPage(props) { // DocPage Swizzle useEffect(() => { + var instance1 = amplitude.getInstance().init(process.env.REACT_APP_AMPLITUDE_ID, null, { + apiEndpoint: `${window.location.hostname}/t` + }) amplitude.getInstance().logEvent('Docs Viewed', { "hostname": window.location.hostname, "path": location.pathname }); }, [location.pathname]) // End DocPageSwizzle