ankidroid / ankidroid/Anki-Android

The GA4 Measurement Protocol key

未关闭
#21,026 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Analytics Keep Open
主要语言
Kotlin
星标
11.8k
派生
2.9k
平均合并
2 天 3 小时
30 天内合并 PR
171

描述

### Context
The GA4 Measurement Protocol `api_secret` is currently sourced from `local.properties` (`ANALYTICS_API_KEY`) or the `ANALYTICS_API_KEY` env var, with a `DUMMY_API_XXX` fallback so contributor builds compile.

### Question raised by @david-allison
> Only an issue with the build.gradle change, and that's mostly my ignorance/wanting reassurance.
>
> I believe in our prior implementation, the key wasn't obscured. Obscuring a publicly-facing analytics key is
> semi-understandable from the perspective of not wanting malicious clients, but it's unusual to me, as it's not a > private key.
>
> (For example, with Firebase, this would be a public credential on a website)
>
> If you'd be OK with deferring the conversation, shift it to an issue and merge at will!
> cc @mikehardy

### TODO
- [ ] Research how other OSS Android projects handle GA4 Measurement Protocol `api_secret` (Signal, K-9 Mail, F-Droid clients, etc.)
- [ ] Decide: keep obscuring, publish the key, or stand up a separate dev GA4 property
- [ ] Document the decision in the analytics package KDoc

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。