MicrositeUrl()

Returns a microsite URL with an encrypted query string. Use this function to link to microsites created in Classic Content from emails. Because this function encrypts your query parameters, you can use it to avoid submitting customer data as plain text.

The MicrositeUrl() function has three parameters:

  • pageId (number): Required. The page identifier of a CloudPages landing page.
  • parameterName1 (string): The name of the item that you want to include as an encrypted query parameter.
  • parameterValue2 (string): 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.

These names are reserved and can’t be used as query parameter names:

  • l
  • v
  • s
  • d
  • m
  • n

To use this function, pass it the ID of a microsite created in Classic Content.

This example uses additional parameters:

To add query strings to the URL, use Concat() to place an ampersand after the URL.

If you have a non-Enterprise 2.0 account, use the microsite_base_url instead: