Skip to content

Commit

Permalink
change key to snake case
Browse files Browse the repository at this point in the history
  • Loading branch information
djih committed Jul 18, 2018
1 parent 4376ba0 commit 34db2d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/amplitude-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ AmplitudeClient.prototype._logEvent = function _logEvent(eventType, eventPropert

userProperties = userProperties || {};
var trackingOptions = _generateApiPropertiesTrackingConfig(this);
trackingOptions = Object.keys(trackingOptions).length > 0 ? {trackingOptions: trackingOptions} : {};
trackingOptions = Object.keys(trackingOptions).length > 0 ? {tracking_options: trackingOptions} : {};
apiProperties = merge(trackingOptions, (apiProperties || {}));
eventProperties = eventProperties || {};
groups = groups || {};
Expand Down
2 changes: 1 addition & 1 deletion test/amplitude-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ describe('setVersionName', function() {

// verify country is not sent since it matches the default value of true
assert.deepEqual(events[0].api_properties, {
trackingOptions: {
tracking_options: {
city: false,
ip_address: false,
}
Expand Down

0 comments on commit 34db2d5

Please sign in to comment.