Skip to main content
Back to plugins
@capgo/capacitor-contentsquare
Tutorial
by github.com/Cap-go

Contentsquare

Integrate Contentsquare mobile analytics, consent gating, screen tracking, transactions, and session replay controls in Capacitor

Guide

Tutorial on Contentsquare

Using @capgo/capacitor-contentsquare

Internal native bridge contract implemented by Capacitor.

Install

bun add @capgo/capacitor-contentsquare
bunx cap sync

What This Plugin Exposes

  • optIn
  • optOut
  • sendScreenName
  • sendTransaction

Example Usage

optIn

See the upstream definitions for the current contract.

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

await Contentsquare.optIn();

optOut

See the upstream definitions for the current contract.

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

await Contentsquare.optOut();

sendScreenName

See the upstream definitions for the current contract.

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

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

sendTransaction

See the upstream definitions for the current contract.

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

await Contentsquare.sendTransaction({} as TransactionItem);

Full Reference