Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Subscription page in Marketing Dynamics

(0) ShareShare
ReportReport
Posted on by 205

Hello, 

I like to redirect my subscription page to a new marketing page which I will ask the customer reason for unsubscribing and allow them to resubscribe if they select do not allow by mistake. 

But the field we have available is the do not email and we don't have the allow email field which people can tick and subscribe again. 

also, I only like to redirect to this page if the customer selects the do not email and not if they don't. 

Do you have any solution for that? 

Many Thanks, 
Elly

  • Elly-Farokhi Profile Picture
    Elly-Farokhi 205 on at
    RE: Subscription page in Marketing Dynamics

    Hello Colfy,

    Thank you for your help, you are amazing :)

    Many Thanks, Elly

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Subscription page in Marketing Dynamics

    Hi Elly,

    Please copy whole code below(include script tags) and paste it to the end of body tag(</body>) of source HTML code of your first marketing page.

    And set your second marketing page link to location.href.

    Regards,

    Clofly

  • Elly-Farokhi Profile Picture
    Elly-Farokhi 205 on at
    RE: Subscription page in Marketing Dynamics

    Hello Colfy,

    My customer journey starts when customer click on subscription management link on the email and they land on this page 

    Subscription_2D00_1.JPG

    Then if they select the Unsubscribe I want to redirect them to 

    1401.resubscribe-page.JPG

    in this page, they have an option to resubscribe 

    Many Thanks, 
    Elly

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Subscription page in Marketing Dynamics

    Hi Elly,

    Is the sample page a landing page?

    Just want to confirm, because subscription center could only work when contact opens it via link in marketing email.

    Regards,  

    Clofly

  • Elly-Farokhi Profile Picture
    Elly-Farokhi 205 on at
    RE: Subscription page in Marketing Dynamics

    Hello Cofly,

    here is a sample of redirect page I like to have

    resubscribe-page.JPG

  • Elly-Farokhi Profile Picture
    Elly-Farokhi 205 on at
    RE: Subscription page in Marketing Dynamics

    Hello Cofly,

    Thank you so much for sharing the great solution,

    I am not a developer and it is bit hard for me to understand where to place the code, I would appreciate if you can help me with that :)

    I have a simple subscription form on marketing dynamics and Marketing page with subscription center type.

    my goal is to redirect people to reason of unsubscribing page if they click on do not allow and let them resubscribe on same page.  

    can you help me in placing your code on right place?

    Many Thanks,

    Elly

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Subscription page in Marketing Dynamics

    Hi Elly,

    1. "Do not email" form field is associated to "Do not allow Bulk Emails" field of Contact entity, 

    "Do not allow Bulk Emails" field is a Two Options(boolean) type field, the two options are Allow(0, false) and Do Not Allow(1, true).

    If it's Allow, then "Do not email" checkbox will be unchecked.

    If it's Do Not Allow, then "Do not email" checkbox will be checked.

    These definitions are managed properties which couldn't be changed.

    So actually "do not email" and "allow email" behaviors are integrated into same checkbox.

    You can check details in Fields definition of Contact entity.

    2. We could run custom javascript on subscription center to check whether "Do not email" is checked when customers submit marketing form(It is "afterFormSubmit" event) with help of Marketing form API.

    Below is my demo, please take it as reference:

    "Do not email" is the fifth input element in my form page, so I check whether it is checked by document.getElementsByTagName("input")[4.checked function.(HTML element starts index is 0.so we need to minus 1)

    pastedimage1588925193662v1.png

    I integrated my subscription center with Bootstrap 4, so my design is:

    When customer clicked SUMMIT button,

    if "Do not email" is checked(document.getElementsByTagName("input")[4.checked equals to true) , show a modal to ask him/her why he/she leaves us, 

    customer can close modal directly by "Not interested" button or X button ,or click "Ok" to open new page in a new tab and give reason for leaving.

    pastedimage1588925758467v2.png

    You could run my sample in your portal or website, I have removed my embbed form script,

    just add your script inside div which has "content" id attribute to test.(also remember to change index number to get "Do not email" element based on your form layout)

    
    
    
        
        subscription center
        
        
        
        
    
    
    
    
        

    In addition, if you would like to redirect customers to new page in current tab instead of opening a new tab, change 

    window.open(url'_blank') to location.href(url)

    Regards,

    Clofly

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans