I have a question regarding the implementation of email marketing in Funnelis and would need your assistance. Specifically, it concerns the integration of a checkbox in the checkout process:
I would like to place a checkbox directly below the checkout, which is pre-selected by default.
Customers will then receive marketing emails unless they manually uncheck the box.
The accompanying text could, for example, be: “By purchasing I accept to receive marketing emails.”
If a customer does not want to receive marketing emails, they can simply turn the checkbox off during checkout.
Could you please let me know how to technically set up and enable this checkbox?
At the moment, there is no direct option in Funnelish to add a marketing opt-in checkbox at checkout.
This would need some custom code (HTML + JS) to insert the checkbox and track the value.
The checked/unchecked value could then be passed to your email tool via integration or webhook.
Here is a very simple example:
<label>
<input type="checkbox" id="marketingOptIn" checked>
By purchasing I accept to receive marketing emails.
</label>
<script>
document.querySelector("#marketingOptIn").addEventListener("change", function(e){
if(e.target.checked){
console.log("Opted in");
// send opt-in data to your email tool here
} else {
console.log("Opted out");
// handle opt-out here
}
});
</script>
I think this is a good idea for the team to consider as a feature request too.