Petunjuk
Tutorial pada AppsFlyer
Menggunakan @capgo/capacitor-appsflyer
Capacitor plugin untuk atribusi, analitis, dan tautan dalam aplikasi AppsFlyer.
Pasang
bun add @capgo/capacitor-appsflyer
bunx cap sync
Apa yang Dibuka oleh Plugin Ini
initSDK- Use this method to initialize and start AppsFlyer SDK. This API should be called as soon as the app launched.startSDK- Gunakan metode ini untuk memulai SDK AppsFlyer, hanya pada mode mulai manual.logEvent- Logkan suatu acara dalam aplikasi.setCustomerUserId- Dengan mengatur ID pelanggan sendiri, Anda dapat mencocokkan ID unik Anda dengan ID unik AppsFlyer dan ID perangkat lainnya. ID ini tersedia dalam laporan data mentah dan dalam API Postback untuk mencocokkan dengan ID internal Anda.
Contoh Penggunaan
initSDK
Use this method to initialize and start AppsFlyer SDK. This API should be called as soon as the app launched.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.initSDK({} as AFInit);
startSDK
Panggil metode ini untuk memulai AppsFlyer SDK, hanya pada mode mulai manual.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.startSDK();
logEvent
Logkan event dalam aplikasi.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.logEvent({} as AFEvent);
setCustomerUserId
Dengan mengatur ID pelanggan sendiri, Anda dapat mencocokkan ID unik Anda dengan ID unik AppsFlyer dan ID perangkat lainnya. ID ini tersedia dalam laporan data mentah dan dalam API Postback untuk mencocokkan dengan ID internal Anda.
import { AppsFlyer } from '@capgo/capacitor-appsflyer';
await AppsFlyer.setCustomerUserId({} as AFCuid);
Referensi Lengkap
- GitHub: https://github.com/Cap-go/capacitor-appsflyer/
- Dokumen: /docs/plugins/appsflyer/