Hey there,
Thanks for your question! We unfortunately do not support custom attributes inside the editor itself, but there is a workarround you can use 🙂
You can give a button a custom ID, then with JavaScript you wait until Buttonizer is loaded and then add the attribute through JavaScript. I'll write an example below 🙂
For example, give a button an ID attribute through the Buttonizer editor, something like: the_unique_button_id
.
Then add the following code to your website:
window.addEventListener("buttonizer_initialized", () => {
document.querySelector("#the_unique_button_id").setAttribute("data-aen", "myvalue");
});
If you have more buttons where you want to give them additional attributes, you can duplicate the querySelector:
window.addEventListener("buttonizer_initialized", () => {
document.querySelector("#the_unique_button_id").setAttribute("data-aen", "myvalue");
document.querySelector("#another_button").setAttribute("data-aen", "second value");
document.querySelector("#third_button").setAttribute("data-aen", "third value");
});
Let me know if this helps!