Blog / Getting users for your app

TikTok Business SDK: events to send before you run app ads

Short answer

The TikTok Business SDK, also called the TikTok App Events SDK, sends app installs and actions to TikTok Events Manager. Before you add it, decide when it may send data and choose one event that matters to your business. Then use TikTok's event names, send each purchase only once, and let one SDK update SKAdNetwork on iOS. Check every event in Test Events before you release the app or run ads.

By the USposted team. Published . 7 min read.

What the SDK sends, and what you add

Logged automaticallyUnless turned off
First open
InstallApp
Every open
LaunchAPP
Opened the next day
2DRetention
Supported store purchase
Purchase
Added in your codeExamples
Account created
Registration
Setup finished
CompleteTutorial
Free trial started
StartTrial
Game level reached
AchieveLevel
Automatic events are from TikTok's iOS and Android guides[3][4], and event names are from its constants page[5]. Automatic Purchase depends on the store, product type and app settings.

With its default settings, the SDK starts logging and sending events as soon as it starts.[13] Make two decisions before you paste in the setup code: when the app may send data, and which result you want ads to bring.

Choose events that match your app

Start with one result that matters to the business and one earlier step. The table uses names from TikTok's developer guide. "Ad goal" means that TikTok's November 2026 list says App Event Optimization (AEO) supports the event.[5][6] Your campaign can have other rules, so check them in Ads Manager too.

App modelMain resultEarlier stepCheck first
Subscription with a trialStartTrial (ad goal), then Subscribe or Purchase (ad goals)Registration (ad goal)Whether automatic Purchase already covers the payment
One-time purchasePurchase (ad goal)Checkout (ad goal)Whether opening the paywall is being counted as Checkout
Game with levelsAchieveLevel (ad goal)CompleteTutorial (ad goal)Whether the level means the player understands the game
App that earns from adsCompleteTutorial (ad goal) or another useful actionRegistration, if you have accountsAd impressions and clicks are not AEO goals
Shopping appPurchase (ad goal)AddToCart (ad goal)Product ID, value and currency
App that collects leadsGenerateLead for reportingRegistration (ad goal)GenerateLead is not an AEO goal

This map is our suggestion. Use an event only if it describes what happens in your app. Do not call a newsletter form Registration just because Registration can be an ad goal.

Use the SDK's constants, because display names can differ from the code. TikTok lists "Launch App", but the event is LaunchAPP. The ad impression name in the iOS 1.7.2 source is InAppADImpr, while Android 1.7.1 uses InAppAdImpr.[8][9]

Create the app in Events Manager

For a new app, open Tools, then Events Manager. Choose Connect data source, then App, select the SDK and add your store link. If the app is already there, go to its Settings and add the SDK.[2] You need three values:

The iOS and Android apps need their own values. The SDK will not start if an App ID and a TikTok App ID do not match.[3][4] Keep the real values out of public code.

Add the iOS and Android packages

When we checked on November 30, 2026, GitHub's latest native releases were iOS 1.7.2, from August 28, and Android 1.7.1, from September 1.[8][9] Check for newer ones. The latest React Native release was 0.1.4, which uses those two native versions.[10] Unity's GitHub page still says closed beta,[11] although TikTok's Help Center lists Unity as supported.[1]

iOS

In Xcode, choose File, then Add Package Dependencies. Enter https://github.com/tiktok/tiktok-business-ios-sdk and select a version. In Build Settings, add -ObjC and -lc++ to Other Linker Flags.[3] TikTok starts the SDK from didFinishLaunchingWithOptions with this Swift code:[3]

guard let config = TikTokConfig(accessToken: "YOUR_APP_SECRET", appId: "YOUR_APP_ID", tiktokAppId: "YOUR_TIKTOK_APP_ID") else { return true }

// Add your consent and tracking settings here.

TikTokBusiness.initializeSdk(config) { success, error in /* Record the result. */ }

Android

Add google(), mavenCentral() and https://jitpack.io to your repositories. Then add the SDK package. TikTok's guide still shows 1.7.0.[4] We changed it to 1.7.1. That version's JitPack file was available when we checked, but we did not build an app with it:

implementation 'com.github.tiktok:tiktok-business-android-sdk:1.7.1'

Also add the lifecycle, billing and Install Referrer packages from the guide.[4] Its example uses Play Billing 6.1.0. You do not need to downgrade to match it. The 1.7.0 release added automatic purchase reports for version 8.[7]

Add the INTERNET and AD_ID permissions and the ProGuard rules TikTok lists. Start the SDK on the main thread of your Application class, and wait for it to finish before you use WebView.[4] Test a release build too, because code shrinking can break it.

Set consent before the first event

On iOS, call disableTracking() on the configuration before you start the SDK. After the person gives the permission you need, call setTrackingEnabled(true). On Android, use disableAutoStart() first and startTrack() later.[13] In both cases, events that were saved while you waited are sent too.[13]

The pause covers events, so it may not stop every request. In the iOS 1.7.2 source, starting the SDK still requests its settings from TikTok, even after disableTracking(). It also reports a failed start: "tracking not enabled, SDK not initialized".[18] That settings request includes the TikTok App ID, device model, system version, language and app details.[19] We read this code but did not run it. If nothing may be sent or collected before a choice, do not start the SDK until then. Check Android in the same way.

Apps aimed mainly at children must not start the SDK or send data until after an age check. Never send data from or about children to TikTok for Business.[15] The data terms also ban health, financial and other sensitive information.[16] Check event names too. A custom event such as "low_mood_day" can reveal health information on its own.

Before launch, review these settings:

Our guide to when iOS apps need the tracking prompt explains the Apple part of this decision.

Send each purchase once

Choose automatic Purchase events or your own for each payment type. Automatic events can include subscriptions, so adding your own Purchase after the same payment can count it twice.

On iOS, automatic reporting does not include StoreKit 2 consumables unless you set SKIncludeConsumableInAppPurchaseHistory to true in Info.plist. From version 1.7.2, the SDK skips StoreKit transactions that are not finished.[3] On Android, automatic reports cover Google Play Billing only. Log other payments yourself.[4] Automatic transaction reports do not include subscription reports from the App Store or Google Play servers.[7] So the Purchase total is not a full revenue report.

If you send your own Purchase, turn off the automatic one with disablePaymentTracking() on iOS or disableAutoIapTrack() on Android.[3][4] Use TikTokPurchaseEvent on iOS and TTPurchaseEvent on Android.[5] Include the value and currency. For a simple event on iOS, TikTok uses this code:[3]

let event = TikTokBaseEvent(eventName: TTEventName.registration.rawValue)

TikTokBusiness.trackTTEvent(event)

Send Registration after your server has created the account. On Android, TikTokBusinessSdk.trackTTEvent(EventName.REGISTRATION) sends the same event.[4]

Let one SDK update SKAdNetwork

The iOS SDK updates SKAdNetwork values unless you turn this off. If a partner's SDK does it, call disableSKAdNetworkSupport() before you start TikTok's SDK and do not configure a map in TikTok. If TikTok's SDK does it, upload the map, which TikTok calls a schema, to Events Manager.[12] SKAdNetwork 4 setup may need help from a TikTok representative.[12] Our comparison of AdAttributionKit vs SKAdNetwork covers the third case, another SDK, and explains the late reports.

Test a build before you run ads

Test one event from start to finish
  1. Write down the result

    Event name, value, currency and how many times it should appear.

  2. Do it once

    Use a test phone and the same build settings as your release.

  3. Check Test Events

    Compare the name, details and count.

  4. Try a failure

    Cancel, restore, go offline or refuse permission.

Our test order. Test events go to a separate place and do not affect your normal data[3][4].

TikTok recommends a QR code test for SDK 1.5.0 or later. Your test phone needs the latest TikTok app. Both apps need permission to use the advertising ID. On iOS, that means allowing tracking in Apple's prompt. In Events Manager, open Test Events and generate a QR code, which lasts 24 hours. Scan it in TikTok and authorize the phone.[3][4]

This is a minimum test sheet:

Do thisExpect thisFix this before release
Open a fresh install before any choiceNo data is sent if your plan requires a choice firstAn SDK request appears too early
Agree, then open the app againOne InstallApp in total, and a LaunchAPP for each launchAn unexpected second install
Finish registration onceOne Registration after it succeedsThe button tap sends it, or a retry sends two
Buy onceOne Purchase with the right value and currencyAn automatic event and your own both appear
Cancel a purchase and restore an old oneNo new PurchaseEither action counts as a sale
Say no to the promptThe app follows your written data planData is sent that the plan does not allow

Use a network inspector for the first and last rows. The QR code test needs permission, so it cannot test a no.

If you use manual debug mode, remove it and its detailed logs before release.[3] After release, check for real events in the Reporting tab. Test events do not appear there.[1] When the events are correct, our guide to TikTok ads for apps covers the campaign and its budget.

Questions people ask

Is the TikTok Business SDK the same as the TikTok App Events SDK?

Yes. TikTok's GitHub projects and code packages use names such as tiktok-business-ios-sdk, while the guides call the product TikTok App Events SDK. It sends app events to TikTok for Business. TikTok's data terms list the Share to TikTok SDK separately, as one of its developer tools. If you only want people to share a picture or video to TikTok, look at that tool. Use the links in TikTok's official guides to find the right project. Packages with similar names may come from other developers.

Do I need a measurement partner as well as the SDK?

TikTok says the SDK works with or without a mobile measurement partner, also called an MMP. It also supports using both. Your campaign may have other rules, so check its requirements before you choose. If you use both, list which tool sends each event and which one updates SKAdNetwork on iOS. Your MMP may already send purchases to TikTok, so ask how duplicates are removed, then make one test purchase and count the events. Two working connections do not prove that your numbers are correct.

Why did TikTok show many installs after I added the SDK?

TikTok warns that this can happen. The SDK counts an install when it first detects that the app has been opened. Someone who installed your app months ago can create an InstallApp event when they update and open the version with the SDK. TikTok suggests waiting a few days for existing users to update before you run paid campaigns, if this is a concern. Write down the release date, and do not treat the increase as growth. Compare it with new downloads in the store reports.

Can I use the TikTok SDK with Flutter, React Native or Unity?

TikTok has official guides for React Native and Unity. The React Native package uses the iOS and Android SDKs. The TikTok menu we checked has no Flutter guide, so do not assume that a Flutter package made by someone else has TikTok's support. The Unity package contains the iOS and Android SDKs and gives you a C# interface. TikTok's pages disagree about whether it is still in beta, so check that your account has access. Build a small test app for both phone systems before you plan around it.

Can I send custom events and my own event details?

You can send an event with your own name when no standard event fits. Properties, which are the details attached to an event, have stricter rules. TikTok's native guides say that custom property names are not supported and will be dropped. Use one of its standard properties and check that the value is correct in Test Events. Keep names the same on iOS and Android. A custom event reaching Events Manager does not prove that your campaign can use it as a goal. Check that separately in Ads Manager.

Sources

  1. TikTok Business Help Center: integrate the TikTok App Events SDK
  2. TikTok API for Business: getting started with the App Events SDK
  3. TikTok API for Business: iOS installation
  4. TikTok API for Business: Android installation
  5. TikTok API for Business: standard event constants and classes
  6. TikTok Business Help Center: list of supported in-app events
  7. TikTok API for Business: App Events SDK release history
  8. TikTok on GitHub: iOS SDK 1.7.2
  9. TikTok on GitHub: Android SDK 1.7.1
  10. TikTok on GitHub: React Native SDK
  11. TikTok on GitHub: Unity SDK
  12. TikTok API for Business: SKAdNetwork reporting and schema mapping
  13. TikTok API for Business: data sharing after user consent
  14. TikTok API for Business: Enhance data postback
  15. TikTok API for Business: age gating
  16. TikTok for Business: Business Products (Data) Terms
  17. TikTok on GitHub: iOS SDK 1.7.2 privacy manifest
  18. TikTok on GitHub: iOS SDK 1.7.2 startup code
  19. TikTok on GitHub: iOS SDK 1.7.2 request code

Prices and platform rules change. We checked these pages on November 30, 2026.

Keep reading

More guides

Browse by topic

Getting users for your appCloud phones vs real phonesPhone farmsUS accounts from abroadVPNs, proxies and bansClipping and multiple accountsPosting services and phone rentalInstagram for a US audienceRunning the accountsPlaybooks by businessPayout programs and eligibilityAll guides