In my case, the pixel sent event page_viewed on page “thank you”. but not send the checkout_completed. Is there any solution on this?
Topic summary
Main issue: In a custom web pixel for checkout_completed, customer data (ID, first/last name) appears missing. init.data.customer fields are undefined, and names aren’t present on shippingAddress/billingAddress. clientId seen in events is an anonymous browser ID, not the Shopify customer ID.
Observations: Multiple developers report the same behavior; one notes only page_viewed fires on the thank-you page and not checkout_completed; another can’t see a customer object at all.
Official guidance: Customer ID is available at event.data.checkout.order.customer.id during checkout_completed. First/last name should be available in event.data.checkout.shippingAddress and/or event.data.checkout.billingAddress. Access to init.data.customer requires the user to be logged in on the storefront or checkout; otherwise, it will be empty.
Status and gaps: Guidance provides the correct data paths and clarifies the login requirement for init.data.customer. However, some users still report missing customer objects and the checkout_completed event not firing, with no confirmed resolution from original reporters. Discussion remains open; key unresolved items are reliability of the checkout_completed trigger and consistent population of customer fields when the buyer is not logged in.