Skip to main content
Back to plugins
@capgo/capacitor-contentsquare
Tutorial
@capgo/capacitor-contentsquare

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

Keep going from Using @capgo/capacitor-contentsquare

If you are using Using @capgo/capacitor-contentsquare to plan native plugin work, connect it with @capgo/capacitor-contentsquare for the implementation detail in @capgo/capacitor-contentsquare, Getting Started for the implementation detail in Getting Started, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, and Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins.