One-click optout | Community
Skip to main content
Level 2
November 30, 2023
Solved

One-click optout

  • November 30, 2023
  • 1 reply
  • 1817 views

Hi,

 

We are looking to implement the one-click optout process to replace our current process (click > landing page > confirm Unsubcription). I can't see any option in ACS as in AJO to simply manage/trigger the optout by just clicking in the email. 

 

Any ideas on how to implement it easily? Should we track the clicks on a specific link in the email and run a recurring workflow to handle the optout update?

 

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by _Manoj_Kumar_

Hello @tristanberthon 

 

You can easily do it by writing a javascript on the landing page.

 

On load, the javascript page will check the checkbox and auto-submit the form.

 

Use this code to check the checkbox and submit the form.

 

 

function automatish(){ document.getElementById('your-checkbox-id').checked=true; //this will check the checkbox document.getElementById("your-form-id").submit(); //this will submit the form } //wait for the webpage to load and call the function window.addEventListener('DOMContentLoaded',function () { automatish(); });

 

 

1 reply

_Manoj_Kumar_
Community Advisor
_Manoj_Kumar_Community AdvisorAccepted solution
Community Advisor
November 30, 2023

Hello @tristanberthon 

 

You can easily do it by writing a javascript on the landing page.

 

On load, the javascript page will check the checkbox and auto-submit the form.

 

Use this code to check the checkbox and submit the form.

 

 

function automatish(){ document.getElementById('your-checkbox-id').checked=true; //this will check the checkbox document.getElementById("your-form-id").submit(); //this will submit the form } //wait for the webpage to load and call the function window.addEventListener('DOMContentLoaded',function () { automatish(); });

 

 

     Manoj     Find me on LinkedIn
Level 2
February 23, 2024

Hello Manoj,

 

Can you please let me know where we need to input this Java script code, I am also looking for the same one-click Opt-out better insights would be helpful.

 

Thanks in advance!

_Manoj_Kumar_
Community Advisor
Community Advisor
February 25, 2024

Hello @umav 

You can add this code anywhere on your landing page.

     Manoj     Find me on LinkedIn