https://shopify.dev/docs/api/web-pixels-api/standard-events
This document does not have return or refund event available, how to track these events and send to ga4 using custom events, like we send for purchase like this :-
analytics.subscribe(“checkout_completed”, (event) => {
gtag(“event”, “purchase”, {
transaction_id: event.data.checkout.order.id,
value: event.data.checkout.totalPrice.amount,
tax: event.data.checkout.totalTax,
shipping:event.data.checkout.shippingLine.price.amount,
currency: event.data.checkout.currencyCode,
coupon: event.data.checkout.token,
discount:event.data.checkout.discountApplications})
});