Skip to content

Move Google Analytics ID into web/config.js (optional) #1

Description

@telivity-otaip

Why

web/index.html hardcodes a Google Analytics (gtag) ID. Self-hosters should not ship Telivity’s analytics by default.

Task

  1. Read the gtag block at the top of web/index.html.
  2. Move the measurement ID into web/config.example.js as something like analyticsId: '' (empty = disabled).
  3. Only inject/load gtag when CAREEROPS_CONFIG.analyticsId is set.
  4. Document the option in web/README.md (one short paragraph).

Acceptance

  • Fresh clone with empty analyticsId loads no gtag script
  • Setting an ID in config.js enables analytics
  • No secrets committed; config.js stays gitignored

Tips

Small, frontend-only change. Test by viewing page source / Network tab for googletagmanager.com.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions