Skip to content

Commit

Permalink
fix: Restore Google Tag for all users (#481)
Browse files Browse the repository at this point in the history
* Get endpoint categories from swagger tags; regenerate references; add metadata to new paths

* Display transaction endpoints

* Design fixes

* Design fixes

* Design fixes

* Restore google-tag for all users

* Add release-it script
  • Loading branch information
louis-md authored May 24, 2024
1 parent f5781a5 commit 72bd626
Show file tree
Hide file tree
Showing 3 changed files with 1,188 additions and 206 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"test": "env-cmd cypress run --headless",
"typecheck": "tsc --noEmit --incremental false",
"prepush": "pnpm lint && pnpm typecheck && pnpm validate-resources",
"prepare": "husky install"
"prepare": "husky install",
"release": "release-it"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -44,6 +45,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-ga4": "^2.1.0",
"release-it": "^17.3.0",
"remark-gfm": "^4.0.0",
"shelljs": "^0.8.5",
"shiki": "^1.2.4"
Expand Down
9 changes: 4 additions & 5 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ const GoogleAnalytics: React.FC = () => {
location.reload()
}
}, [isAnalyticsEnabled])
return isAnalyticsInitialized ? (
<GoogleTagManager
gtmId={String(process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_TRACKING_ID)}
/>
) : null
return null
}

const App = ({
Expand All @@ -77,6 +73,9 @@ const App = ({
<Head>
<MetaTags path={router.asPath} />
</Head>
<GoogleTagManager
gtmId={String(process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_TRACKING_ID)}
/>
<CacheProvider value={emotionCache}>
<CssVarsProvider theme={cssVarsTheme}>
<CookieBannerContextProvider>
Expand Down
Loading

0 comments on commit 72bd626

Please sign in to comment.