To start submitting tracking referrals & and submitting conversions to Usher, simply copy and paste the snippet below before the end of the Body tag.
<script src=""></script>
When installing UsherJS on your Web App or dApp, it is highly recommended to load UsherJS on every page. This way, no matter where the Campaign redirects your Referred Users, UsherJS is installed to parse the current URL immediately.
If you are producing a JS bundle using Webpack, or some alternative bundler, you can install the JS library directly into your application:
// npm
npm i
// yarn
yarn add
The library can then be imported like so:
import { Usher } from ''
const usher = Usher();
usher.parse() // parses the current website URL and saves the referral token to browser storage