9
votes
Accepted
Developing and testing CloudPages
I use the HTTPGET() AMPScript function to pull in the content from an external web server when developing pages. Like this:
%%=TreatAsContent(HttpGet(Concat("http://example.com/your-page.html?x=",...
9
votes
Accepted
Marketing Cloud - callout from CloudPage to MC API - where to store credentials
Not a bullet proof solution, but I have implemented an increased level of security by using EncryptSymmetric and DecryptSymmetric, so you avoid storing the id and secret directly in Ampscript.
First ...
8
votes
Passing data from Email DE to Cloud Page
You have a space in the url, and you need to include name and value pairs for all parameters that you want to pass from email to a CloudPage:
%%=CloudPagesURL(ID, 'CampaignCode', @CampCode, '...
7
votes
Accepted
Pre-populating checkbox fields in a CloudPage in Marketing Cloud
@TCassa, your approach appears correct. I've taken this approach many time before. I suspect it is just something minor in your code like a syntax issue or undefined variable.
Suggestion:
I've ...
7
votes
How to use drag and drop in visualforce
Here's a simple drag-drop example written in pure Visualforce:
<apex:page controller="DragDrop">
<script>
var dragStartId;
function cancel(event) {
event.preventDefault();
...
7
votes
Accepted
Difference between RequestParameter and QueryParameter
The "query" of a page's life cycle is the stuff after the "?" character in a URL, while a request parameter is one placed in the body of the request (a "form post"). Let's look at an example of what a ...
7
votes
Accepted
Parameters passed in CloudPagesURL
I'd say most (if not all) of the Email, Email Date, Subscriber, and Sender personalization strings are included -- as are any attributes or data extension column names passed over in the send context....
7
votes
Is it possible to host a Custom JB Activity and all associated resources on a CloudPage instead of an external web server?
Not entirely. It's mostly feasible, but there are some limitations. Firstly, you'll need to purchase the installation of SSL Certs on your CloudPages from Salesforce. Secondly, you'd not be able to ...
7
votes
Accepted
Clarification - AttributeValue with CloudPagesURL
AttributeValue() only works on defined in sendable data, which is why your 3rd option still worked. The second option also worked because of this, not because of the passed values.
Your first one ...
7
votes
Accepted
Insert sales cloud record upon submit in smart capture form cloud page
You can't add SSJS into validation script, as it is executed in the front-end only. I would very much recommend moving away from Smart Capture and build a custom solution, which will use Ampscript ...
7
votes
How to prevent other people to unsubscribe on behalf of the subscriber?
You can't prevent this. Should I forward my email to you, you will indeed be able to click the Unsubscribe link, and unsubscribe on my behalf.
There are no recommended ways of preventing it, but there ...
6
votes
Using AMPscript to retrieve content from CloudPages
For cloud pages you have to pass the accepted encoding
var targetSite = "https://pub.s7.exacttarget.com/f42z3hbhzzzz"
var result = HTTP.Get(targetSite,['Accept-Encoding'],['gzip, deflate, sdch, br']);...
6
votes
Upload custom font on Marketing Cloud
I was able to get the method from @brad to work, but with a few tweaks.
First, as mentioned by @MarkP, there's no need for the %%=v(@DecodeFont)=%%);.
Second, I wasn't able to get the base64 ...
6
votes
Accepted
Using AMPscript on Landing Pages
You need to print the variable using
%%=v(@id)=%%
And not
%%[=v(@id)=]%%
6
votes
Accepted
Custom Profile Center Page hosted in Cloudpage
We built a Cloud Page set that updates the master-subscribe (AllSubscribers) and Publication Lists and passes/retrieves information from Sales Cloud as well, so this is surely possible.
Processing ...
6
votes
Linking local custom .otf font to Cloudpage
I recently helped a client with this very issue.
There are additional file type uploads that can be enabled by SFMC Support, including .svg, .otf, .eot, .ttf, .woff and .woff2.
My case number was #...
6
votes
Email address lookup
Taking a stab in the dark and assuming this is hosted on a cloud page, here is what I would do:
Have the page post to itself
Have a lookup inside AMPScript to see if the emailaddress already exists ...
6
votes
Accepted
Salesforce Marketing Cloud cloud pages favicon
It's no different than adding it to any other HTML page.
<link rel="icon" type="image/png" href="https://forums.oscommerce.com/favicon.ico"/>
This example code piece seems to work fine for ...
6
votes
Accepted
Email : Cloud Pages URL
Linking with CloudpagesURL automatically inserts the subscriberkey to the landingpage with the QS parameter that salesforce attaches (its hashed with more values but subscriberkey is in it).
The way ...
6
votes
Accepted
What does the Domain Whitelist feature in Marketing Cloud actually do?
Domain whitelist is intended to store domains to which you can perform redirects on form submission in Cloud Pages or in Smart Capture forms. Let's say you host a form on Cloud Page hosted on e.g. ...
6
votes
Accepted
Triggered Send testing - how to exclude All Subscribers?
I really wouldn't recommend this, as it is going to likely be slow - but as this is for testing only, you could reference the _Subscribers Dataview in the lookup: ROWCOUNT(LOOKUPROWS('_Subscribers','...
5
votes
Accepted
Created a landing page as code resource for CSS in Marketing cloud Cloud pages. I need to find out the page ID for this page
1. Classic Editor
Within CloudPages collection the page ID for CSS can be found by inserting the CSS resource into a landing page.
Here are the steps involved:
First create a landing page through the ...
5
votes
Accepted
Accessing subscriberkey from a Cloud Page
If you're arriving at a CloudPage from a CloudPagesURL() link in an email, then you can retrieve the _subscriberKey personalization string with AttributeValue():
%%[
var @Id, @firstName, @lastName, @...
5
votes
Accepted
AMPScript dynamic value for UpsertData function
You need to output the value using the v-Function in order to achieve that. As you are already within an AMPscript-Block, you don't need the starting and ending codes %%= and =%%. This code will work:
...
5
votes
Accepted
Is there an end of support plan for Classic Content | Microsites?
I think that means "until [you're ready to] move to CloudPages" (i.e., CloudPages aren't missing any features that I need). From the Content Builder FAQ:
What if I Want to Create Content for ...
5
votes
Accepted
Passing subscriber values from Marketing Cloud Cloud Page to Marketing Cloud Preference Cloud Page
From a functionality point of view, this is definitely approachable. You will be extensively using the CloudpageURL function to pass parameters onto cloudpages.
Step 1: (Passing values from email to ...
5
votes
Accepted
Data from Cloudpage to another Cloudpage
You can use the CloudPagesURL pass data from the email to the CloudPage and use the RequestParameter AMPscript function to retrieve the data (GET and POST method). Or you can use QueryParameter ...
5
votes
Republish http cloudpages to keep existing ID and introduce SSL
When setting up the SSL, normaly the support will ask you some questions amongst which are the questions:
Will you require references made directly to HTTP to be force
redirected to HTTPS?
...
5
votes
Accepted
Connect SMFC to Github
I have been using this approach to host my Cloud Page code in a private GitHub repo. You should create this private repo, along with a personal token, so Cloud Pages can fetch the code while this is ...
5
votes
Accepted
Problem using Subscriber | WSProxy inside a CloudPage
This behavior started occurring in a recent Marketing Cloud release. It occurs when you preview the CloudPage before publishing. It appears that Salesforce has changed the way that CloudPages are ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cloudpage × 480marketing-cloud × 460
ampscript × 233
ssjs × 91
landing-page × 41
smart-capture × 38
dataextensions × 34
cloudpagesurl × 20
journeybuilder × 16
javascript × 14
html × 14
email × 13
content-builder × 10
triggered-send × 10
form × 10
api × 8
marketing-cloud-connect × 8
email-studio × 8
unsubscribe × 8
rest-api × 7
soap-api × 6
marketingcloudapi × 5
css × 4
security × 4
automationstudio × 4