Skip to content

Commit b7560eb

Browse files
committed
Update README.md
1 parent 0303aca commit b7560eb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ If your app is an app which uses web views you would like to use adjust tracking
2222
* [In-App Purchase verification](#iap-verification)
2323
* [Callback parameters](#callback-parameters)
2424
* [Partner parameters](#partner-parameters)
25+
* [Callback identifier](#callback-id)
2526
* [Session parameters](#session-parameters)
2627
* [Session callback parameters](#session-callback-parameters)
2728
* [Session partner parameters](#session-partner-parameters)
@@ -373,6 +374,19 @@ ADJEvent *event = [ADJEvent eventWithEventToken:@"abc123"];
373374

374375
You can read more about special partners and these integrations in our [guide to special partners][special-partners].
375376

377+
### <a id="callback-id"></a>Callback identifier
378+
379+
You can also add custom string identifier to each event you want to track. This identifier will later be reported in event success and/or event failure callbacks to enable you to keep track on which event was successfully tracked or not. You can set this identifier by calling the `setCallbackId` method on your `ADJEvent` instance:
380+
381+
382+
```objc
383+
ADJEvent *event = [ADJEvent eventWithEventToken:@"abc123"];
384+
385+
[event setCallbackId:@"Your-Custom-Id"];
386+
387+
[Adjust trackEvent:event];
388+
```
389+
376390
### <a id="session-parameters"></a>Session parameters
377391
378392
Some parameters are saved to be sent in every event and session of the Adjust SDK. Once you have added any of these parameters, you don't need to add them every time, since they will be saved locally. If you add the same parameter twice, there will be no effect.
@@ -525,6 +539,7 @@ The delegate functions will be called after the SDK tries to send a package to t
525539
Both event response data objects contain:
526540

527541
- `NSString eventToken` the event token, if the package tracked was an event.
542+
- `NSString callbackid` the custom defined callback ID set on event object.
528543

529544
If any value is unavailable, it will default to `nil`.
530545

0 commit comments

Comments
 (0)