1.0.1 • Published 5 years ago
caymland-tracking v1.0.1
Installation
npm install --save caymland-trackingUsage
Initializing Caymland module:
import caymland from 'caymland-tracking';
caymland.initialize('https://instance.caymland.app/mtc.js');Send page views:
caymland.pageView({custom: 'options'});API
caymland.initialize(mtcPath)
| Value | Type | Required | Notes |
|---|---|---|---|
| mtcPath | String | Yes | The path to your mtc.js file. |
caymland.pageView(options)
| Value | Type | Required | Notes |
|---|---|---|---|
| options | Object | No | Object with custom values that you wish to pass to your caymland software on each page view. |