JSPM

capacitor-piano-dmp

6.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q53179F
  • License Apache-2.0

Piano Dmp integration for Capacitor JS

Package Exports

  • capacitor-piano-dmp
  • capacitor-piano-dmp/dist/esm/index.js
  • capacitor-piano-dmp/dist/plugin.cjs.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (capacitor-piano-dmp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.

Param Type
options PageViewOptions

Interfaces

PageViewOptions

Prop Type
location string
userParams Record<string, string>
customParams Record<string, string>

Type Aliases

Record

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

{ [P in K]: T; }