How to use the keen-tracking/lib/utils/json.stringify function in keen-tracking

To help you get started, we’ve selected a few keen-tracking examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keen / keen-analysis.js / lib / utils / serialize.js View on Github external
each(data, function(value, key){
    if (typeof value !== 'string') {
      value = json.stringify(value);
    }
    query.push(key + '=' + encodeURIComponent(value));
  });
  return query.join('&');

keen-tracking

Track events - custom user actions, clicks, pageviews, purchases.

MIT
Latest version published 4 years ago

Package Health Score

57 / 100
Full package analysis