How to use the segmentio-facade.Group function in segmentio-facade

To help you get started, we’ve selected a few segmentio-facade 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 segmentio / analytics.js-core / lib / analytics.js View on Github external
// grab from group again to make sure we're taking from the source
  group.identify(id, traits);

  var msg = this.normalize({
    options: options,
    traits: group.traits(),
    groupId: group.id()
  });

  // Add the initialize integrations so the server-side ones can be disabled too
  if (this.options.integrations) {
    defaults(msg.integrations, this.options.integrations);
  }

  this._invoke('group', new Group(msg));

  this.emit('group', id, traits, options);
  this._callback(fn);
  return this;
};

segmentio-facade

Providing common fields for analytics integrations

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Similar packages