Google Analytics conversion api

Get sales tracking into Google analytics 4

We provide a backend integration to Google Analytics 4 Measurement protocol event tracking:

Getting Started

Required Details

We need the following details to setup the GA4 purchase tracking, send these details to your account manager at Sesamy.

  • api_secret The API SECRET generated in the Google Analytics UI. To create a new secret, navigate to Admin > Data Streams > choose your stream > Measurement Protocol > Create.
  • measurement_id The measurement ID associated with a stream, found in the Google Analytics UI under Admin > Data Streams > choose your stream > Measurement ID.

Data We Send

Our backend will send the Purchase event via the API immediately after a transaction is completed. The default data payload for this event includes:

  • Currency - The currency used for the transaction
  • Value - The total value of the transaction
  • Tax - The tax amount for the transaction
  • Transaction id - This will be the checkout id generated for the purchase
  • Coupon - The coupon code if one was used
  • Items
    • item_id - The items SKU
    • item_name - The items title
    • item_variant: The name of the purchase option
    • quantity
  • client_id - Will be set to a random number unless the _ga query parameter is passed on checkout creation. This will happen automatically if checkout generation happens via Sesamy.js and our web components. You will have to pass this manually if you are using a custom implementation
Did this answer your question?
😞
😐
🤩