We're using personalization strings in the url for the Unsubscribe links in our emails. The url links to our Preference Center microsite and includes certain values such as
MemberID, etc. We also want to add the Subscriber Key to the string but I'm not quite understanding the necessary syntax because I seem to be able to get a value for it.
Here's an example of the string are are using: https://our.microsite.com/preference/?emailaddress=%%emailaddr%%&s=%%ex2;subscriberid%%&j=%%ex2;jobid%%&mid=%%ex2;MemberID%%&l=%%ex2;listid%%&jb=%%ex2;_JobSubscriberBatchID%%&ju=%%ex2;joburlid%%&sk=%%_subscriberkey%%
Here is the code for creating the variables from the :
Set @emailAddress = [emailaddr] Set @subKey = [_subscriberkey] Set @jobID = [JobID] Set @listID = [ListID] Set @batchID = [_JobSubscriberBatchID] Set @subscriberID = [subscriberid] Set @accountMID = [MemberID]
After creating variables for the strings I get the following values:
@subKey = , @accountMID = ##########, @emailAddress = mySampleEmailAddress@gmail.com
Any ideas on why there's no value for the subscriber key? Is it the syntax in the the personalization string?