跳过主要内容
返回插件
@capgo/capacitor-contentsquare
教程
@capgo/capacitor-contentsquare

Contentsquare

在Capacitor中集成Contentsquare移动分析、同意门控、屏幕跟踪、交易和会话回放控制

指南

Contentsquare 教程

在设备上测试

下载 Capgo 应用程序,然后扫描二维码 code。

内容广场插件预览二维码 code

使用 @capgo/capacitor-contentsquare

内部原生桥接协议由 Capacitor 实现

安装

bun add @capgo/capacitor-contentsquare
bunx cap sync

此插件暴露的内容

  • optIn
  • optOut
  • sendScreenName
  • sendTransaction

示例使用

optIn

查看上游定义当前协议

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

await Contentsquare.optIn();

optOut

查看上游定义当前协议

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

await Contentsquare.optOut();

sendScreenName

查看上游定义当前协议

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

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

sendTransaction

查看上游定义当前协议

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

await Contentsquare.sendTransaction({} as TransactionItem);

完整参考

继续阅读 Using @capgo/capacitor-contentsquare

如果您正在使用 使用 @capgo/capacitor-contentsquare 来规划原生插件工作,连接它与 @capgo/capacitor-contentsquare 查看 @capgo/capacitor-contentsquare 中的实现细节 开始使用 查看开始使用中的实现细节 Capgo 插件目录 查看 Capgo 插件目录中的产品工作流程 Capacitor 插件由 Capgo 提供 为 Capacitor 插件由 Capgo 提供的实现细节, 添加或更新插件 为添加或更新插件的实现细节,