Custom Un-Subscription Use Case
The most common use case is to design a html page to capture the subscriber details and honor his/her request to unsubscribe.
FAQ:
1. How to redirect the subscriber to unsubscribe cloud page from an email link ?
%%[
SET @url=CLOUDPAGESURL(1234,'SUBSCRIBERKEY',@SUBSCRIBERKEY)
SET @type='UNSUBSCRIBE'
]%%
<a href='%%=RedirectTo(@url)=%%'>%%=v(@type)=%%</a>
Most us define personalized string for "SubscriberKey" as %%_subscriberkey%%
2. Why "Personalization Strings" in Email not working?
Personalization strings in email don't work because the subscriber is not yet present in All Subscriber.
3. Should we add the subscriber to All Subscriber prior to sending email communications?
It's not a mandate to add subscriber prior to sending emails. Subscribers are added to All subscribers automatically while sending emails.
The only issue is when you are using email personalization heavily in the email to make dynamic content based on subscriber profile.
4. What is the best practice to use personalization emails?
When you want to use personalization, leverage AmpScript LookUp function.
%%[SET @city =Lookup('PostalCode','City','PostalCode',46016)]%%
5. How to fetch the subscriber details in Cloud Page for updating the subscriber in All Subscriber?
Send the subscriberkey from email as a query parameter. Use RequestParameter() function to set the subscriberkey from the query parameter.
6. I was able to pass the subscriberkey to the cloud page, how to unsubscribe from All Subscriber?
<script runat="server">
Platform.Load("Core","1.1.1");
try{
var prox = new Script.Util.WSProxy();
SET @listid = RequestParameter("1050")
var myList = List.Init(@listid);
var subkey = RequestParameter("subkey");
var props = [
{
Name: "SubscriberKey", Value: subkey }
,
{
Name: "Reason", Value: "WSProxy one click unsubscribe" }
];
var data = prox.execute(props, "LogUnsubEvent");
Write(Stringify(data));
}
catch(e){
Write(Stringify(e));
}
</script>
Comments
Post a Comment