Skip to content

Conversation

@yosriady
Copy link
Contributor

@yosriady yosriady commented Apr 19, 2025

On hold, blocked by 2.0 spec schema changes

@linear
Copy link

linear bot commented Apr 19, 2025

P-735 SDK: Track Custom events

Related P-1058

Implement window.formo.track('foo')

Screenshot 2025-02-20 at 12.32.15.png

Allow builders to send custom events (e.g. 'signup', 'add_to_cart') with the SDK on their dapps:

  • Validate that 'action' column is in snake case:
    • custom_my_action

References

https://umami.is/docs/tracker-functions

https://docs.simpleanalytics.com/events#valid-event-names

https://hightouch.com/platform/events

https://docs.cookie3.com/cookie3-analytics/setup-your-site-or-app/setup-in-app-custom-events

Related: P-854

@yosriady
Copy link
Contributor Author

yosriady commented Apr 20, 2025

TODO: match this spec:

{
  "type": "track",
  "event": "Product Reviewed",
  "properties": {
    "review_id": "86ac1cd43",
    "product_id" : "9578257311",
    "rating" : 3.0,
    "review_body" : "OK for the price. It works but the material feels flimsy."
  }
}
{
  "type": "track",
  "messageId": "7b1e2872-4ebb-4779-b9ad-e7aa1a8eab82",
  "anonymousId": "ce576487-95f9-4262-9315-2c7942b061c8",
  "userId": "123",
  "event": "Purchase completed",
  "properties": {
    "cart_total": 24.99
  },
  "originalTimestamp": "2023-09-22T18:12:00.584Z",
  "sentAt": "2023-09-22T18:12:00.585Z"
}

@yosriady yosriady changed the base branch from main to p-1182 April 20, 2025 03:52
Base automatically changed from p-1182 to main April 21, 2025 02:21
@yosriady yosriady closed this Apr 23, 2025
@yosriady yosriady deleted the p-735 branch April 23, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants