Skip to content

Commit

Permalink
Merge pull request #46 from astriaorg/develop
Browse files Browse the repository at this point in the history
google analytics
  • Loading branch information
steezeburger authored Oct 30, 2024
2 parents 3ed3f49 + 405704d commit 08cc91c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
2 changes: 2 additions & 0 deletions web/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ REACT_APP_BRAND_URL=https://astria.org
REACT_APP_BRIDGE_URL=https://bridge.astria.org
REACT_APP_SWAP_URL=https://flame.astria.org/swap
REACT_APP_POOL_URL=https://flame.astria.org/pool

REACT_APP_GA_TRACKING_ID=
10 changes: 8 additions & 2 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astria-bridge-web-app",
"version": "0.10.0",
"version": "0.11.0",
"private": true,
"dependencies": {
"@cosmjs/launchpad": "^0.27.1",
Expand All @@ -20,6 +20,7 @@
"ethers": "^6.13.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-ga4": "^2.1.0",
"react-hook-form": "^7.50.0",
"react-router-dom": "^6.17.0",
"react-scripts": "5.0.1",
Expand All @@ -41,7 +42,11 @@
"lint-apply-unsafe": "biome lint --apply-unsafe ./src ./public"
},
"browserslist": {
"production": [">0.2%", "not dead", "not op_mini all"],
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
Expand Down
11 changes: 9 additions & 2 deletions web/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import React from "react";
import ReactDOM from "react-dom/client";
import "styles/index.scss";
import reportWebVitals from "./reportWebVitals";
import ReactGA from "react-ga4";
import { BrowserRouter } from "react-router-dom";
import reportWebVitals from "./reportWebVitals";

import App from "./App";
import "styles/index.scss";

// load ga tracking if id available
if (process.env.REACT_APP_GA_TRACKING_ID) {
ReactGA.initialize(process.env.REACT_APP_GA_TRACKING_ID);
}

const domRoot: ReactDOM.Root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement,
Expand Down

0 comments on commit 08cc91c

Please sign in to comment.