Returns a CloudPages URL with an encrypted query string. Use this function to link to landing pages from emails. Because this function encrypts your query parameters, you can use it to avoid submitting customer data as plain text.

The CloudPagesURL() function has three parameters:

  • pageId (number): Required. The page identifier of a CloudPages landing page.
  • parameterName1 (string): Required. The name of the item that you want to include as an encrypted query parameter.
  • parameterValue2 (string): Required. The value of the item that you want to include as an encrypted query parameter.

You can pass multiple query string parameters by appending their names and values to the end of the function. You can include as many query string parameters as necessary.

To use this function, pass it the ID of the landing page that you want to link to, and the names and values of the items that you want to include in the URL query string. You can find the landing page ID on the content details page of the landing page.

This example shows how to include multiple name-value pairs in a URL query string that links to a landing page.

If you use the Google Analytics integration to append tags to your links, we recommend that you combine this function with the RedirectTo() and Concat() functions. This example shows how to combine these functions to include dynamic attributes and Google Analytics attributes. This step is necessary to prevent the additional analytics query parameters from creating broken links.

Use the QueryParameter() or RequestParameter() functions on the landing page to retrieve the values of parameters that you pass using this function.