-
Notifications
You must be signed in to change notification settings - Fork 133
support groupIdentify calls #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
var baseSetToString = !_defineProperty ? identity_1 : function(func, string) { | ||
return _defineProperty(func, 'toString', { | ||
var baseSetToString = !_defineProperty$1 ? identity_1 : function(func, string) { | ||
return _defineProperty$1(func, 'toString', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this $1 mean?
groups[groupType] = groupName; | ||
var identify = new Identify().set(groupType, groupName); | ||
this._logEvent(constants.IDENTIFY_EVENT, null, null, identify.userPropertiesOperations, groups, null, null); | ||
this._logEvent(constants.IDENTIFY_EVENT, null, null, identify.userPropertiesOperations, groups, null, null, null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need a GROUP_IDENTIFY_EVENT? and groupPropertiesOpeations?
if (identify_obj instanceof Identify) { | ||
// only send if there are operations | ||
if (Object.keys(identify_obj.userPropertiesOperations).length > 0) { | ||
return this._logEvent(constants.GROUP_IDENTIFY_EVENT, null, null, null, _defineProperty({}, group_type, group_name), identify_obj.userPropertiesOperations, null, opt_callback); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems we have the GROUP_IDENTIFY_EVENT, do we need groupPropertiesOpeations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm in terms of the event format.
Adding support for group identify calls. We can reuse
identify.js
objects to capture the operations. Generates an event that is very similar to$identify
events. Currently enforcing only 1group_name
value pergroupIdentify