TikTok Ad Attribution & Tracking

TikTok ad attribution module with ATT permission flow, standard/custom event tracking, and debug logging — bridges to TikTok Business SDK via closure injection. Includes complete integration guide with credentials setup, App Store compliance, and campaign launch workflow (iOS only)

Pro
Included in ShipSwift Pro: $89 a year, or $199 for life.
Get Pro

Copies a short instruction with your private download link. Paste it into your agent: it downloads the whole skill (the source code, the setup steps and the mistakes we already made for you) and builds the screen.

Works with

+70

What it does

Platform: iOS only — this module uses AppTrackingTransparency and device-level ad attribution APIs not available on macOS.

Using RevenueCat for IAP? Read this skill for the client-SDK fundamentals, then switch to the companion TikTok Ad Attribution with RevenueCat — it changes the purchase-tracking hook (RC purchase callback instead of StoreKit), adds the device-identifier relay (collectDeviceIdentifiers), and ships a server-side forwarder that reports renewals/refunds to TikTok Events API (true LTV, which client-only tracking can never see). This skill as-is is the complete solution for native StoreKit 2 apps.

Most iOS apps running paid ads need event tracking for attribution — knowing which ad brought each user and what they did afterward. This requires:

  1. Requesting ATT (App Tracking Transparency) permission at the right time
  2. Bridging to a tracking SDK (TikTok, Facebook, etc.) for event delivery
  3. Firing standard events (Purchase, Subscribe, ViewContent) and custom events
  4. Debugging which events were sent during development

This module provides a reusable, SDK-agnostic tracking layer. You inject your actual SDK calls via a closure, so the module works with TikTok Business SDK, Facebook SDK, or any other attribution provider — without coupling your app code to a specific vendor.

Permission timing strategy: this module uses the deferred request + retry pattern — ATT authorization is requested after the network permission dialog has been dismissed, with a 0.5s delay and retry support, complying with App Store rules. For an overview of all three permission patterns (use-site / onboarding prefetch / deferred), see Permission Prefetch Pattern.

What you get

  • ✓598 lines of source code, ready to paste
  • ✓Architecture
  • ✓Dependencies
  • ✓Implementation
  • ✓Integration Checklist
  • ✓Known Pitfalls
  • ✓App Store Submission Checklist
  • ✓Verification & Campaign Launch
tiktoktrackingATTattributionad eventsAppTrackingTransparency

More in Backend