Tracking events
What an event looks like
Tracking an event
import AmplySDK
// Simple event, no properties
amply.track(event: "OnboardingCompleted", properties: [:])
// Event with properties
amply.track(
event: "PlanSelected",
properties: [
"plan_id": "annual_pro",
"price_usd": 49.99,
"trial_days": 7
]
)import tools.amply.sdk.Amply
// Simple event, no properties
amply.track("OnboardingCompleted")
// Event with properties
amply.track(
"PlanSelected",
mapOf(
"plan_id" to "annual_pro",
"price_usd" to 49.99,
"trial_days" to 7
)
)Property value types
Platform
Accepted property value types
Naming conventions
Dos and don'ts
When the event actually ships
Gating an event
Verifying your events land
Related
Last updated