Hi Shopify team,
I’m working with a Customer Account UI extension and I’ve run into a limitation around understanding where my extension is placed on the page.
Currently, from the extension API, I can access extension.target (for example, customer-account.profile.block.render, customer-account.order-status.announcement.render, etc.). However, I can’t see which placement within that target has been chosen in the editor.
For many use cases, I don’t need detailed layout information or ordering. I primarily need a simple, stable placement name that reflects where the merchant has put the extension within the UI.
Core request:
Add an API that exposes a placement identifier, for example:
extension.placement = {
name: string; // e.g. PAGE_TITLE, ORDER_STATUS1, ORDER_STATUS2, ORDER_STATUS3, ORDER_SUMMARY1, ORDER_SUMMARY2, ORDER_SUMMARY3 or another stable placement name
};
Even a single string like extension.placementName would be enough for me to:
- Adjust layout or content density based on where the extension appears
- Hide or show certain UI elements depending on whether I’m in a primary vs. secondary area
- Provide better analytics on how the extension is being used across placements
Optional enhancement (nice to have, not required):
In the future, it could be helpful if this placement object also included optional details like order/position within the container, but that’s secondary. The main need is just a reliable placement name.
If there’s already a way to access this information, I’d really appreciate a pointer to the docs. Otherwise, I’d love for this to be considered in a future Customer Account UI Extensions update.
Thanks!