GithubHelp home page GithubHelp logo

docusaurus-plugin-moesif's Introduction

docusaurus-plugin-moesif

A Docusaurus plugin for Moesif API Analytics built using moesif-browser-js.

For full documentation and configuration, see moesif-browser-js docs

The SDK automatically collects useful context from a user's device including any marketing attribution, device type, and location information and stores in the user and/or company profile in Moesif. You can add additional customer properties such as user email and company domain via the identifyUser() and identifyCompany() methods.

The below Diagram shows how both docusaurus-plugin-moesif and a Moesif server integration to track both web and API traffic made by a customer.

Diagram of Moesif API monitoring and Docusaurus architecture

How to install

  1. Install docusaurus-plugin-moesif

npm install --save docusaurus-plugin-moesif

  1. Add plugin to docusaurus.config.js
module.exports = {
  plugins: ['docusaurus-plugin-moesif'],
  themeConfig: {
    moesif: {
      applicationId: 'Your Moesif Application Id',
      // Add other Moesif options here.
    },
  },
};
  1. Test it works

Because the plugin is disabled when NODE_ENV is set to development, you'll want to create a production build:

npm run build

npm run serve

How to use

Any of the Moesif browser APIs are accessible via window.moesif. The plugin tracks page views automatically but we also recommend identifying the user like so:

window.moesif.identifyUser("12345", {
  email: "[email protected]",
  firstName: "John",
  lastName: "Doe",
  title: "Software Engineer",
  salesInfo: {
    stage: "Customer",
    lifetimeValue: 24000,
    accountOwner: "[email protected]",
  },
});

Configuration Options

For full list of configuration options, see this page.

docusaurus-plugin-moesif's People

Contributors

dgilling avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.