Passing Properties to Delighted

Passing properties to Delighted will require different strategies based on which platform you're using to distribute your surveys. Keep in mind that properties are passed with each survey request, rather than being associated with a contact over time.

In this section


Passing properties with a CSV upload (Email and SMS)

To pass properties when importing a CSV or Excel file into Delighted, include a column in your import for each property. The header of each column will be used as the property name, and the value in each row will be used as the property value for each survey request.

For example, the below import would include two properties: Collection and Purchase Experience. The response submitted by Ellie Newman will include the value “Women’s” for the Collection property and the value “Website” for the Purchase Experience property.

Back to top


Passing properties with the API (Email and SMS)

When using the API to schedule surveys, you can pass properties using the properties parameter. For more information about using the API and passing that parameter, read our article on the Delighted API or check out the API docs.

Here’s an example using cURL to pass collection and purchase experience:

curl https://api.delighted.com/v1/people.json \ -u YOUR_DELIGHTED_API_KEY: \ -d 'email=jony@appleseed.com' -d 'properties[collection]=Mens' -d 'properties[purchase_experience]=Website'

Back to top


Passing properties with the Web platform

To pass properties for Web surveys, include the properties in the JavaScript snippet you add to your site. You can pass static property values, or pass the values dynamically by grabbing those values from your site.

For full details on passing properties to your snippet, read our article about the Web platform.

Here’s an example passing orderId and shippingMethod:

delighted.survey({ email: "customer@hemandstitch.com", name: "Bailey Dixon", properties: { orderId: "123ABC", shippingMethod: "Ground" } });

Back to top


There are two ways to add properties to Links to pass over customer details or other information with your survey responses:

  • Setting properties within the platform: Any properties set on the Links platform page will be applied to every response associated with that Link. You should add properties here that apply to every response captured.
  • Appending properties to the Link: Appending properties to the end of your Link allows you to set custom properties for every response. This option is best used when passing specific respondent information like name or email.

For full information about both strategies for passing properties via Links, check out this article on the Link platform.

Back to top


Passing properties with the Kiosk platform

Properties can be passed using our Kiosk platform from within the Delighted platform. Full details on passing properties via the Kiosk platform can be found in our article about the Kiosk platform.

Below is what this looks like in your Delighted account:

Back to top

Still need help? Contact Us Contact Us