Third-Party Integrations
Configure third-party analytics, feedback, and marketing tools via environment variables
Third-Party Integrations
ProductReady supports integration with various third-party services for analytics, user feedback, and marketing. All integrations are configured via environment variables for security and flexibility.
Available Integrations
Analytics & Tracking
Google Analytics (GA4)
Track user behavior and page views with Google Analytics 4.
Environment Variable:
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXXSetup:
- Create a GA4 property in Google Analytics
- Copy your Measurement ID (starts with
G-) - Add to your
.env.localfile
Google Tag Manager (GTM)
Manage multiple tracking scripts and marketing tags from one place.
Environment Variable:
NEXT_PUBLIC_GTM_ID=GTM-XXXXXXXSetup:
- Create a container in Google Tag Manager
- Copy your Container ID (starts with
GTM-) - Add to your
.env.localfile
Google Search Console (GSC)
Verify your site ownership for search performance tracking.
Environment Variable:
NEXT_PUBLIC_GSC_VERIFICATION=your-verification-codeSetup:
- Go to Google Search Console
- Add your property and choose "HTML tag" verification method
- Copy the
contentvalue from the meta tag - Add to your
.env.localfile
Microsoft Clarity
Session recording and heatmaps for understanding user behavior.
Environment Variable:
NEXT_PUBLIC_CLARITY_PROJECT_ID=your-project-idSetup:
- Create a project in Microsoft Clarity
- Copy your Project ID
- Add to your
.env.localfile
User Feedback & Support
Featurebase
Collect user feedback, feature requests, and product roadmap voting.
Environment Variable:
NEXT_PUBLIC_FEATUREBASE_TOKEN=your-public-tokenSetup:
- Sign up at Featurebase
- Create a workspace
- Copy your public widget token
- Add to your
.env.localfile
Usage: The Featurebase widget will automatically appear on your application when configured.
ProductDrone
Customer support and feedback collection tool.
Environment Variable:
NEXT_PUBLIC_PRODUCTDRONE_API_KEY=your-api-keySetup:
- Sign up at ProductDrone
- Create a project
- Copy your API key
- Add to your
.env.localfile
Support Email
Configure a custom support email address displayed throughout the application.
Environment Variable:
NEXT_PUBLIC_SUPPORT_EMAIL=support@yourdomain.comEnvironment Variable Prefix
All public integrations use the NEXT_PUBLIC_ prefix, which means:
- ✅ Values are exposed to the browser
- ✅ Safe to include non-sensitive configuration
- ❌ Do NOT include secret keys or credentials
Example Configuration
Create or update your .env.local file in the root of your project:
# Analytics
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXX
NEXT_PUBLIC_GTM_ID=GTM-XXXXXXX
NEXT_PUBLIC_CLARITY_PROJECT_ID=abc123xyz
# Search Console
NEXT_PUBLIC_GSC_VERIFICATION=abc123xyz456
# User Feedback
NEXT_PUBLIC_FEATUREBASE_TOKEN=ft_xxxxxxxxxxxxx
NEXT_PUBLIC_PRODUCTDRONE_API_KEY=pd_xxxxxxxxxxxxx
# Support
NEXT_PUBLIC_SUPPORT_EMAIL=support@yourapp.comDevelopment vs Production
You can use different values for different environments:
- Development:
.env.local(not committed to git) - Production: Set in your hosting platform (Vercel, Railway, etc.)
Verification
After setting environment variables:
-
Restart your development server - Environment variables are loaded at build time
pnpm dev -
Check the browser console - Most integrations will log initialization messages
-
Verify in the source code - View page source and look for:
- GTM/GA script tags in
<head> - Featurebase/ProductDrone widgets at the bottom of
<body> - GSC verification meta tag in
<head>
- GTM/GA script tags in
Disabling Integrations
To disable an integration, simply remove or comment out its environment variable:
# NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXX # DisabledSecurity Best Practices
- Never commit
.env.localto version control - Use separate accounts for development and production
- Rotate API keys if accidentally exposed
- Review permissions for each integration
- Only enable integrations you actively use
Troubleshooting
Scripts Not Loading
Check:
- Environment variable is set correctly (including
NEXT_PUBLIC_prefix) - Development server was restarted after adding variables
- No browser extensions blocking scripts (adblockers, privacy tools)
Wrong Data Being Tracked
Solution:
- Verify you're using the correct property ID for your environment
- Use different IDs for dev, staging, and production
Widget Not Appearing
Check:
- API key is valid and active
- Widget is enabled in the service dashboard
- No CSS conflicts hiding the widget
Need Help?
If you encounter issues with third-party integrations:
- Check the service's official documentation
- Verify your API keys are valid
- Test with browser dev tools console open
- Contact the service's support team
For ProductReady-specific integration issues, please refer to the Troubleshooting Guide.