In Marketing Cloud, Cloud Pages, is there a way to be able to capture a visiting user's IP address, device, link clicked, and so on, via AMPScript or SSJS? I know this is possible when working with normal websites via server side code. Curious about Cloud Pages.


IP as an example is easy with SSJS, very hard with AMPScript. SSJS:

<script type="javascript" runat="server">
var ip = Platform.Request.ClientIP(); 

the full documentation for what you are looking for is here: https://developer.salesforce.com/docs/atlas.en-us.mc-programmatic-content.meta/mc-programmatic-content/ssjs_platformHTTPPropertyFunctions.htm

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.