> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rampkit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics forwarding

> Forward RampKit events to analytics on iOS

## Analytics forwarding

Forward events to tools like Amplitude or Segment using `forwardEvents` or in your own event callback.

Segment:

```swift theme={null}
RampKit.forwardEvents(to: .segment)
```

Amplitude (custom):

```swift theme={null}
RampKit.onEvent { event in
  Amplitude.instance().logEvent(event.type.rawValue, withEventProperties: event.properties)
}
```
