ChatGPTNextWeb / ChatGPTNextWeb/NextChat
[Bug] 关于GoogleTagManager, GoogleAnalytics配置的问题
- Dominant language
- TypeScript
- Stars
- 88.8k
- Forks
- 59.1k
- PR merge metrics
- No merged PRs in 30d
Description
### 📦 部署方式
Docker
### 📌 软件版本
v2.15.8
### 💻 系统环境
Ubuntu, Windows
### 📌 系统版本
Windows 11
### 🌐 浏览器
Chrome
### 📌 浏览器版本
133.0.6943.127
### 🐛 问题描述
在[app/constant.ts](https://github.com/ChatGPTNextWeb/NextChat/blob/f5f3ce94f63bceadff24ca1beff3ae85d142f92e/app/constant.ts#L817)中配置有有默认的`GoogleAnalytics ID`,export const DEFAULT_GA_ID = "G-89WN60ZK2E";
同时在[app/config/server.ts](https://github.com/ChatGPTNextWeb/NextChat/blob/f5f3ce94f63bceadff24ca1beff3ae85d142f92e/app/config/server.ts#L42)配置有
```
gtmId: process.env.GTM_ID,
gaId: process.env.GA_ID || DEFAULT_GA_ID,
```
在该条反馈中[link](https://github.com/ChatGPTNextWeb/NextChat/issues/4215#issuecomment-1978272016)表明已经可以使用环境变量配置,但目前配置后没有反映,
```
- GA_ID=G-QCxxxxxxxxxB
- GTM_ID=GTM-KBxxxxxxT
```
依旧还是默认的GA_ID = "G-89WN60ZK2E",请问该如何配置。
### 📷 复现步骤
_No response_
### 🚦 期望结果
_No response_
### 📝 补充信息
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.