# Add app event tracker on ios app
### step 1 -> step 5: configurate finished
### steep 6
* Connect Your App Delegate and Scene Delegate
```swift=
// AppDelegate.swift
import UIKit
import FBSDKCoreKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
ApplicationDelegate.shared.application(
application,
didFinishLaunchingWithOptions: launchOptions
)
return true
}
func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
ApplicationDelegate.shared.application(
app,
open: url,
sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
annotation: options[UIApplication.OpenURLOptionsKey.annotation]
)
}
}
```

* **If you are using iOS 13 or above please add the following method to your SceneDelegate:**
``` swift=
// SceneDelegate.swift
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
guard let url = URLContexts.first?.url else {
return
}
ApplicationDelegate.shared.application(
UIApplication.shared,
open: url,
sourceApplication: nil,
annotation: [UIApplication.OpenURLOptionsKey.annotation]
)
}
```
### step 7
* add app event manually
``` swift=
/**
* For more details, please take a look at:
* developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
*/
- (void)logCompleteRegistrationEvent:(NSString *)registrationMethod {
NSDictionary *params =
@{FBSDKAppEventParameterNameRegistrationMethod : registrationMethod};
[FBSDKAppEvents
logEvent:FBSDKAppEventNameCompletedRegistration
parameters:params];
}
```
### step 8
1. Open the [App Ads Helper](https://developers.facebook.com/tools/app-ads-helper/)
2. In **Select an App**, choose your app and choose **Submit**
3. Scroll the bottom and choose **Test Event**
4. Start your app and send an event. The event should appear page
### relative links
* [**events manager**](https://www.facebook.com/events_manager2/list/app/223373631509166/overview?act=3222228924486903)
* [**ios app event doc**](https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#get-started---ios)
* [**facebook analytics**](https://www.facebook.com/analytics/321621088334205/AppEvents?since=1594857600000&until=1594857600000&range_type=TODAY&filter=eyJmaWx0ZXJfc2V0Ijp7fX0%3D&__aref_src=entity_selector&__aref_id=entity_selector&force_desktop=true&business_id=838241016352415)
* [**apps management**](https://developers.facebook.com/apps/)