Add scroll tracking and optional session recording. Closes #1#3
Draft
Add scroll tracking and optional session recording. Closes #1#3
Conversation
- Add scroll depth tracking normalized to screen size for heatmap generation - Track scroll milestones (25%, 50%, 75%, 90%, 100%) - Capture scroll snapshots with normalized positions - Send final scroll depth on page unload - Add optional RRWeb session recording integration - Dynamically load RRWeb script from CDN - Privacy-focused defaults (mask inputs, block sensitive classes) - Batch recording events and flush periodically - New configuration options: - data-track-scroll-depth: Enable/disable scroll tracking (default: true) - data-scroll-throttle-ms: Throttle interval (default: 250ms) - data-scroll-depth-intervals: Customize milestone percentages - data-enable-session-recording: Enable session recording (default: false) - data-rrweb-cdn-url: Custom RRWeb CDN URL - Update all framework integrations (React, Next.js, Vue, Svelte) - Add useScrollData hook/composable for scroll heatmap data - Add useSessionRecording hook/composable for recording control - Export new types: ScrollHeatmapData, RecordingStatus, RecordingOptions
…ework SDKs - Add framework SDK documentation (React, Next.js, Vue, Svelte) - Document scroll depth tracking with metrics explanation - Document session recording with RRWeb integration - Explain privacy CSS classes (zori-block, zori-ignore, zori-mask) - Add configuration reference table with all options - Document all automatic events tracked - Streamline and modernize documentation structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add scroll depth tracking normalized to screen size for heatmap generation
Add optional RRWeb session recording integration
New configuration options:
Update all framework integrations (React, Next.js, Vue, Svelte)
Related to Missing scroll depth tracking #1