From 02c9b65e627c1e9583352bce25bbc41ee8687ef6 Mon Sep 17 00:00:00 2001 From: "continue[bot]" Date: Mon, 10 Nov 2025 22:24:20 +0000 Subject: [PATCH 1/2] Add Reo.dev tracking infrastructure for documentation - Add reo-tracking.js placeholder file for Reo.dev snippet - Update docs.json to include custom JS for tracking - Add REO_SETUP.md with detailed setup instructions - Configure key pages for high-intent tracking The infrastructure is ready but requires the actual Reo.dev tracking snippet from the dashboard to be added to docs/reo-tracking.js to enable tracking. Fixes #8671 Generated with Continue (https://continue.dev) Co-Authored-By: Continue Co-authored-by: Brian Douglas --- docs/REO_SETUP.md | 99 ++++++++++++++++++++++++++++++++++++++++++++ docs/docs.json | 3 +- docs/reo-tracking.js | 41 ++++++++++++++++++ 3 files changed, 142 insertions(+), 1 deletion(-) create mode 100644 docs/REO_SETUP.md create mode 100644 docs/reo-tracking.js diff --git a/docs/REO_SETUP.md b/docs/REO_SETUP.md new file mode 100644 index 00000000000..b0d05a12bda --- /dev/null +++ b/docs/REO_SETUP.md @@ -0,0 +1,99 @@ +# Reo.dev Tracking Setup Instructions + +## Status: ⚠️ PENDING - Needs Reo.dev Snippet + +The infrastructure is ready, but the actual Reo.dev tracking snippet needs to be added. + +## What's Been Done + +1. ✅ Created `docs/reo-tracking.js` as a placeholder for the Reo.dev snippet +2. ✅ Updated `docs/docs.json` to include the tracking script in custom JS +3. ✅ Documented implementation approach + +## Next Steps + +### 1. Obtain Reo.dev Tracking Snippet + +1. Go to: https://web.reo.dev/dashboard/integration/documentation +2. Navigate to: **Integrations >> Tracking Beacon >> Documentations >> Method 1: Using CDN** +3. Copy the JavaScript code snippet provided + +### 2. Update the Tracking File + +Open `docs/reo-tracking.js` and replace the entire file content with the snippet from step 1. + +**Important:** Remove the placeholder code and paste only the actual Reo.dev snippet. + +### 3. Configure Documentation URL in Reo.dev Dashboard + +In the Reo.dev dashboard, configure: + +- **Base Documentation URL:** `https://docs.continue.dev` +- **Title:** `Continue Documentation` + +### 4. Configure Key Pages (High-Intent Tracking) + +Add these high-intent pages to track in the Reo.dev dashboard under "Key Pages": + +- `https://docs.continue.dev/troubleshooting` - Troubleshooting guide +- `https://docs.continue.dev/reference` - API Reference +- `https://docs.continue.dev/ide-extensions/install` - Installation guide +- `https://docs.continue.dev/ide-extensions/*/quick-start` - Quick start guides +- `https://docs.continue.dev/customize/model-providers/*` - Model provider setup +- `https://docs.continue.dev/guides/*` - All guides + +### 5. CSP Configuration (If Needed) + +If the docs site uses Content Security Policy, you may need to add: + +``` +script-src https://static.reo.dev; +connect-src https://api.reo.dev; +``` + +### 6. Testing + +After adding the real snippet: + +1. Run the docs locally: + + ```bash + cd docs + npm install + npm run dev + ``` + +2. Open the documentation in your browser + +3. Open browser DevTools (F12 or Cmd+Option+I) + +4. Go to the Elements/Inspector tab + +5. Press Ctrl+F (or Cmd+F) and search for "reo" + +6. Verify the tracking code is present and loaded + +7. Check the Console tab for any errors + +### 7. Deploy + +Once verified locally: + +1. Commit the changes with the actual Reo.dev snippet +2. Deploy to production +3. Verify on the live site using the same testing steps + +## File Structure + +``` +docs/ +├── docs.json # Mintlify config (updated to include reo-tracking.js) +├── reo-tracking.js # Reo.dev tracking snippet (needs actual snippet) +└── REO_SETUP.md # This file +``` + +## Support + +- Reo.dev Documentation: https://docs.reo.dev/integrations/tracking-beacon/install-javascript-for-documentation +- Reo.dev Dashboard: https://web.reo.dev/dashboard/integration/documentation +- GitHub Issue: https://github.com/continuedev/continue/issues/8671 diff --git a/docs/docs.json b/docs/docs.json index 35d9954ebb7..12cdd89dfad 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -368,7 +368,8 @@ } }, "custom": { - "css": ["custom.css"] + "css": ["custom.css"], + "js": ["reo-tracking.js"] }, "redirects": [ { diff --git a/docs/reo-tracking.js b/docs/reo-tracking.js new file mode 100644 index 00000000000..81b5f64ed6e --- /dev/null +++ b/docs/reo-tracking.js @@ -0,0 +1,41 @@ +// Reo.dev Tracking Implementation for Continue Documentation +// https://docs.reo.dev/integrations/tracking-beacon/install-javascript-for-documentation + +(function () { + "use strict"; + + // TODO: Replace with actual Reo.dev tracking snippet from dashboard + // Go to: https://web.reo.dev/dashboard/integration/documentation + // Navigate to: Integrations >> Tracking Beacon >> Documentations >> Method 1: Using CDN + // Copy the JavaScript code snippet and replace the placeholder below + + // PLACEHOLDER - Replace with actual Reo.dev snippet + // Example format (actual snippet will be different): + /* + (function(r,e,o){ + var s=document.createElement('script'); + s.type='text/javascript'; + s.async=true; + s.src='https://static.reo.dev/tracking.js'; + s.setAttribute('data-key', 'YOUR_REO_API_KEY'); + var x=document.getElementsByTagName('script')[0]; + x.parentNode.insertBefore(s,x); + })(window,document); + */ + + console.warn( + "Reo.dev tracking script template loaded - replace with actual tracking snippet", + ); + + // Configuration notes: + // 1. Base documentation URL: https://docs.continue.dev + // 2. Key pages to track (high-intent pages): + // - /troubleshooting + // - /reference/* + // - /customize/model-providers/* + // - /ide-extensions/*/quick-start + // - /guides/* + // 3. CSP Requirements (if needed): + // script-src https://static.reo.dev; + // connect-src https://api.reo.dev; +})(); From bce827a8b7e2cf1b77146952df646cf9586079ff Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Mon, 10 Nov 2025 21:42:20 -0800 Subject: [PATCH 2/2] feat: Add Reo.dev tracking script to documentation - Replace placeholder with actual Reo.dev tracking script - Update tracking script with Client ID: 7aa28ed11570734 - Remove REO_SETUP.md as tracking is now implemented - Script will load from https://static.reo.dev/7aa28ed11570734/reo.js Closes #8671 Generated with [Continue](https://continue.dev) Co-Authored-By: Continue --- docs/REO_SETUP.md | 99 -------------------------------------------- docs/reo-tracking.js | 52 +++++++---------------- 2 files changed, 14 insertions(+), 137 deletions(-) delete mode 100644 docs/REO_SETUP.md diff --git a/docs/REO_SETUP.md b/docs/REO_SETUP.md deleted file mode 100644 index b0d05a12bda..00000000000 --- a/docs/REO_SETUP.md +++ /dev/null @@ -1,99 +0,0 @@ -# Reo.dev Tracking Setup Instructions - -## Status: ⚠️ PENDING - Needs Reo.dev Snippet - -The infrastructure is ready, but the actual Reo.dev tracking snippet needs to be added. - -## What's Been Done - -1. ✅ Created `docs/reo-tracking.js` as a placeholder for the Reo.dev snippet -2. ✅ Updated `docs/docs.json` to include the tracking script in custom JS -3. ✅ Documented implementation approach - -## Next Steps - -### 1. Obtain Reo.dev Tracking Snippet - -1. Go to: https://web.reo.dev/dashboard/integration/documentation -2. Navigate to: **Integrations >> Tracking Beacon >> Documentations >> Method 1: Using CDN** -3. Copy the JavaScript code snippet provided - -### 2. Update the Tracking File - -Open `docs/reo-tracking.js` and replace the entire file content with the snippet from step 1. - -**Important:** Remove the placeholder code and paste only the actual Reo.dev snippet. - -### 3. Configure Documentation URL in Reo.dev Dashboard - -In the Reo.dev dashboard, configure: - -- **Base Documentation URL:** `https://docs.continue.dev` -- **Title:** `Continue Documentation` - -### 4. Configure Key Pages (High-Intent Tracking) - -Add these high-intent pages to track in the Reo.dev dashboard under "Key Pages": - -- `https://docs.continue.dev/troubleshooting` - Troubleshooting guide -- `https://docs.continue.dev/reference` - API Reference -- `https://docs.continue.dev/ide-extensions/install` - Installation guide -- `https://docs.continue.dev/ide-extensions/*/quick-start` - Quick start guides -- `https://docs.continue.dev/customize/model-providers/*` - Model provider setup -- `https://docs.continue.dev/guides/*` - All guides - -### 5. CSP Configuration (If Needed) - -If the docs site uses Content Security Policy, you may need to add: - -``` -script-src https://static.reo.dev; -connect-src https://api.reo.dev; -``` - -### 6. Testing - -After adding the real snippet: - -1. Run the docs locally: - - ```bash - cd docs - npm install - npm run dev - ``` - -2. Open the documentation in your browser - -3. Open browser DevTools (F12 or Cmd+Option+I) - -4. Go to the Elements/Inspector tab - -5. Press Ctrl+F (or Cmd+F) and search for "reo" - -6. Verify the tracking code is present and loaded - -7. Check the Console tab for any errors - -### 7. Deploy - -Once verified locally: - -1. Commit the changes with the actual Reo.dev snippet -2. Deploy to production -3. Verify on the live site using the same testing steps - -## File Structure - -``` -docs/ -├── docs.json # Mintlify config (updated to include reo-tracking.js) -├── reo-tracking.js # Reo.dev tracking snippet (needs actual snippet) -└── REO_SETUP.md # This file -``` - -## Support - -- Reo.dev Documentation: https://docs.reo.dev/integrations/tracking-beacon/install-javascript-for-documentation -- Reo.dev Dashboard: https://web.reo.dev/dashboard/integration/documentation -- GitHub Issue: https://github.com/continuedev/continue/issues/8671 diff --git a/docs/reo-tracking.js b/docs/reo-tracking.js index 81b5f64ed6e..069a4b6eb8e 100644 --- a/docs/reo-tracking.js +++ b/docs/reo-tracking.js @@ -1,41 +1,17 @@ // Reo.dev Tracking Implementation for Continue Documentation -// https://docs.reo.dev/integrations/tracking-beacon/install-javascript-for-documentation +// Client ID: 7aa28ed11570734 -(function () { - "use strict"; - - // TODO: Replace with actual Reo.dev tracking snippet from dashboard - // Go to: https://web.reo.dev/dashboard/integration/documentation - // Navigate to: Integrations >> Tracking Beacon >> Documentations >> Method 1: Using CDN - // Copy the JavaScript code snippet and replace the placeholder below - - // PLACEHOLDER - Replace with actual Reo.dev snippet - // Example format (actual snippet will be different): - /* - (function(r,e,o){ - var s=document.createElement('script'); - s.type='text/javascript'; - s.async=true; - s.src='https://static.reo.dev/tracking.js'; - s.setAttribute('data-key', 'YOUR_REO_API_KEY'); - var x=document.getElementsByTagName('script')[0]; - x.parentNode.insertBefore(s,x); - })(window,document); - */ - - console.warn( - "Reo.dev tracking script template loaded - replace with actual tracking snippet", - ); - - // Configuration notes: - // 1. Base documentation URL: https://docs.continue.dev - // 2. Key pages to track (high-intent pages): - // - /troubleshooting - // - /reference/* - // - /customize/model-providers/* - // - /ide-extensions/*/quick-start - // - /guides/* - // 3. CSP Requirements (if needed): - // script-src https://static.reo.dev; - // connect-src https://api.reo.dev; +!(function () { + var e, t, n; + e = "7aa28ed11570734"; + t = function () { + Reo.init({ + clientID: "7aa28ed11570734", + }); + }; + n = document.createElement("script"); + n.src = "https://static.reo.dev/" + e + "/reo.js"; + n.defer = !0; + n.onload = t; + document.head.appendChild(n); })();