Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save katydorjee/e2a1a3fe9fcf6dbe1d700bfdb1ed85b3 to your computer and use it in GitHub Desktop.
Save katydorjee/e2a1a3fe9fcf6dbe1d700bfdb1ed85b3 to your computer and use it in GitHub Desktop.
SFMC AMPScript MicrositeBaseURL() 3
<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