open-index/open-npm huggingface dataset:
npm package: @studyportals/vwo-manager
Description: A wrapper for custom VWO triggering and custom VWO tracking
Author: SPXMinions
Latest version: 1.0.3
Deprecated: this package has been deprecated

# VWO Manager

Manual trigger VWO campaigns and makes it possible to track custom goals inside VWO.

## Installation:

```node
npm install --save @studyportals/vwo-manager
```

## Example:

_Javascript_
```javascript

//import module
import {VWOManager} from "@studyportals/vwo-manager";

const campaignId = 1;
const goalsToTrack = [1,2,3];

//init the class
const vwoManager = new VWOManager(campaignId, goalsToTrack);

//Trigger campaign
vwoManager.tiggerCampaign();

//Track a custom goal conversion
let goalToTrack = 1;
vwoManager.trackGoal(goalToTrack);
```