Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.61 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.61 KB

VWO Amplitude integration plugin

This plugin allows to send VWO data to Amplitude using amplitude-js or @amplitude/analytics-browser.

Package Installation

For NodeJs/JavasScript SDK

# via npm
npm install vwo-amplitude-integration

# via yarn
yarn add vwo-amplitude-integration

Usage

This plugin works with Amplitude's amplitude-js and @amplitude/analytics-browser libraries.

Initialize VWOAmplitudePlugin with your amplitude Instance:

In your App.js file

import amplitude from "amplitude-js";
import VWOAmplitudePlugin from 'vwo-amplitude-integration';
amplitude.getInstance().init(API_KEY, null, {
    // optional configuration options
});

VWOAmplitudePlugin(amplitude); 

For more details around amplitude-js plugin, refer to this document

import amplitude from "@amplitude/analytics-browser";
import VWOAmplitudePlugin from 'vwo-amplitude-integration';
amplitude.init(API_KEY, null, {
    // optional configuration options
});

VWOAmplitudePlugin(amplitude); 

For more details around @amplitude/analytics-browser plugin, refer to this document

Ensure that the code is rendered and executed exclusively on the client side, as this plugin is designed for client-side functionality only.

Code of Conduct

Code of Conduct

License

Apache License, Version 2.0

Copyright 2023 Wingify Software Pvt. Ltd.