Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gitbook-plugin-baidu-nfer with all npm packages installed. Try it out:

var gitbookPluginBaiduNfer = require("gitbook-plugin-baidu-nfer")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gitbook-plugin-baidu-nfer v1.3.0

Baidu Analytics tracking for your gitbook.

Baidu Analytics tracking for GitBook

Dependency Status devDependency Status

A gitbook plugin to add Baidu Analytics for your book

Install Plugin

Install with this command:

npm install gitbook-plugin-baidu-nfer

or add this to your book.json config:

    "plugin": ["baidu-nfer"]

and install it using:

gitbook install ./

Use Plugin

First you should have a Baidu Analytics token, looks like c12134efe8099063bacebecb25df3b7d.

Then add your token to book.json config:

    "plugin": ["baidu-nfer"],
    "pluginsConfig": {
        "baidu-nfer": {
            "token": "YOUR TOKEN"

Finally build your book with gitbook again and you'll get what you want.


  • Ver 0.0.2 init
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free