Skip to content

Add Google Analytics 4 (GA4) integration#21

Merged
camilo-cf merged 2 commits into
masterfrom
claude/add-google-analytics-6hfvw
Jan 10, 2026
Merged

Add Google Analytics 4 (GA4) integration#21
camilo-cf merged 2 commits into
masterfrom
claude/add-google-analytics-6hfvw

Conversation

@camilo-cf
Copy link
Copy Markdown
Owner

  • Switch analytics provider from Plausible to Google Analytics
  • Configure GA4 tracking ID: G-0ZPVV6GNEY
  • Update google.html provider template to use modern GA4 format (gtag.js)
  • Maintain consent-first architecture: consent.js handles GA4 loading after user consent
  • Add conditional logic for sites with/without consent banner

- Switch analytics provider from Plausible to Google Analytics
- Configure GA4 tracking ID: G-0ZPVV6GNEY
- Update google.html provider template to use modern GA4 format (gtag.js)
- Maintain consent-first architecture: consent.js handles GA4 loading after user consent
- Add conditional logic for sites with/without consent banner
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Security enhancements:
- Add Content Security Policy (CSP) to prevent XSS attacks
- Add X-Content-Type-Options: nosniff to prevent MIME sniffing
- Add Referrer-Policy: strict-origin-when-cross-origin for privacy
- Add Permissions-Policy to restrict browser features (geolocation, camera, etc.)

Dependency upgrades:
- Upgrade MathJax from 2.7.1 to 3.x (latest) for better security and performance
- Update MathJax configuration to modern MathJax 3 format
- Add Subresource Integrity (SRI) hash to MathJax for tamper protection
- Add crossorigin="anonymous" attribute for CORS security

Benefits:
- Enhanced XSS protection via CSP
- Prevents clickjacking and MIME-type attacks
- Better privacy with stricter referrer policies
- Restricts unnecessary browser permissions
- Modern, maintained dependencies with security updates
@camilo-cf camilo-cf merged commit 6060ffa into master Jan 10, 2026
3 checks passed
@camilo-cf camilo-cf deleted the claude/add-google-analytics-6hfvw branch January 10, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants