From b94136d5713ec7339dc93c9b4163d2f2d34e61f7 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Thu, 25 May 2023 17:04:00 +0800 Subject: [PATCH] refactor: add google tag conversion report --- .../src/middleware/with-security-headers.ts | 4 ++- packages/console/src/include.d/gtag.d.ts | 3 ++ packages/console/src/onboarding/App.tsx | 33 ++++++++++++++++++- .../console/src/onboarding/constants/index.ts | 4 +++ packages/console/src/onboarding/utils.ts | 5 +++ 5 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 packages/console/src/include.d/gtag.d.ts diff --git a/packages/cloud/src/middleware/with-security-headers.ts b/packages/cloud/src/middleware/with-security-headers.ts index 901fb4dd2..94e4c131d 100644 --- a/packages/cloud/src/middleware/with-security-headers.ts +++ b/packages/cloud/src/middleware/with-security-headers.ts @@ -37,6 +37,8 @@ export default function withSecurityHeaders const urlSetOrigins = urlSet.origins; const developmentOrigins = conditionalArray(!isProduction && 'ws:'); const appInsightsOrigins = ['https://*.applicationinsights.azure.com']; + // Gtag will load by `