JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 33
  • Score
    100M100P100Q45808F
  • License MIT

A js library to embed the Tweeker embed script

Package Exports

  • tweeker-js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tweeker-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tweeker-js

Simple a/b and multivariate testing in Javascript ES6.

A simple javascript library to embed Tweeker on your site.

If you're using React, check out our React specific library.

Installation

To use, first sign up for an account on https://tweeker.io

Then in your javascript install the module using npm or yarn.

npm install tweeker-js or yarn add tweeker-js

Usage

import { embedTweeker } from "tweeker-js"

Finally, make sure this function runs on every page of your app:

embedTweeker({
  businessId: YOUR_BUSINESS_ID,
  embedVersion: YOUR_EMBED_VERSION
})

Also make sure you replace the arguments YOUR_BUSINESS_ID and YOUR_EMBED_VERSION with your accounts values. You can get these values at https://app.tweeker.io/embed