How to send event when I click something?
This code will record the event in the console, but it won't be sent to Tracardi by default. To trigger the event and send it to Tracardi immediately, you need to add the
fire attribute with a value of
true as a parameter to the window.tracker.track function, like this:
This will send the event to Tracardi immediately.