Using properties of custom script witih `on click` event

Hey, last time I encountered problem. I attached widget for every page (custom script - body end). It’s needed in order to use userengage application.

On one page I’ve created I want to send event when particular button is clicked, in little text editor I’m trying to use userengage('event.my_event'); in order to sent event, but It don’t works (syntax of this code is red)

Thanks for any help

Hi,
To which element you were trying to add an onClick event? If it’s a button added from the editor, you can add it as explained here . If not, please clarify what you were trying to achieve.

Good luck,
Tal.