Hi @chenpiaw,
Right now there is no option to set cookie when action button is clicked.
I’ll add this in the upcoming versions.
For now can you please paste the below script in anywhere in your website (like theme settings) ? This will set the cookie when action button is clicked.
<script>
jQuery(document).on('load', function(){
jQuery('.ancr-btn').not('.ancr-close').click(function(){
var ancr = jQuery(this).closest('.ancr')[0].announcer;
ancr_state.set_cookie(ancr.close_cookie, 1, ancr.props.closed_duration, true);
});
});
</script>
And configure Announcement –> Settings –> Close –> Keep closed –> Yes and specify the days on how long it will be kept closed.
Thanks,
Aakash