Skip to content

Commit

Permalink
Added devices info for all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
haoliu-amp committed Mar 2, 2020
1 parent 8927cc4 commit d6982f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions amplitude-segment-snippet.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ var i=function(){this._q=[];return this}
;return this}
;var u=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"]
;for(var c=0;c<u.length;c++){r(a,u[c])}n.Revenue=a
;var p=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"]
;function l(e){function t(t){e[t]=function(){
;var l=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","enableTracking","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"]
;function p(e){function t(t){e[t]=function(){
e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}
for(var n=0;n<p.length;n++){t(p[n])}}l(n);n.getInstance=function(e){
for(var n=0;n<l.length;n++){t(l[n])}}p(n);n.getInstance=function(e){
e=(!e||e.length===0?"$default_instance":e).toLowerCase()
;if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};l(n._iq[e])}return n._iq[e]}
;if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};p(n._iq[e])}return n._iq[e]}
;e.amplitude=n})(window,document);
5 changes: 3 additions & 2 deletions src/amplitude-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1142,8 +1142,9 @@ AmplitudeClient.prototype._logEvent = function _logEvent(eventType, eventPropert

let osName = this._ua.browser.name;
let osVersion = this._ua.browser.major;
let deviceModel = this._ua.os.name;
let deviceManufacturer;
let deviceModel = this._ua.device.model;
let deviceManufacturer = this._ua.device.vendor;

let versionName;
let carrier;
if (BUILD_COMPAT_REACT_NATIVE) {
Expand Down

0 comments on commit d6982f7

Please sign in to comment.