|
/ Documentation /General/ How to Pass Variables as Query Parameters to the URL

How to Pass Variables as Query Parameters to the URL

CartFlows allows you to pass field values from the Opt-in step to the next page using URL query parameters.

This feature is helpful when you want to:

  • Personalize the content on the next step
  • Use custom code to display dynamic messages
  • Send user data to an external service (like a CRM)

How to Enable the Feature

  1. Go to CartFlows > Funnels and open your funnel.
  2. Click the gear icon on the Opt-in step to access its settings.
  3. Go to the Settings tab > Optin Settings.
  4. Enable the toggle labeled Pass Fields as URL Parameters.

Once enabled, you’ll see first_name added by default. This means the value entered in the First Name field will be passed to the next step via the URL.

Pass Fields as URL Parameters toggle button

How to Add More Fields

You can pass multiple fields by entering their names in a comma-separated format, such as:

first_name, last_name, email

This also works for custom fields created using the CartFlows Custom Field Editor (Pro feature).

Note: The opt-in page field name starts with the “billing_” prefix, such as billing_first_name or billing_last_name. When adding field names to the setting, make sure to exclude the “billing_” part. For example, use first_name instead of billing_first_name.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Free Cartflows Form - Popup

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.