sfmc // CloudPagesPROJECT

CloudPagesURL() with Encrypted Parameters

Pass customer context from email to a CloudPage using Salesforce encrypted query-string handling.

ampscriptcloudpagesurlencrypted paramscloudpages
Context Pack →Open Workspace →
Trust & provenancePROJECT
Evidence tierPROJECTOfficial sources1Other sources0Last verified2026-10-05

Evidence tier describes my hands-on relationship with the content. Official sources describe platform contracts/documentation. Production observations should not automatically be treated as official limits.

EvidencePROJECT
Difficultyintermediate
Verified2026-10-05
Use when

Linking an email to a preference/action page that needs recipient context.

%%[
VAR @url
SET @url = CloudPagesURL(
  12345,
  "subscriberKey", AttributeValue("_subscriberkey"),
  "source", "email"
)
]%%
<a href="%%=RedirectTo(@url)=%%">Manage preferences</a>
Why it works

CloudPagesURL produces an AES-GCM encrypted query string whose parameter values can be read on the landing page with RequestParameter/QueryParameter.

Gotchas

Encryption protects values in transit/URL, but the CloudPage must still validate required values and business state.

Salesforce documents an All Subscribers requirement when CloudPagesURL is used from SMS or push.

Sources / verification