Google Analytics 4
Send edrone events to Google Analytics 4 for unified analytics.
Overview
When properly configured, edrone events can be tracked alongside your GA4 data for a complete view of customer behavior.
Setup
1. Enable GA4 in Mission Control
- Go to Settings → Integrations → Google Analytics
- Enter your GA4 Measurement ID (format:
G-XXXXXXXXXX) - Save settings
2. Verify tracking
Check GA4 DebugView to confirm events are arriving:
- Open GA4 → Configure → DebugView
- Visit your store
- Look for edrone events
Event mapping
| edrone Event | GA4 Event |
|---|---|
product_view | view_item |
add_to_cart | add_to_cart |
order | purchase |
subscribe | sign_up |
Custom dimensions
To track edrone-specific data, create custom dimensions in GA4:
- Go to GA4 → Configure → Custom definitions
- Create dimensions for:
edrone_subscriber_statusedrone_customer_tags
Dual tracking
If you have both edrone and direct GA4 tracking:
// edrone tracking
_edrone.action_type = 'product_view';
_edrone.product_ids = '12345';
// ... other fields
// GA4 tracking
gtag('event', 'view_item', {
items: [{
item_id: '12345',
item_name: 'Product Name'
}]
});