# Test event delivery

Verify consent, projections, signatures, retries, and browser/server deduplication before review.

Install a development release on a store controlled by the app organization and test the complete path before submitting for review. A development install of a third-party page-runtime pixel is refused until the release has been reviewed, so test the sandbox runtime there.

## Essential scenarios

- Confirm no browser or server event leaves Tringify before the selected consent purpose is granted.
- Confirm each selected event contains only its declared payload, context, and envelope fields, and that sandboxed pixels receive the minimised `url` and `referrer`.
- Reject an invalid signature, altered body, and stale timestamp before processing the batch.
- Return a non-2xx response once and confirm the repeated event is handled idempotently by `event_id`.
- Exercise browser-only, server-only, and dual-transport configurations used by the app.
- For dual delivery, confirm the external provider receives the same deduplication identity from both transports.
- Disable the merchant pixel and confirm browser delivery stops without disabling an independently configured server transport.
- Change a test endpoint through a new release and confirm existing installations continue using their current configuration until updated.

## Browser scenarios

- Ready race: on a slow connection, confirm events published before your frame loaded (such as `page_view`) arrive once, after `pixel-init`.
- Withdraw the pixel's consent category in the banner and confirm delivery stops at once, in this tab and in another open tab of the store; then allow it again and confirm the pixel returns.
- Use filters, sorting, pagination and variant links: confirm no new `page_view`, and that a sandboxed pixel receives `pixel-context` with the new `url`.
- Go through checkout to order confirmation: a sandboxed pixel receives `begin_checkout`, `payment_info_added` and `purchase`. A third-party page-runtime pixel must not appear on these pages.
- Reload order confirmation and confirm the replayed `purchase` keeps its `event_id`, so the destination counts it once.
- Open a checkout editor preview and confirm no pixel runs.
- Request a page as a crawler first, then as a shopper, and confirm the shopper's page still runs the pixel with the shopper's own context.
- Turn the pixel on through the app's activation, then off in **Online Store › Pixels**: the merchant's choice wins. Uninstall and reinstall the app: the pixel starts off.
- With `server_events.attribution` declared: land on a product page with your click parameter, browse, then buy. Confirm `app_attribution` reaches your frame and your server events, including `begin_checkout`, `payment_info_added` and `purchase`, that another installed app's events and pixel do not carry it, and that withdrawing Advertising stops it.

> Use provider test-event tools, test pixels, or isolated destinations. A development store event must not alter production audiences, conversion reporting, or campaign optimization.

