---
title: "init(sourceIdentifier:destinationURL:sourceDescription:purchaser:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uieventattribution/init(sourceidentifier:destinationurl:sourcedescription:purchaser:)"
---

# init(sourceIdentifier:destinationURL:sourceDescription:purchaser:)

Initializes a new event attribution object.

## Declaration

```swift
init(sourceIdentifier: UInt8, destinationURL: URL, sourceDescription: String, purchaser: String)
```

## Parameters

- `sourceIdentifier`: An 8-bit number that identifies the source of the click for attribution. Value must be between 0 and 255.
- `destinationURL`: The destination URL of the attribution.
- `sourceDescription`: A description of the source of the attribution.
- `purchaser`: A string that describes the entity that purchased the attributed content.
