feat: add google analytics setup
All checks were successful
Deploy / build-and-deploy (push) Successful in 59s

This commit is contained in:
juancwu 2026-02-10 16:52:35 +00:00
commit e7fdea5375
3 changed files with 22 additions and 0 deletions

View file

@ -34,6 +34,8 @@ type Config struct {
SupportEmail string
GoogleMeasuringID string
Version string
}
@ -68,6 +70,8 @@ func Load(version string) *Config {
SupportEmail: envString("SUPPORT_EMAIL", ""),
GoogleMeasuringID: envString("GOOGLE_MEASURING_ID", ""),
Version: version,
}
@ -91,6 +95,7 @@ func (c *Config) Sanitized() *Config {
MailerEmailFrom: c.MailerEmailFrom,
SupportEmail: c.SupportEmail,
GoogleMeasuringID: c.GoogleMeasuringID,
Version: c.Version,
}