How to track a custom event

Once Bento is added to your site and firing away, you can begin tracking custom events.

bento.track("Some Action", {some_key: "Some Value"});

If you'd like to track a custom event and have that event contribute to a visitors lifetime value then please ensure that you set up the event with an amount, currency and a unique key. The unique key is used to ensure Bento does not double track an event. When we detect this we'll just discard it.

bento.track("$booking", {
"amount": 59900,
"unique": {

Ensure that the "amount" field is an integer and includes cents.