JavaScript SDK Installation

To integrate VWO JavaScript SDK into your web application, you first need to install the SDK through a package manager for JavaScript. VWO JavaScript SDK can be installed using either npm or yarn.

There's one common repository since code is almost the same, written in JavaScript. VWO JavaScript SDK shares the code with our VWO Node.js SDK, build, and packaged differently. But the installation is the same as VWO Node.js SDK.

Requirements

πŸ“˜

Note:

Latest browsers:
Chrome >= 60.0, Firefox >= 60.0, Safari >= 10.1, Edge >= 12, Opera >= 50

Installation via npm

To integrate VWO JavaScript SDK into your web application through npm, run the following command through the command line. Make sure you run this command in the correct directory where your app resides.

npm install vwo-node-sdk --save

Installation via yarn

To integrate VWO JavaScript SDK into your web application through yarn, run the following command through the command line. Make sure you run this command in the correct directory where your app resides.

yarn add vwo-node-sdk

Installation via script tag

For client-side, VWO JavaScript SDK can also be used by directly downloading the SDK and using script tags in HTML

<script src="/path/to/vwo-javascript-sdk" />

Or can be downloaded from CDNs like jsdelivr. For eg:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vwo-javascript-sdk.min.js" />

πŸ“˜

Note

Please check the official documentation of different CDNs on how to reference the library/SDK version when using it as script's src.

Source Code

The VWO SDK code is available in various languages on GitHub. All different SDKs published under Wingify Organization on GitHub are licensed under Apache 2.0 License (c) Wingify Pvt. Ltd. 2019-2021.

Language

Repository

JavaScript

https://github.com/wingify/vwo-node-sdk


What’s Next
Did this page help you?