# 🤖 Auto-Detection Feature for Lytics JS Tag ## **User Story** As a developer, I want the extension to automatically detect Lytics JS tag on domains so I can start monitoring without manual configuration. ## **Requirements** - Automatically detect Lytics JS tag presence on visited domains - Show visual indicator when auto-detection is active - Auto-enable monitoring for high-confidence detections - Persist detected domains across sessions ## **Detection Methods** - **Network Analysis**: Monitor Lytics API requests (`/api/tag/`, `/api/personalize/`) - **DOM Scanning**: Check for `window.jstag` object and script tags - **Confidence Scoring**: 90% for direct jstag, 70% for scripts, 50% for API calls - **Auto-Enable**: Automatically enable domains with ≥80% confidence ## **Acceptance Criteria** - [ ] Detects `window.jstag` object with high confidence - [ ] Identifies Lytics script tags in DOM - [ ] Analyzes network requests for Lytics patterns - [ ] Shows visual indicator in extension UI - [ ] Auto-enables high-confidence domains - [ ] Completes detection within 2-3 seconds - [ ] No false positives on common sites ## **Technical Components** - Background script for network analysis - Content script for DOM scanning - Storage layer for persistence - UI indicator component
Activity