Why migrate to Databuddy?
Databuddy offers a privacy-first alternative to Google Analytics with:- Full data ownership - Your analytics data stays in your control
- GDPR compliant - No cookie banners required for basic tracking
- Lightweight SDK - Minimal performance impact on your site
- Real-time analytics - Instant insights without sampling
- Custom events - Track exactly what matters to your business
- Flexible integrations - Connect with Stripe, webhooks, and more
Migration checklist
Before you begin, ensure you have:Access to your Google Analytics account
Admin access to your website
A Databuddy account (sign up at databuddy.cc)
Your Databuddy client ID from the dashboard
Step-by-step migration
Install the Databuddy SDK
Remove Google Analytics and install Databuddy. For Next.js apps:Add your client ID to Add the tracking component to your root layout:For other frameworks, see the installation guide.
.env.local:app/layout.tsx
Map Google Analytics events to Databuddy
Databuddy automatically tracks:
For custom events, replace
| Google Analytics | Databuddy Equivalent |
|---|---|
| Pageviews | screen_view (automatic) |
| Session duration | Tracked automatically |
| Bounce rate | is_bounce property |
| User engagement | time_on_page, scroll_depth |
gtag() calls:Set up revenue tracking
If you’re tracking ecommerce with Google Analytics, Databuddy integrates directly with payment providers:Stripe Integration:Databuddy automatically captures revenue events from Stripe webhooks. Configure your webhook in Settings → Revenue Tracking.Supported events:See the webhooks guide for payment provider setup.
- Payment succeeded/failed
- Subscription created/updated/canceled
- Refunds processed
Test your implementation
Verify tracking is working:Check browser console for tracking logs.
- Open your website in a new incognito window
- Navigate to a few pages and trigger some events
- Check the Databuddy dashboard (events appear in real-time)
- Verify custom events are appearing with correct properties
Run both tools in parallel (optional)
You can run Databuddy alongside Google Analytics during a transition period:Compare data for 1-2 weeks before removing Google Analytics.
Remove Google Analytics
Once you’re confident in Databuddy:
- Remove all
gtag()and Google Analytics scripts - Delete GA environment variables
- Remove GA cookie consent notices (Databuddy doesn’t require them)
- Archive GA data if needed for historical reference
Feature comparison
Real-time reporting
Real-time reporting
Google Analytics: Delayed reporting with up to 24-48 hour latencyDatabuddy: All events appear instantly in the dashboard
Data sampling
Data sampling
Google Analytics: Samples data on high-traffic sites (GA4 standard tier)Databuddy: Never samples data - every event is counted
User privacy
User privacy
Google Analytics: Requires cookie consent in EU/GDPR regionsDatabuddy: Privacy-first design, no cookie banners needed for basic tracking
Custom events
Custom events
Google Analytics: Limited to 500 event names, complex setupDatabuddy: Unlimited custom events with simple
track() APISession tracking
Session tracking
Google Analytics: 30-minute session timeout (configurable)Databuddy: 30-minute session timeout with automatic renewal
Revenue tracking
Revenue tracking
Google Analytics: Requires manual event implementationDatabuddy: Direct Stripe/Paddle webhook integration + manual tracking
Common migration questions
Can I import historical Google Analytics data?
Can I import historical Google Analytics data?
Databuddy focuses on forward-looking analytics. We recommend:
- Keep GA active for historical reference
- Export key reports from GA before switching
- Start fresh with Databuddy for cleaner data architecture
How do I track the same user across domains?
How do I track the same user across domains?
Use cross-domain tracking with URL parameters:The tracking IDs (
anonId and sessionId) will be preserved across domains.Does Databuddy work with Google Tag Manager?
Does Databuddy work with Google Tag Manager?
Not directly. Databuddy uses a lightweight SDK approach instead of a tag manager.Benefits:
- Smaller bundle size
- Type-safe event tracking
- Better developer experience
What about GA4's machine learning features?
What about GA4's machine learning features?
Databuddy focuses on accurate, real-time reporting rather than predictive analytics.We provide:
- Raw, unsampled data
- Custom SQL queries for analysis
- API access for building your own ML models
- Export capabilities for data science workflows
Next steps
Custom dashboards
Create custom reports and visualizations
Webhooks
Set up payment and event webhooks
API Reference
Explore the full SDK capabilities
Troubleshooting
Common issues and debugging tips