Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions custom-events.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ Lit.event("click-on-buy");
Sometimes just an `event name` isn't enough. If you want to add more control to your data, you can use the `metadata` field. Like this:

```javascript
Lit.event("click-on-buy", metadata: {
Lit.event("click-on-buy", {
metadata: {
"product_id": "1",
"customer_id": "customer_id_1",
"price": 1999.99,
"product_name": "Design Chair with a cute cat!"
}
});
```

Expand All @@ -92,4 +94,4 @@ Analyze all yours `custom events` on the cloud dashboard.

- Understand how users interact with your custom events by creating `Custom Funnels`.
- Analyze where your users come from and trigger an event with the `User Flow`.
- Interact with events metadata with our `Events Metadata Analyzer`.
- Interact with events metadata with our `Events Metadata Analyzer`.