---
title: sourceIdentifier
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uieventattribution/sourceidentifier
---

# sourceIdentifier

A number that identifies the source of the attribution.

## Declaration

```swift
var sourceIdentifier: UInt8 { get }
```

## Discussion

Discussion This property contains an integer, between 0 and 255, that identifies the source of the attribution. For example, for an ad, sourceIdentifier might contain a campaign identifier so the advertiser can measure the effectiveness of different advertising campaigns. This field corresponds to the source_id field of a web attribution.

## See Also

### Setting attribution details

- [destinationURL](uikit/uieventattribution/destinationurl.md)
- [purchaser](uikit/uieventattribution/purchaser.md)
- [reportEndpoint](uikit/uieventattribution/reportendpoint.md)
- [sourceDescription](uikit/uieventattribution/sourcedescription.md)
