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

Contentsquare

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

指南

Contentsquare 教程

在设备上测试

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

Contentsquare插件预览二维码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);

全参考

继续使用@capgo/capacitor-contentsquare

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