Skip to content
Home » Blog » How do I get the event add_shipping_info to show in GA4 from Shopify?

How do I get the event add_shipping_info to show in GA4 from Shopify?

To get the “add_shipping_info” event to show in GA4 from Shopify, you can use the following Shopify script:

dataLayer.push({
  'event': 'add_shipping_info',
  'ecommerce': {
    'shipping_tier': '{{shipping_method.title}}',
    'shipping': {
      'name': '{{shipping_address.name}}',
      'address': {
        'city': '{{shipping_address.city}}',
        'state': '{{shipping_address.province_code}}',
        'country': '{{shipping_address.country_code}}'
      }
    }
  }
});

This script fires the “add_shipping_info” event with the required parameters to track the shipping information in GA4. The “ecommerce” object contains the shipping object with the “shipping_tier” parameter set to the title of the shipping method selected by the customer. The “shipping” object contains the name and address information of the shipping destination, including the city, state, and country.

To ensure that the event is properly firing, you can use the Google Tag Assistant browser extension to verify that the “add_shipping_info” event is being sent to GA4 when a customer adds shipping information during checkout.

Once the “add_shipping_info” event is properly firing and tracked in GA4, you can use the data to gain insights into your shipping process, including shipping method popularity and shipping destinations.