Retrieves a value from a URL query string. Use this function to populate a landing page with information about the user or their activities.

The QueryParameter() function has one parameter:

  • queryParameter (string): Required. The name of the URL query parameter to retrieve the value of.

To use this function, pass it the name of the query parameter that contains the value you want to retrieve.

For example, an email can contain a link to a landing page that uses the CloudPagesUrl() function to include parameters, as in this example.

You can use this information to personalize the landing page. This example shows how to retrieve the values of the firstName and itemName parameters and use them in a landing page.

The rendered HTML contains the content of the specified query parameters.