Skip to content

Commit

Permalink
feat: ✨ Support ga, default off (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
XmchxUp authored Dec 18, 2023
1 parent 2951a08 commit 7726ee4
Show file tree
Hide file tree
Showing 7 changed files with 360 additions and 239 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,13 @@ const USE_DASH_LINE = true;
const LINE_OPACITY = 0.4;
```

- To use Google Analytics, you need to modify the configuration in the `src/utils/const.ts` file.

```typescript
const USE_GOOGLE_ANALYTICS = false;
const GOOGLE_ANALYTICS_TRACKING_ID = '';
```

> privacy protection,setting flowing env:
```bash
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-ga4": "^2.1.0",
"react-helmet-async": "^1.3.0",
"react-map-gl": "^7.1.6",
"react-router-dom": "^6.15.0",
Expand Down
Loading

1 comment on commit 7726ee4

@vercel
Copy link

@vercel vercel bot commented on 7726ee4 Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

running-page – ./

running-page.vercel.app
running-page-git-master-yihong0618.vercel.app
running-page-yihong0618.vercel.app

Please sign in to comment.