From b93b3fcb83cdd4939ee1889462fd15bf3566af63 Mon Sep 17 00:00:00 2001 From: Alex <12097569+nialexsan@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:50:33 -0500 Subject: [PATCH] fix ga (#1027) --- docusaurus.config.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 7c2e1cc563..43a05d86ea 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -202,11 +202,11 @@ const config = { }, ...(process.env.GA_TRACKING_ID ? { - gtag: { - trackingID: process.env.GA_TRACKING_ID, - anonymizeIP: true, - }, - } + googleAnalytics: { + trackingID: process.env.GA_TRACKING_ID, + anonymizeIP: true, + }, + } : {}), }), ], @@ -540,7 +540,7 @@ const config = { }; }, /** this function needs doesn't pick up hot reload event, it needs a restart */ - // @ts-ignore + // @ts-expect-error function (context, options) { const { siteConfig } = context; return { @@ -558,7 +558,7 @@ const config = { }; }, async contentLoaded({ content, actions }) { - // @ts-ignore + // @ts-expect-error const { networks, sporks } = content; const { addRoute, createData } = actions; const networksJsonPath = await createData(