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", {
"value":{
"amount": 59900,
"currency":"GBP"
},
"unique": {
"key":"d39370aa76598556da24c9ef0674aa0123541231"
}
});