Package
Add the MicroTargetSDK package to the application target. Pin an immutable release tag in production.
Initialize
Initialize once in AppDelegate or SceneDelegate.
import MicroTargetSDK
MicroTarget.initialize(apiKey: "mt_live_YOUR_KEY")
MicroTarget.logEvent(name: "onboarding_test", properties: [:])