Piano Dmp integration for Capacitor JS
npm install capacitor-piano-dmpPiano Dmp integration for Capacitor JS. For now it supports only sendPageView events.
``bash`
npm install capacitor-piano-dmp
npx cap sync
`xml`
iOS
No changes are needed on iOS
* sendPageView(...)
* Interfaces
* Type Aliases
`typescript`
sendPageView(options: PageViewOptions) => Promise
Send a pageview event. Pageview events are aggregated by Piano Insight. All collected pageview events are available
for analysis in Insight's web interface.
| Param | Type |
| ------------- | ----------------------------------------------------------- |
| options | PageViewOptions |
--------------------
#### PageViewOptions
| Prop | Type |
| ------------------ | --------------------------------------------------------------- |
| location | string |
| userParams | Record<string, string> |
| customParams` | Record<string, string> |
#### Record
Construct a type with a set of properties K of type T
{
[P in K]: T;
}