I have in place a custom preference / profile center built using a CloudPage. At the moment I am adding the link to the preference center using a AMPScript in the email template. This is what the AMPScript looks like and is entered into the 'href' attribute of the 'a' tag:


The main functionality I would like to achieve is to be able to provide link to an individual's preference cente via a link on a website. I already have in place a API connection to Marketing Cloud. I am be able to provide the respective subscriber key via the API.

My question is there a way to generate the full URL based on the AMPScript CloudPageURL somehow in Marketing Cloud without the need to send an email?



The main utility of CloudPagesURL is the encrypted string generated automatically which provides references to the email (SubscriberKey, emailName, ..).

In your case, you need to use the full URL on your page details in CloudPages (see image below) of your landing page and pass the SusbcriberKey as a parameter.

You can then get the parameter on the Landing Page side using QueryParameter or RequestParameter depending on your implementation.

enter image description here

  • thank you for your response. I am wondering if there is any mechanism within Marketing Cloud that could do the conversion of the full URL to the encrypted URL? I will need to pass the email (SubscriberKey) from the website. Or will full URL plus the actual email appended be comprehended by the cloudpage? – Quaser8000 Jun 17 at 14:18
  • The conversion is done at send time. I really doubt the existence of such mechanism. In your case, you can do an api call to MC to get the website user SubscriberKey using the email address plus any other information that's unique to that user. – Rachid Mamai Jun 17 at 14:21
  • Okay, thank you. The aspect of not doing an actual send seems to be my main stumbling block. I am currently using an api call to check both a potential email subscribers status in MC as well as if they exist in a specific data extension. I may need to look to see if it possible to do an update without the CloudPage altogether. – Quaser8000 Jun 17 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.