Seeds
What events can I send via Measurement Protocol?
You can send any GA4 event via Measurement Protocol: standard ecommerce events (purchase, add_to_cart), recommended events (sign_up, login), and custom events with any name. The...
Does Measurement Protocol work with ecommerce?
Yes, fully. Send purchase events with complete ecommerce data: transaction_id, value, currency, tax, shipping, and items array with product details. GA4 ecommerce reports will show...
Can I backfill historical data with MP?
Limited. GA4 accepts events with timestamps up to 72 hours in the past. Older events are rejected. For historical data import, use GA4's Data Import...
What's the difference between GA4 MP and UA MP?
GA4 Measurement Protocol uses a different endpoint, authentication, and payload structure than Universal Analytics. GA4 requires an API secret and uses JSON payloads. UA used...
How do I get GA4 API credentials?
In GA4 Admin, go to Data Streams, select your web stream, then find Measurement Protocol API secrets. Click 'Create' to generate an API secret. You...
How do I debug Measurement Protocol?
Use the debug endpoint (/debug/mp/collect) to get validation errors before sending real events. Add debug_mode parameter to see events in GA4 DebugView. Log all request/response...
How do I connect server events to user sessions?
Capture the client_id from the _ga cookie on the client side and pass it to your server. Include this client_id in your Measurement Protocol request....
When should I use server-side GA4?
Use server-side (Measurement Protocol) when client-side data loss is significant (>20%), for critical ecommerce tracking, when Safari/iOS traffic is high, or when ad blocker usage...
How do I test GA4 tracking?
Use DebugView for real-time event testing, check Real-Time reports for immediate verification, make test purchases to verify ecommerce, and compare test conversion count to actual....
Why is GA4 showing no data?
Common causes: wrong Measurement ID, data stream not active, gtag.js not loading, internal traffic filter enabled, or timezone mismatch. Check Real-Time report first—if nothing appears...
How do I use GA4 DebugView?
Enable debug_mode in gtag config or add ?_d=1 to URL parameters. Then go to GA4 → Configure → DebugView to see events fire in real-time....
How do I fix GA4 ecommerce tracking?
Ensure purchase event includes required fields: transaction_id (unique per order), value, currency, and items array. Transaction_id is critical—without it, events are rejected. Check Ecommerce Purchases...