Skip to main content

How to push events and order total value to your GA4

  1. Create a GTM and install it in the widget in Widget Settings -> Tracking and Analytics

  2. Create Data Layer Variables in GTM:

    1. In Google Tag Manager, navigate to "Variables" and create a new "Data Layer Variable".
      ​

    2. Set the Data Layer Variable Name to total_price
      ​

    3. Same way create additional variables for currency and transaction_id

      1. For currency set Data Layer Variable Name to currency

      2. For transaction_id set Data Layer Variable Name to company_order_id

  3. Then go to Triggers and create a trigger that fires when Order is placed

    1. Select "Custom event" type
      ​

    2. Specify event name as order_status_change
      ​

  4. Now go to Tags and create a new tag

    1. Select Google Analytics -> GA4 event
      ​


      ​

    2. Specify your GA Measurement ID and event name (e.g. order_submit).

      1. Then expand Event Parameters and add new parameters: value , currency, transaction_id and assign values to newly created data layer varibles we created in the step 2.
        ​


        ​

    3. Then bind a trigger to this Tag
      ​

    4. Select a Trigger we created in the step 3.
      ​


      ​

  5. Submit and Publish changes
    ​
    ​

  6. Go to your Google Analytics and mark the newly created event as Conversion.
    ​


    ​

    Note that there's a delay in data processing so you might need to wait a couple of days to see this event in the list of events.
    ​

  7. After the new event is marked as a conversion you'll see the revenue data reflected in your Monetization reports.

Did this answer your question?