5.0.0 • Published 12 months ago

capacitor-piano-dmp v5.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 months ago

capacitor-piano-dmp

Piano Dmp integration for Capacitor JS. For now it supports only sendPageView events.

Install

npm install capacitor-piano-dmp
npx cap sync

Android

Add the following line to AndroidManifest.xml

    <uses-permission android:name="android.permission.READ_PHONE_STATE" />

iOS

No changes are needed on iOS

API

sendPageView(...)

sendPageView(options: PageViewOptions) => Promise<void>

Send a pageview event. Pageview events are aggregated by Piano Insight. All collected pageview events are available for analysis in Insight's web interface.

ParamType
optionsPageViewOptions

Interfaces

PageViewOptions

PropType
locationstring
userParamsRecord<string, string>
customParamsRecord<string, string>

Type Aliases

Record

Construct a type with a set of properties K of type T

{

}