Git Product home page Git Product logo

countly-sdk-nodejs's Introduction

Codacy Badge npm version Inline docs

Countly NodeJS SDK

This repository contains the Countly NodeJS SDK, which can be integrated into NodeJS running device or server. The Countly NodeJS SDK is intended to be used with Countly Community Edition or Countly Enterprise Edition.

What is Countly?

Countly is a product analytics solution and innovation enabler that helps teams track product performance and customer journey and behavior across mobile, web, and desktop applications. Ensuring privacy by design, Countly allows you to innovate and enhance your products to provide personalized and customized customer experiences, and meet key business and revenue goals.

Track, measure, and take action - all without leaving Countly.

Integrating Countly SDK in your projects

For a detailed description on how to use this SDK check out our documentation.

For information about how to add the SDK to your project, please check this section of the documentation.

You can reach minimal integration info for your project from this section of the documentation.

For an example integration of this SDK, you can have a look here.

This SDK supports the following features:

Security

Security is very important to us. If you discover any issue regarding security, please disclose the information responsibly by sending an email to [email protected] and not by creating a GitHub issue.

Badges

If you like Countly, why not use one of our badges and give a link back to us so others know about this wonderful platform?

Countly - Product Analytics

<a href="https://count.ly/f/badge" rel="nofollow"><img style="width:145px;height:60px" src="https://count.ly/badges/dark.svg" alt="Countly - Product Analytics" /></a>

Countly - Product Analytics

<a href="https://count.ly/f/badge" rel="nofollow"><img style="width:145px;height:60px" src="https://count.ly/badges/light.svg" alt="Countly - Product Analytics" /></a>

How can I help you with your efforts?

Glad you asked! For community support, feature requests, and engaging with the Countly Community, please join us at our Discord Server. We're excited to have you there!

Also, we are on Twitter and LinkedIn if you would like to keep up with Countly related updates.

countly-sdk-nodejs's People

Contributors

ar2rsawseen avatar arturskadikis avatar dependabot-preview[bot] avatar gorkem-cetin avatar itsiprikshit avatar milahu avatar turtledreams avatar yaoyasong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

countly-sdk-nodejs's Issues

App crashes when there is no internet connection

There's no error handling around the http.request functionality, so any connection error causes an uncaught exception.

Wed, 12 Sep 2018 11:52:27 GMT uncaughtException: getaddrinfo ENOTFOUND analytics.squarecat.io analytics.squarecat.io:443
Error: getaddrinfo ENOTFOUND analytics.squarecat.io analytics.squarecat.io:443
    at errnoException (dns.js:50:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
Wed, 12 Sep 2018 11:52:27 GMT uncaughtException: socket hang up
Error: socket hang up
    at createHangUpError (_http_client.js:331:15)
    at TLSSocket.socketCloseListener (_http_client.js:363:23)
    at emitOne (events.js:121:20)
    at TLSSocket.emit (events.js:211:7)
    at _handle.close (net.js:554:12)
    at TCP.done [as _onclose] (_tls_wrap.js:356:7)

This causes the node app to crash.

[ERROR] add_bulk_request, incorrect timestamp format

Hi,

I'm trying to do this from the examples (http://countly.github.io/countly-sdk-nodejs/module-lib_countly-bulk.html):

var server = new CountlyBulk({
app_key: "{YOUR-API-KEY}",
url: "https://api_host/",
debug: true
});
server.add_bulk_request([{app_key:"somekey", devide_id:"someid", begin_session:1}, {app_key:"somekey", devide_id:"someid", events:"[{'key':'val','count':1}]"}]);

But I get this error: [ERROR] add_bulk_request, incorrect timestamp format

Custom _os and _os_version metrics not taken into account

Custom _os and _os_version properties specified inside the init options are not taken into account when sending analytics.

For example, the values specified in init

Countly.init({
    metrics: {
        _os: '<my custom os>',
        _os_version: '<my custom os version>'
    }
});

Gets replaced as follows when analytics are sent:

  • _os gets replaced by node's os.type()
  • _os_version gets replaced by node's os.release()

Can't resolve 'cluster' in '/projecta/node_modules/countly-sdk-nodejs/lib'

Getting this error

ERROR in ./node_modules/countly-sdk-nodejs/lib/countly.js
Module not found: Error: Can't resolve 'cluster' in '/projecta/node_modules/countly-sdk-nodejs/lib'
 @ ./node_modules/countly-sdk-nodejs/lib/countly.js 28:14-32
 @ ./static/js/lib/countly.js
 @ ./static/js/app.js
 @ ./static/js/index.js
 @ multi (webpack)-dev-server/client?http://127.0.0.1:8080 webpack/hot/dev-server babel-polyfill react-hot-loader/patch webpack-dev-server/client?http://127.0.0.1:8080 webpack/hot/only-dev-server ./js/index.js

send event by other user details

Can i send events with other user details such as a custom field?

because i can not use device_id that is mentioned in below

And via SDK you can just create multiple users like this.(countly-sdk-nodejs/examples//bulk_import_example.js)

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.