Forked from wvpv/sfmc-ampscript-micrositebaseurl-3.js
Created
January 27, 2017 05:20
-
-
Save katydorjee/e2a1a3fe9fcf6dbe1d700bfdb1ed85b3 to your computer and use it in GitHub Desktop.
SFMC AMPScript MicrositeBaseURL() 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" runat="server"> | |
Platform.Load("core", "1.1.1"); | |
</script>%%[set @subscriberMID = RequestParameter("subscriberMID")]%%<script type="text/javascript" runat="server"> | |
if (Variable.GetValue("@subscriberMID") != "") { | |
memberid = Variable.GetValue("@subscriberMID"); | |
} else { | |
memberid = Attribute.GetValue("memberid"); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment