Subscribe to Email marketing

When a user subscribes to your email marketing list via your web app, they open the door to receiving the latest updates, promotions, and insights directly in their inbox.

Event trigger

  • The user submitted the email newsletter form successfully.

  • Add this script to the submit function of the form ‘Opt-in'.

<script>
$("#NEWSLETTER_FORM").submit(function(event) {
  var url = web_media_template.buildUrlMediaJson(
    "email", 
    "subscribed", 
    ["div_asm_qct_test_json_1"], 
    {
      extra: {
        email: "26c009c4a46c83c751fc1f71bbc6cb81062c360761e4b60c41dce7880ee61f13",
        gender: "Nam",
        identify_time:"2020-12-11 15:30:20",
        identify_event: "Subscribe Email" 
      }
    }
  );
 });
</script>

Last updated