TikTok module
Purpose
Section titled “Purpose”From JSDoc (src/module/tiktok/AffiseTiktok.ts:6):
Send TikTok event data to affise
Module constant
Section titled “Module constant”AffiseModules.TIKTOK = "TikTok"(src/module/AffiseModules.ts:1-16)
TypeScript API
Section titled “TypeScript API”AffiseTikTok (src/module/tiktok/AffiseTiktok.ts:6) implements AffiseModuleTikTokApi (src/module/tiktok/AffiseModuleTikTokApi.ts:3):
Affise.module.tikTok.sendEvent( eventName: string, properties: Record<string, any>, eventId: string,): void// AffiseModuleTikTokApi.ts:3-10
Affise.module.tikTok.hasModule(): Promise<boolean>Installation
Section titled “Installation”Since 1.7.16 the module ships as its own npm package, affise-attribution-module-tiktok (Android and iOS). Install it next to the core library:
npm install affise-attribution-libnpm install affise-attribution-module-tiktokThe package only pulls in the native dependency (com.affise:module-tiktok / AffiseModule/TikTok at 1.7.16); its JS entry point is empty, so keep importing everything from affise-attribution-lib. Rebuild the native app (and run pod install on iOS) after installing.
Platform notes
Section titled “Platform notes”pod 'AffiseModule/TikTok', '1.7.16'Android
Section titled “Android”implementation "com.affise:module-tiktok:$affise_version"