continue icon indicating copy to clipboard operation
continue copied to clipboard

Add Reo.dev tracking snippet for documentation

Open continue opened this issue 1 year ago • 4 comments

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:

  1. CDN Method: Add JavaScript snippet to the root index.html page within head tags
  2. 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.js for 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 integrations section in docs/docs.json

Option 2: Add as Custom Script (Fallback)

  1. Create docs/reo-tracking.js with the Reo.dev tracking snippet
  2. Update docs/docs.json to 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 configuration
  • docs/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

  1. Run npm run dev in docs directory
  2. Open browser and inspect elements for 'reo' script
  3. Verify tracking code is loaded correctly
  4. Check browser console for any errors

Next Steps

  1. Need Reo.dev credentials/tracking snippet from team
  2. Confirm which installation method to use (CDN vs NPM)
  3. Implement and test locally
  4. Deploy and verify in production

continue avatar Nov 10 '25 22:11 continue

:tada: This issue has been resolved in version 1.29.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

sestinj avatar Nov 18 '25 18:11 sestinj

:tada: This issue has been resolved in version 1.34.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

sestinj avatar Nov 19 '25 01:11 sestinj

:tada: This issue has been resolved in version 1.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

sestinj avatar Nov 19 '25 04:11 sestinj

:tada: This issue has been resolved in version 1.6.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

sestinj avatar Nov 20 '25 21:11 sestinj