Is it possible to add a custom query parameter to a Newsletter unsubscribing link?

HelenaG Grulichova asked on August 9, 2012 06:35

Is it possible to add a custom query parameter to a Newsletter unsubscribing link?

Correct Answer

HelenaG Grulichova answered on August 9, 2012 06:35

Yes, it is. However, instead of using the default {%UnsubscribeLink%} macro expression, we need to compose it manually, according to this example:

<a href="http://domain/cmsmodules/newsletters/cmspages/unsubscribe.aspx?subscriberguid={%SubscriberGUID%}&newsletterguid={%NewsletterGUID%}&issueguid={%IssueGUID%}&contactid={%ContactID%}?query=value&query2=value">Unsubscribe</a>

You may see the link is composed of several parts. Leaving it like this has the same result as the original macro expression. However you can add any number of custom query parameters at the end of the link and provide any additional info about the subscriber. This can be optionally processed in the code-behind of the cmsmodules/newsletters/cmspages/unsubscribe.aspx page.
 
-rm- 
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.