Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 关于GoogleTagManager, GoogleAnalytics配置的问题 #6283

Open
Nomancia opened this issue Feb 22, 2025 · 1 comment
Open

[Bug] 关于GoogleTagManager, GoogleAnalytics配置的问题 #6283

Nomancia opened this issue Feb 22, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Nomancia
Copy link

📦 部署方式

Docker

📌 软件版本

v2.15.8

💻 系统环境

Ubuntu, Windows

📌 系统版本

Windows 11

🌐 浏览器

Chrome

📌 浏览器版本

133.0.6943.127

🐛 问题描述

app/constant.ts中配置有有默认的GoogleAnalytics ID,export const DEFAULT_GA_ID = "G-89WN60ZK2E";
同时在app/config/server.ts配置有

    gtmId: process.env.GTM_ID,
    gaId: process.env.GA_ID || DEFAULT_GA_ID,

在该条反馈中link表明已经可以使用环境变量配置,但目前配置后没有反映,

      - GA_ID=G-QCxxxxxxxxxB
      - GTM_ID=GTM-KBxxxxxxT

依旧还是默认的GA_ID = "G-89WN60ZK2E",请问该如何配置。

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@Nomancia Nomancia added the bug Something isn't working label Feb 22, 2025
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] Question about GoogleTagManager, GoogleAnalytics configuration

📦 Deployment method

Docker

📌 Software version

v2.15.8

💻 System environment

Ubuntu, Windows

📌 System version

Windows 11

🌐 Browser

Chrome

📌 Browser version

133.0.6943.127

🐛 Question description

Configure the default GoogleAnalytics ID in app/constant.ts, export const DEFAULT_GA_ID = "G -89WN60ZK2E";
At the same time, it is configured in app/config/server.ts

    gtmId: process.env.GTM_ID,
    gaId: process.env.GA_ID || DEFAULT_GA_ID,

In this feedback link indicates that the environment variable configuration can be used, but it has not been reflected after the configuration.

      - GA_ID=G-QCxxxxxxxxxxxB
      - GTM_ID=GTM-KBxxxxxxT

The default GA_ID = "G-89WN60ZK2E", how to configure it.

📷 Reproduction steps

No response

🚦 Expected results

No response

📝 Supplementary information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants