Further customise how the library will work on your website.
Set configuration options in the init method as such:
var options = {
conversionPages: ['/checkout/success'],
};
window._OPTIVO.init(options);
Option | Type | Default Value | Description |
---|---|---|---|
conversionPages | string[] | [] | What page(s) the tag should track a conversion on |
Trigger custom conversion events, set custom visitor IDs and other specific functions.
These methods can be called from the library:
window._OPTIVO.init(options);
// Record a conversion
window._OPTIVO.conversion();