In the checkout_shipping_info_submitted event (and all other web pixel events as well) there is a field called province inside shippingAddress in event.data. If the address entered by user is in California, I am expecting the string “California” in this field, but I am getting “CA” which is the provinceCode (this field is also present as separate field in the same shippingAddress). Is there a workaround for this? Because there is a Shopify admin api to get provinces of a country however, I am unable to call it from web pixel.
Topic summary
- Issue: In Shopify web pixel events (e.g., checkout_shipping_info_submitted), shippingAddress.province returns the province/state code (e.g., “CA”) instead of the full name, even though provinceCode is already provided separately.
- Expectation: province should contain the full name (e.g., “California”).
- Scope: Behavior observed across all web pixel events.
- Constraint: The Shopify Admin API, which could map codes to full names, cannot be called from within a web pixel context.
- Request: Looking for a workaround to obtain the full province/state name in web pixels.
- Status: No solution provided yet; question remains open.