Using Event handler with Blog Posts

Hi, I’m new to Wix and have successfully added event handler’s such as OnClick to buttons on my website.
But I would really like to be able to add an onClick event on the Heart button for blog posts or if necessary add a button to each blog that would then allow an event handler.

However, I can’t find a way to do this. Adding a button to the bottom of a blog post just allows me to enter a URL to take the user to next and there seems no way to do anything with the Heart (like) button other than displaying it or hiding it.

Does anyone know of a way to add event handlers to blog posts?

My end goal is to send logged in users details to my database when they like specific blog post.

Thanks