# Subscriptions

Choose from 4 different opt-in types in the edrone panel.

Type Description
edrone double opt-in Double Opt-In provided by edrone.
non edrone double opt-in Double Opt-In provided by some other system or store.
single opt-in with message Single Opt-In with welcome message.
single opt-in Single Opt-In without welcome message.

Subscription - Use the subscribe action to send the information about customer subscription.

Example

<script>
$('#submit-button').on('click', function(){
    _edrone.customer_tags = 'From PopUp';
    _edrone.email = $('#input-email').val();
    _edrone.first_name = $('#input-name').val();
    _edrone.action_type = 'subscribe';
    _edrone.init();
});
</script>

  • $('#submit-button') - identifier of the subscription form button
  • $('#input-email').val(); - value of the email field
  • $('#input-name').val(); - value of the first name field