1

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.

4

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

<script type="javascript" runat="server">
Platform.Load("core","1"); 
var ip = Platform.Request.ClientIP(); 
Variable.SetValue("ip",ip);
</script>
%%=v(@ip)=%%

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.