Overview
Version tracking helps you correlate user feedback with specific application releases. By tagging feedback with version information, you can:- Identify version-specific bugs - See which versions are generating the most issues
- Track regression patterns - Detect when new releases introduce problems
- Prioritize fixes - Focus on versions with the most user impact
- Correlate with deployments - Connect feedback trends with release history
- Monitor feature adoption - Track user response to new features across versions
Quick Start
Add thedata-version attribute to your feedback widget script tag:
1.2.3.
Version Format
Thedata-version parameter accepts any string value, giving you flexibility in how you track versions:
Semantic Versioning (Recommended)
Git Commit Hash
Calendar Versioning
Custom Format
Automated Version Injection
Manual version updates are error-prone. Automate version injection during your build process to ensure accuracy.- Next.js
- Vite
- Webpack
- Create React App
- Plain HTML
CI/CD Integration
Inject version information during your deployment pipeline for maximum accuracy.Using Git Commit Hash
Using Package Version + Build Number
GitHub Actions
1.2.3+build.142
Using Git Tags
GitHub Actions
Dashboard Integration
Once version tracking is configured, you can leverage it in your SeggWat dashboard:Viewing Feedback by Version
The version appears in two places:- Feedback list - Each feedback entry shows the version badge
- Feedback detail - Full version information in the detail view
Filtering by Version
Use the version filter to:- See all feedback for a specific release
- Compare feedback volume across versions
- Identify problematic releases quickly
Analytics
Version tracking enables powerful analytics:- Version distribution - Which versions users are running
- Regression detection - Spike in feedback after a release
- Feature adoption - Response to new features by version
- Support prioritization - Focus on versions with most users
Common Patterns
Multiple Environments
Track different versions for different environments:Canary Deployments
Track which version users are experiencing during canary releases:Feature Flags + Versions
Combine version tracking with feature flag metadata:Mobile App Versions
For hybrid apps (web view in native app), track both app and web versions:Best Practices
Automate version injection
Never manually update version strings. Use build tools or CI/CD to inject versions automatically from
package.json or git.Use consistent format
Stick to one version format across your organization. Semantic versioning is recommended for clarity and tool compatibility.
Include build metadata
For non-production environments, include commit hash or build number to precisely identify the deployed code.
Different keys per environment
Use separate project keys for dev, staging, and production. This keeps feedback organized and prevents cross-contamination.
Document version scheme
Document your versioning scheme in your team wiki so everyone understands what versions represent.
Monitor version distribution
Regularly check which versions users are running. Old versions may indicate deployment issues or users not updating.
Troubleshooting
Version not appearing in dashboard
Version not appearing in dashboard
Check these issues:
- Ensure
data-versionattribute is set on the script tag - Verify the version string is not empty or
undefined - Check browser DevTools Network tab to confirm version is sent in the API request
- Clear browser cache and test with a fresh feedback submission
Build replacement not working
Build replacement not working
Common causes:
- Placeholder string doesn’t match (check case sensitivity)
- Build script runs before HTML is generated
- Cache preventing new build from deploying
Version shows 'undefined' or placeholder
Version shows 'undefined' or placeholder
This means your build process isn’t replacing the placeholder:For Webpack/Vite:
- Check that
DefinePluginis configured correctly - Verify environment variables are accessible at build time
- Ensure you’re using the built files, not source files
- Verify
sedor replacement command ran successfully - Check file paths are correct (relative vs absolute)
- Confirm the file is modified before deployment
Getting git commit hash in CI/CD
Getting git commit hash in CI/CD
GitHub Actions:GitLab CI:Jenkins:
React environment variable not working
React environment variable not working
Create React App:
- Environment variables must start with
REACT_APP_ - Use
%REACT_APP_VAR%in HTML,process.env.REACT_APP_VARin JS - Restart dev server after changing
.envfiles
- Client-side variables must start with
NEXT_PUBLIC_ - Server-side variables don’t need prefix
- Import
package.jsondirectly for version number
- Environment variables must start with
VITE_ - Use
import.meta.env.VITE_VARin JS - Define custom variables in
vite.config.js
Advanced Usage
Dynamic Version Updates
Update version after initial load (useful for SPAs with client-side routing):Version from Server
For server-rendered apps, inject version server-side:Express.js
Version Matrix Testing
Track feedback across multiple version combinations:Next Steps
Widget Installation
Learn how to install the feedback widget
Customization
Customize colors, positioning, and behavior
React Integration
Version tracking in React applications
API Reference
View the feedback submission API endpoint
Need help setting up version tracking? Contact us at [email protected]. We can help integrate version tracking with your specific deployment pipeline.