Add field and variant data to redirect URL

How to append customer field data and product variant information to redirect URLs after payment

What are redirect URL variables?

When redirecting customers after checkout, you can include customer and order data in the URL. This lets you personalize the destination page (e.g. a custom thank-you page) or prefill fields on an embedded checkout.

Path variables

Path variables add data to the URL path, directing customers to a specific page based on order information.

Example: https://example.com/thank-you/[order id]

Query variables

Query variables add data as URL parameters, which you can use on the destination page.

Example: https://example.com/thank-you?customer_name=John&customer_email=john@gmail.com

How to add variables

  1. Go to Pages and open the page you want to edit.
  2. Go to After payment → Payment confirmation.
  3. Select Redirect to URL and enter the destination URL.
  4. Click the + icon to add variables.
  5. Enter a Parameter name (e.g. customer_name), then select the data to attach (e.g. Name).
  6. Click Save.

Note

Do not use the redirect URL to store checkout data. To save customer and order information to a database, spreadsheet, or CRM, use the Zapier integration.

On this page