Lebih cepat ke konten utama
Kembali ke plugin
@capgo/capacitor-contentsquare
Tutorial
oleh github.com/Cap-go

Contentsquare

Integrasikan analisis mobile Contentsquare, pengaturan konsent, tracking layar, transaksi, dan kontrol ulang sesi di Capacitor

Petunjuk

Tutorial di Contentsquare

Menggunakan @capgo/capacitor-contentsquare

Capacitor telah menerjemahkan kontrak bridge native internal.

Pasang

bun add @capgo/capacitor-contentsquare
bunx cap sync

Apa yang Dibuka oleh Plugin Ini

  • optIn
  • optOut
  • sendScreenName
  • sendTransaction

Contoh Penggunaan

optIn

Lihat definisi upstream untuk kontrak saat ini.

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.optIn();

optOut

Lihat definisi upstream untuk kontrak saat ini.

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.optOut();

sendScreenName

Lihat definisi upstream untuk kontrak saat ini.

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.sendScreenName({} as { name: string });

sendTransaction

Lihat definisi upstream untuk kontrak saat ini.

import { Contentsquare } from '@capgo/capacitor-contentsquare';

await Contentsquare.sendTransaction({} as TransactionItem);

Referensi Lengkap