3

I trie to develop my cloudpages on an external server and load the extrnal site via AMPscript into the Marketing Cloud Cloud Page.

when I try it this way:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1
</head>
%%=TreatAsContent(HttpGet(Concat("http://nx-mcloud.bplaced.net/AMPScript/test.html",GUID())))=%%
<body>
</body>
</html>

it does not work. Could anyone help me with that? When I try to load the cloud page there is always an internal error.

Thx

  • 1
    why are you concatting your webpage with a GUID at the end? This is likely producing an invalid url which is why you are getting the error – Gortonington May 3 '18 at 16:20
  • Yeah, that was the mistake – Sebastian Hansen May 14 '18 at 14:49
3

Try the following code, keep the output in Body tags and also modify your external web page to be able to print the right data.

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1
</head>
<body>
%%=TreatAsContent(HttpGet("http://nx-mcloud.bplaced.net/AMPScript/test.html"))=%%
</body>
</html>

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.