We’re using a custom pixel to submit conversion events to Posthog. A simplified version of our code looks like this:
analytics.subscribe("checkout_completed", (event) => {
posthog.capture('CHECKOUT_COMPLETED', {
...
})
});
Our understanding is that checkout_completed
should only ever fire when checkout is fully completed, at which point the customer is redirected to a ‘thank you’ / confirmation page.
However, in Posthog we’re seeing that the URLs recorded for these events vary significantly. For example:
-
Thank-you page
/web-pixels@73b305c4w82c1918fpb7086179m603a4010/custom/web-pixel-66584815@41/sandbox/modern/checkouts/cn/hWN1l3YOP8a4XBJ4jYQ46wPz/thank-you
-
Processing page with completion param
/web-pixels@73b305c4w82c1918fpb7086179m603a4010/custom/web-pixel-66584815@41/sandbox/modern/checkouts/cn/hWN1l2jgqVW5XYsKaVPfeLJb/processing?completed=true
-
Checkout page with no completion indicator
/web-pixels@73b305c4w82c1918fpb7086179m603a4010/custom/web-pixel-66584815@41/sandbox/modern/checkouts/cn/hWN1l2KPno5dX9FsPxkdAfeF?auto_redirect=false&edge_redirect=true&locale=en-GB&skip_shop_pay=true
Our questions are:
-
Why do the URLs for the same event vary like this? We understand these may be internal sandboxed pixel execution URLs, but we’d like to confirm the reasoning behind the differences.
-
Can you confirm that
checkout_completed
is only fired after a successful checkout? -
In particular, are there scenarios where this event might be sent on intermediate or processing pages before the customer actually reaches the thank-you page?