HoneyMoose
  • 首页
  • Java
  • Jersey
  • Jira
  • Confluence
  • U.S.
    • USRealEstate
    • USVisaTrack
    • H1B
  • 项目和网站
    • CWIKI.US
    • OSSEZ 社区
    • WIKI.OSSEZ.COM
    • BUG.OSSEZ.COM
    • RSS.OSSEZ.COM
BLOG.OSSEZ.COM
A responsive blog theme focused om user reading experience
  1. Home
  2. Computer Science
  3. This article

Discourse 如何添加 Google Analytics GA4 代码

2020年12月01日 742Browse 0Like 0Comments

2020年10月14号,Google Analytics v4正式发布,由APP+Web改名而来的。

针对 Discourse 你可以非常容易的嵌入 GA4 的代码。

GA 4 是 Google Analytics v3 的升级版本,提供了更多的内容和亮点。

获得 GA 4 的 ID

在登录 Google Analytics 的控制台以后,选择数据流,然后在数据流下面有一个你命名网站的链接。

单击那个连接后面的箭头。

 

GA4-tag-01

 

 

在弹出来的界面中,有一根 Measurement ID,这个 ID 是以字母 G 为开头的。

你需要拷贝这个内容。

 

GA4-tag-02

 

 

添加到 Discourse 上

在 Discourse 上选择设置,然后搜索关键字 google

在结果上,有一根 GA Version 和 Tracking Code。

在 GA 的版本上,你需要选择 V4 的版本,否则将会显示的是 V3 的版本。

V3 的话,还是需要使用 UA 开头的代码,如果选择的是 V4 的话,你这里就复制上一步拷贝的 G 开头的代码就可以了。

 

GA4-tag-03

 

 

校验安装

在完成设置后,登录 Google Analytics 的控制台,然后查看实时访问。

 

GA4-tag-04

 

如果能看到有数据进入,就说明配置成功了。

https://www.ossez.com/t/discourse-google-analytics-ga4/734

Tags: None
Last updated:2020年12月01日

Kratos

stay absorbed stay excellent

Like
< Previous
Next >

Comments

Cancel reply

Newest Hotspots Random
Newest Hotspots Random
IntelliJ IDEA 2023.1 版本添加了包中类的列表功能 Jenkins 修改启动的端口 Spring 项目运行提示错误 Not a managed type Linux 查看 SELinux 的状态 WordPress 网站 Error Establishing a Database Connection(建立数据库连接时出错) Linux 开启或关闭 SELinux
一个程序员水平的高低 Confluence 6 新安装配置数据库字符集编码 OSSRH 仓库地址 Confluence 6 升级你的许可证 Spring Batch 源代码进行编译的时候提示仓库错误 CloseableHttpClient 调用 Post 的时候 StringEntity 字符集
Categories
  • Algorithm(算法)
  • AMQP
  • Angular
  • CI
  • Compile And CI
  • Computer Science
  • Confluence
  • DataBase
  • Gradle
  • H1B
  • Hibernate
  • IDE
  • Java
  • Jersey
  • Jira
  • MariaDB
  • PrestaShop
  • Spring
  • Spring Batch
  • U.S.
  • USRealEstate
  • USVisaTrack
  • 我的小厨

COPYRIGHT © 2020 HoneyMoose. ALL RIGHTS RESERVED.

THEME CWIKIUS.CN MADE BY VTROIS