Google Analytics 4
Send server-side ecommerce events to GA4 via the Measurement Protocol.
Overview
MRKT Mesh sends events to GA4 using the Measurement Protocol. This provides server-side event delivery that complements your existing gtag.js setup, ensuring you capture conversions even when browsers block tracking scripts.
Prerequisites
- A Google Analytics 4 property
- A Measurement Protocol API secret (created in GA4 Admin → Data Streams)
- Your GA4 Measurement ID (e.g., G-XXXXXXXXXX)
Setup
- Navigate to Tagging → Destinations
- Click Add Destination and select Google Analytics 4
- Enter your Measurement ID and API Secret
- Select the events to send
- Click Save & Enable
To create an API secret, go to GA4 Admin → Data Streams → your stream → Measurement Protocol API secrets.
Supported Events
| MRKT Mesh Event | GA4 Event |
|---|---|
| page_view | page_view |
| product_view | view_item |
| add_to_cart | add_to_cart |
| begin_checkout | begin_checkout |
| purchase | purchase |
| refund | refund |
Custom Dimensions
MRKT Mesh automatically sends customer enrichment data as event parameters:
customer_type— new or returningcustomer_order_count— total orders for this customercustomer_lifetime_value— cumulative spendoffline_order— true for POS transactionssales_channel— web, pos, mobile, etc.
Register these as custom dimensions in GA4 to use them in reports and audience segments.