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

  1. Navigate to Tagging → Destinations
  2. Click Add Destination and select Google Analytics 4
  3. Enter your Measurement ID and API Secret
  4. Select the events to send
  5. Click Save & Enable
To create an API secret, go to GA4 Admin → Data Streams → your stream → Measurement Protocol API secrets.

Supported Events

MRKT Mesh EventGA4 Event
page_viewpage_view
product_viewview_item
add_to_cartadd_to_cart
begin_checkoutbegin_checkout
purchasepurchase
refundrefund

Custom Dimensions

MRKT Mesh automatically sends customer enrichment data as event parameters:

  • customer_type — new or returning
  • customer_order_count — total orders for this customer
  • customer_lifetime_value — cumulative spend
  • offline_order — true for POS transactions
  • sales_channel — web, pos, mobile, etc.

Register these as custom dimensions in GA4 to use them in reports and audience segments.