[PR #5045] [CLOSED] Add Google Analytics config option #17608

Closed
opened 2025-11-02 14:25:34 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5045
Author: @coolaj86
Created: 10/9/2018
Status: Closed

Base: masterHead: optional-google-analytics


📝 Commits (1)

  • ddc50ff Add Google Analytics config option

📊 Changes

3 files changed (+18 additions, -0 deletions)

View changed files

📝 modules/setting/setting.go (+4 -0)
📝 modules/templates/helper.go (+3 -0)
📝 templates/base/head.tmpl (+11 -0)

📄 Description

Adds the option GOOGLE_ANALYTICS_ID which puts the GA script tag into the head.tmpl so that a person can see metrics about their projects.

This would be of value to branded projects, such as Gitea itself (once moved to Gitea).

The ability to track analytics is something I personally see as a core benefit to having a personal git platform.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/5045 **Author:** [@coolaj86](https://github.com/coolaj86) **Created:** 10/9/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `optional-google-analytics` --- ### 📝 Commits (1) - [`ddc50ff`](https://github.com/go-gitea/gitea/commit/ddc50ffa001f115c4f13ae927711d6b239bcc16f) Add Google Analytics config option ### 📊 Changes **3 files changed** (+18 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `modules/setting/setting.go` (+4 -0) 📝 `modules/templates/helper.go` (+3 -0) 📝 `templates/base/head.tmpl` (+11 -0) </details> ### 📄 Description Adds the option `GOOGLE_ANALYTICS_ID` which puts the GA script tag into the `head.tmpl` so that a person can see metrics about their projects. This would be of value to branded projects, such as Gitea itself (once moved to Gitea). The ability to track analytics is something I personally see as a core benefit to having a personal git platform. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 14:25:34 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17608