Add Reo.dev tracking snippet for documentation
Task
Add Reo.dev tracking snippet to documentation pages to track developer activity and interactions.
Context
Reo.dev provides analytics for documentation usage which can help understand developer engagement and transform it into actionable insights.
Reference
https://docs.reo.dev/integrations/tracking-beacon/install-javascript-for-documentation
Options
Two installation methods are available:
- CDN Method: Add JavaScript snippet to the root index.html page within head tags
- NPM Package: Install 'reodotdev' package and integrate programmatically
Acceptance Criteria
- [ ] Determine which documentation pages need tracking
- [ ] Choose installation method (CDN vs NPM)
- [ ] Obtain tracking snippet from Reo.dev dashboard
- [ ] Implement tracking code
- [ ] Verify tracking is working (check for 'reo' in browser inspector)
- [ ] Update CSP if needed to allow script-src and connect-src for Reo.dev domains## Implementation Plan
Overview
Continue uses Mintlify for documentation. We'll add the Reo.dev tracking snippet similar to how other analytics integrations are configured.
Current Setup
- Documentation platform: Mintlify
- Config file:
docs/docs.json - Existing analytics: Google Analytics 4 (GA4) and PostHog
- Custom scripts: Already has
c15t-cookie-banner.jsfor cookie consent
Implementation Approach
Option 1: Add as Mintlify Integration (Preferred)
- Check if Mintlify supports custom script integrations beyond GA4/PostHog
- Add Reo.dev configuration to the
integrationssection indocs/docs.json
Option 2: Add as Custom Script (Fallback)
- Create
docs/reo-tracking.jswith the Reo.dev tracking snippet - Update
docs/docs.jsonto include custom JavaScript:"custom": { "css": ["custom.css"], "scripts": ["reo-tracking.js"] }
Prerequisites
- [ ] Obtain Reo.dev tracking snippet/API key from dashboard
- [ ] Determine base documentation URL(s) to track
- [ ] Identify key pages for high-intent tracking
Files to Modify
docs/docs.json- Add Reo.dev integration/custom script configurationdocs/reo-tracking.js- Create new file with tracking snippet (if using Option 2)
CSP Considerations
May need to update Content Security Policy to allow:
script-src https://static.reo.dev;
connect-src https://api.reo.dev;
Testing
- Run
npm run devin docs directory - Open browser and inspect elements for 'reo' script
- Verify tracking code is loaded correctly
- Check browser console for any errors
Next Steps
- Need Reo.dev credentials/tracking snippet from team
- Confirm which installation method to use (CDN vs NPM)
- Implement and test locally
- Deploy and verify in production
:tada: This issue has been resolved in version 1.29.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 1.34.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 1.5.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 1.6.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: