Analytics X-Ray is a browser extension that intercepts and displays Segment analytics events being fired on web pages. It helps Developer, Data, and QA teams:
- View Segment events in real-time as they're fired
- Inspect event payloads, properties, and metadata
- Verify correct event implementation and data quality
- Debug analytics tracking issues
The extension captures events at the network level using Chrome's webRequest API, intercepting the fully-enriched payloads that Segment actually sends, including all attributes added by the Segment SDK.
Open to adding support for other Analytics services.
- Real-time event interception and display
- Network-level capture (intercepts Segment API calls)
- Event filtering and search
- Detailed event inspection with collapsible sections
- Support for all Segment event types:
track,page,screen,identify,group,alias - DevTools panel integration
- Visit the Chrome Web Store listing
- Click "Add to Chrome"
- Confirm the installation
- Open Chrome DevTools (F12 or Cmd+Option+I) and look for the "Analytics X-Ray" tab
Firefox installation instructions will be available once the extension is published to the Firefox Add-ons store.
Contributions are welcome! We appreciate your help in making Analytics X-Ray better.
If you want to build the extension from source or contribute to the project, you'll need:
- Node.js 18.x or higher
- Yarn (recommended) or npm
- Chrome or Firefox browser for testing
This project supports building for both Chrome and Firefox. Although firefox version is not part of the current priorities and there is not a working version. Running dev or build commands without specifying the browser target will build for Chrome by default.
-
Fork the repository and clone it.
-
Install dependencies:
yarn install
-
Start development with hot reload:
yarn dev # Chrome (default) yarn dev:chrome # Chrome explicitly yarn dev:firefox # Firefox
Running a dev command will build your extension and watch for changes in the source files. Changing the source files will automatically refresh the corresponding dist_<chrome|firefox> folder.
To create an optimized production build:
yarn build # Chrome (default)
yarn build:chrome # Chrome explicitly
yarn build:firefox # Firefox- Open Chrome browser
- Navigate to chrome://extensions
- Enable Developer mode (toggle in top right)
- Click Load unpacked
- Select the
dist_chromefolder in this project
- Open Firefox browser
- Navigate to about:debugging#/runtime/this-firefox
- Click Load temporary Add-on
- Select any file in the
dist_firefoxfolder (e.g.,manifest.json)
Eventhough the files are watched for changes and the dist folders auto re-generate. You will still need to reload the extension from the extension Popup and close and re-open the panel for the changes to take effect.
If you build in prod mode the Reload button is not available in the popup and you need to reload it from the Extensions Manager.
- Open DevTools: After loading the extension, open Chrome DevTools (F12 or Cmd+Option+I)
- Find the Panel: Look for the "Analytics X-Ray" tab in DevTools
- Navigate to a Site: Visit any website that uses Segment analytics (e.g., segment.com)
- View Events: Events will appear in real-time as they're captured from the page
The extension intercepts Segment API calls to:
- Segment
- Rudderstack
- Dreamdata (Untested)
- Attribution
| Technology | Version | Purpose |
|---|---|---|
| React | 19.x | UI Components |
| TypeScript | 5.x | Type-safe development |
| Vite | 6.x | Build tool |
| Tailwind CSS | 4.x | Styling |
| shadcn/ui | latest | UI component library |
| Zustand | latest | State management |
| webextension-polyfill | 0.12.x | Cross-browser compatibility |
| Chrome Extension | MV3 | Extension manifest |
- Ensure you're loading from the correct
dist_chromeordist_firefoxfolder - Check that Developer mode is enabled in Chrome
- Try reloading the extension after making changes
- Verify the website is using Segment analytics
- Check that the extension has the necessary permissions
- Open DevTools console to check for errors
- Ensure you're on a page that actually fires Segment events
- Ensure you're using Node.js 18.x or higher
- Clear
node_modulesand reinstall:rm -rf node_modules && yarn install - Check that all dependencies are installed:
yarn install
- Run
yarn type-checkto see detailed TypeScript errors - Ensure your IDE is using the workspace TypeScript version
This project is licensed under the MIT License - see the LICENSE file for details.


