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 1,000,000+ packages pre-installed, including dplus with all npm packages installed. Try it out:

var dplus = require("dplus")

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

dplus v0.0.6

nodejs sdk for dplus


dplus nodejs sdk

dplus nodejs sdk is a simple server side package for track data from nodejs environment; it doesn't depend any other npm package ;All functions is based on the nodejs initial apis;


First, install dpuls as a development dependency:

    npm install --save-dev dplus

Then, require it to your code,and init it with token

    var Dplus = require("dplus");

    var dplus = Dplus.init("YOUR TOKEN");

Then, you can use dplus object to track any events as you want;

        distinct_id:"some unique client id",
        name : "example name"


    dplus.track("get_access",function(err, result){
            throw err


  • the first parameter is the name of event (NOT NULL)
  • the second parameter is the properties you want to sent with this event (NULL)
  • the third parameter is a callback, it's called when the track is done;

License[MIT License]

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