Skip to content

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

Open

Description

@Nomancia

📦 部署方式

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

Activity

  1. Issues-translate-bot commented on Feb 22, 2025

    @Issues-translate-bot

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions