@elbwalker/destination-web-piwikpro
Version:
Piwik PRO destination for walkerOS
65 lines (51 loc) • 1.86 kB
Markdown
Made to be used with
[](https://www.npmjs.com/package/@elbwalker/walker.js) from
[](https://github.com/elbwalker/walkerOS).
More detailed information and examples can be found in the
[](https://www.elbwalker.com/docs/destinations/piwikpro).
Start by setting up the config for the destination. Optional fields as comments.
Destinations can be used via node or directly in the browser.
Learn more about the
[](https://www.elbwalker.com/docs/destinations/) in general and read
the detailed
[](https://www.elbwalker.com/docs/destinations/piwikpro#configuration).
```js
const config = {
custom: {
appId: 'XXX-XXX-XXX-XXX-XXX', // Id of the site
// linkTracking: false, // Disable download and outlink tracking
// pageview: false, // Disable default pageview events
url: 'https://your_account_name.piwik.pro/', // Same address as the login
},
mapping: {
entity: {
action: {
custom: {
// CustomEvent
goalId: 'xxx-xxx-...', // Count the event as a goal
goalValue: '', // Property to be used as goal value
name: '', // Renaming the event
value: '', // Property to be used for the value
},
},
},
},
};
```
```sh
npm i --save @elbwalker/destination-web-piwikpro
```
```ts
import { elb } from '@elbwalker/walker.js';
import destinationPiwikPro from '@elbwalker/destination-web-piwikpro';
elb('walker destination', destinationPiwikPro, config);
```
Feel free to contribute by submitting an
[](https://github.com/elbwalker/walkerOS/issues), starting a
[](https://github.com/elbwalker/walkerOS/discussions) or getting in
[](https://calendly.com/elb-alexander/30min).