Skip to content

feat(analytics): add Microsoft Clarity integration for user analytics#165

Merged
jplanckeel merged 1 commit intomainfrom
feat/add-ms-clarity-tracking
Apr 7, 2026
Merged

feat(analytics): add Microsoft Clarity integration for user analytics#165
jplanckeel merged 1 commit intomainfrom
feat/add-ms-clarity-tracking

Conversation

@jplanckeel
Copy link
Copy Markdown
Contributor

Description

  • Add CLARITY_PROJECT_ID environment variable support in Go server
  • Escape clarityProjectId to prevent XSS injection attacks
  • Include clarityProjectId in generated config.js output
  • Add Helm chart values and deployment template for Clarity configuration
  • Define clarityProjectId in TypeScript config interface with documentation
  • Initialize Microsoft Clarity script in main.tsx when project ID is configured
  • Support configuration via environment variables and Vite build variables

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

- Add CLARITY_PROJECT_ID environment variable support in Go server
- Escape clarityProjectId to prevent XSS injection attacks
- Include clarityProjectId in generated config.js output
- Add Helm chart values and deployment template for Clarity configuration
- Define clarityProjectId in TypeScript config interface with documentation
- Initialize Microsoft Clarity script in main.tsx when project ID is configured
- Support configuration via environment variables and Vite build variables
@jplanckeel jplanckeel self-assigned this Apr 7, 2026
@jplanckeel jplanckeel merged commit 7ef9dff into main Apr 7, 2026
5 checks passed
@jplanckeel jplanckeel deleted the feat/add-ms-clarity-tracking branch April 7, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant