MicrositeURL

This function is similar to CloudPagesURL, but it’s specifically for linking to microsite pages created in Classic Content.

When an email is sent that includes a link to a microsite page with this function, a URL link is generated to the page and is appended with an encrypted query string.

This encrypted query string provides a reference to the email, which means that system personalization strings can be used on the page to retrieve values related to the sent email. And as the string is encrypted, no Subscriber information is passed in clear text.

NOTE: This function only works with microsite pages created in Classic Content. It cannot be used with microsite pages created in CloudPages.

Arguments

MicrositeURL(1,2,3,[4a,4b]...)

Ordinal Type Required Description
1 Number True Page ID of the microsite page, available from the Properties page
2 String False Parameter name included in encrypted query string
3 String or number False Parameter value included in encrypted query string
4a String False Additional parameter name (see note)
4b String or number False Additional parameter value (see note)

NOTE: Additional parameter name and value pairs can be appended as arguments.

The following URL parameter names are reserved and cannot be included as arguments:

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

Example 1

An email is sent that includes the following link to a landing page using the MicrositeURL function:

<a href="%%=MicrositeURL(876)=%%">click here to visit your landing page</a>

The following HTML is used on the microsite page. The _subscriberKey personalization string is used to retrieve a corresponding value from a Data Extension.

%%[

var @firstName
set @firstName = Lookup("Members", "First Name", "Subscriber Key", _subscriberKey)

]%%

<!DOCTYPE html>
<html>
   <body>
      <h2>Hello %%=v(@firstName)=%%,</h2>
      <p>Welcome to your personalized landing page.</p>
   </body>
</html>

Output

The MicrositeURL function returns the page URL of the microsite page appended with an encrypted query string with Subscriber data. For example: https://pages.exacttarget.com/page.aspx?QS=c76003443ff9837d7d0...

The page is personalized with a Data Extension field value, which is based on the Subscriber Key of the email sent to the Subscriber.

<!DOCTYPE html>
<html>
   <body>
      <h2>Hello Andrew,</h2>
      <p>Welcome to your personalized landing page.</p>
   </body>
</html>

Example 2


Not a subscriber? Subscribe now.