Open mikefortney opened 6 months ago
Hello @jamesvidler and @robin-drexler is there any update on this ticket? Thanks!
@jamesvidler @robin-drexler @graeme-shopify are there any updates on this issue? Thanks!
Hey @mikefortney thanks for the patience with us getting back to this!
What you're describing here is a known issue, with unfortunately no fixed timeline for getting resolved. We are actively looking into the path to getting analytics and web pixels to work correctly on the order status targets. Once that work is complete I'll update this issue.
In the meantime it would be helpful to better understand the use case you're solving for here so we can be sure everything works as expected once this issue is resolved.
@graeme-shopify I appreciate the update. I am attempting to fire custom events from my checkout UI extension (customer interaction with my extension) on both the thank you page and order status page, but the analytics API is unavailable on the order status page, so I am unable to measure those custom events.
Roger that @mikefortney!
I have encountered the same problem, hope it can be solved as soon as possible, thank you very much! @graeme-shopify
Please list the package(s) involved in the issue, and include the version you are using
app V3.52.0, cli V3.52.0, ui-extensions V2024.4.1, ui-extensions-react V2024.4.1
Describe the bug
When attempting to publish an event from a checkout extension when rendered to the block target on the order status page
customer-account.order-status.block.render
a browser console error is reported:When clicking the code link to "OrderDetails-c2d07e54873d5d20c206.js:1:5762" this code is shown, which tells me that on the Order Status page, in the Order Details section, the analytics methods are simply defined to report this error, and nothing else.
According to the
customer-account.order-status.block.render
target documentation, the analytics API should be available: https://shopify.dev/docs/api/checkout-ui-extensions/2024-04/targets/block/customer-account-order-status-block-render#customeraccountstandardapi-propertydetail-analyticsSteps to reproduce the behavior:
extensions.targeting
section ofshopify.extension.toml
to this:yarn dev
, pressp
to open the preview console in your browsercustomer-account.order-status.block.render
link to open a checkoutExpected behavior
Analytics API methods are available on the Order Status page as described in the documentation: https://shopify.dev/docs/api/checkout-ui-extensions/2024-04/targets/block/customer-account-order-status-block-render#customeraccountstandardapi-propertydetail-analytics
Screenshots