Skip to content

okode/cordova-plugin-salesforce-dmp

Repository files navigation

Cordova Salesforce DMP Plugin

<okode>

Cordova plugin for Salesforce DMP.

Installing

Add to your package.json:

devDependencies: {
  ...
  "cordova-plugin-dmp": "0.0.3",
  ...
}
"cordova": {
  "plugins": {
    ...
    "cordova-plugin-dmp": {}
    ...
  }
}

Import

import { DMPPlugin } from 'cordova-plugin-salesforce-dmp';
declare var DMP: DMPPlugin;

Usage

DMP.initialize({ apiKey: string })
DMP.sendRequests(params: { policyRegime: string, consent: { [index: string]: number; }, identity?: { [index: string]: string; }})
DMP.getSegments()
DMP.trackPage(params: { email: string, logged: boolean, cod_ric: string, path: string, type: string })
DMP.fireEvent(params: { action: string, category: string, label: string })

License

The project is MIT licensed: MIT.