4
votes
Accepted
Get MID from CloudpagesURL()
You could pass a custom attribute in the cloudpagesurl() function and leverage that
%%=CloudPagesURL(ID, 'MID', memberid)=%%
Then on your cloudpage:
SET@VAR= QUERYPARAMETER('MID')
2
votes
Accepted
Get complete URL with parameters in SSJS/Ampscript
I'm moving my comment here as you asked.
You can combine the use of two functions:
ReferrerURL to get the base referrer's URL
QueryString to get the full query string (and yes it works even if one of ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ssjs × 945marketing-cloud × 903
ampscript × 268
automationstudio × 112
cloudpage × 111
dataextensions × 103
javascript × 76
api × 58
soap-api × 43
rest-api × 42
wsproxy × 41
marketingcloudapi × 39
json × 32
automation × 28
landing-page × 24
email × 23
journeybuilder × 22
sql × 21
content-builder × 15
httprequest × 13
httppost × 13
subscriber × 11
gtl × 10
email-template × 9
html × 9