--- title: "Initializing the Tracking Functionality" slug: "initializing-the-tracking-functionality" updated: 2024-03-20T14:12:09Z published: 2024-03-20T14:12:09Z canonical: "docs.mapp.com/initializing-the-tracking-functionality" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Initializing the Tracking Functionality To initialize the tracking functionality, you have to perform the following steps: ## Implementation Options First, import the tracking classes to be able to use them in your source code. ```plaintext import Webtrekk ``` Our tracking functionality is provided via the class "Webtrekk." It is implemented as "singleton" and has to be initialized once. We recommend doing that in the "application" method of your AppDelegate. **Example** ```plaintext import UIKit import Webtrekk @UIApplicationMain class AppDelegate: NSObject, UIApplicationDelegate {  var window: UIWindow ?   func application(     application: UIApplication,     didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject] ? ) - > Bool {     try !WebtrekkTracking.initTrack()     return true   } } ``` First, import the tracking classes to be able to use them in your source code. ```plaintext import com.webtrekk.webtrekksdk.Webtrekk; ``` Our tracking functionality is provided via the class "Webtrekk." It is implemented as "singleton" and has to be initialized once. We recommend doing that in the "onCreate" method of your MainActivity. **Example** ```plaintext private Webtrekk webtrekk; @Override protected void onCreate(Bundle savedInstanceState) {     super .onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     webtrekk = Webtrekk.getInstance();     webtrekk.initWebtrekk(getApplication()); } ``` If you have made all required settings as described in the section " [Configuring the App Tracking](/v1/docs/configuring-the-app-tracking)" the tracking functionality is now available. Initial requests can now be sent to your Mapp Intelligence account.