Skip to main content

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

  1. Go to SettingsIntegrationsGoogle Analytics
  2. Enter your GA4 Measurement ID (format: G-XXXXXXXXXX)
  3. Save settings

2. Verify tracking

Check GA4 DebugView to confirm events are arriving:

  1. Open GA4 → Configure → DebugView
  2. Visit your store
  3. Look for edrone events

Event mapping

edrone EventGA4 Event
product_viewview_item
add_to_cartadd_to_cart
orderpurchase
subscribesign_up

Custom dimensions

To track edrone-specific data, create custom dimensions in GA4:

  1. Go to GA4 → Configure → Custom definitions
  2. Create dimensions for:
    • edrone_subscriber_status
    • edrone_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'
}]
});