diff --git a/custom-events.mdx b/custom-events.mdx index cdb287f..5888512 100644 --- a/custom-events.mdx +++ b/custom-events.mdx @@ -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!" + } }); ``` @@ -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`. \ No newline at end of file +- Interact with events metadata with our `Events Metadata Analyzer`.