Skip to content

Commit d6982f7

Browse files
committed
Added devices info for all cases
1 parent 8927cc4 commit d6982f7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

amplitude-segment-snippet.min.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ var i=function(){this._q=[];return this}
77
;return this}
88
;var u=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"]
99
;for(var c=0;c<u.length;c++){r(a,u[c])}n.Revenue=a
10-
;var p=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"]
11-
;function l(e){function t(t){e[t]=function(){
10+
;var l=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","enableTracking","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId","groupIdentify","onInit","logEventWithTimestamp","logEventWithGroups","setSessionId","resetSessionId"]
11+
;function p(e){function t(t){e[t]=function(){
1212
e._q.push([t].concat(Array.prototype.slice.call(arguments,0)))}}
13-
for(var n=0;n<p.length;n++){t(p[n])}}l(n);n.getInstance=function(e){
13+
for(var n=0;n<l.length;n++){t(l[n])}}p(n);n.getInstance=function(e){
1414
e=(!e||e.length===0?"$default_instance":e).toLowerCase()
15-
;if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};l(n._iq[e])}return n._iq[e]}
15+
;if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};p(n._iq[e])}return n._iq[e]}
1616
;e.amplitude=n})(window,document);

src/amplitude-client.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,8 +1142,9 @@ AmplitudeClient.prototype._logEvent = function _logEvent(eventType, eventPropert
11421142

11431143
let osName = this._ua.browser.name;
11441144
let osVersion = this._ua.browser.major;
1145-
let deviceModel = this._ua.os.name;
1146-
let deviceManufacturer;
1145+
let deviceModel = this._ua.device.model;
1146+
let deviceManufacturer = this._ua.device.vendor;
1147+
11471148
let versionName;
11481149
let carrier;
11491150
if (BUILD_COMPAT_REACT_NATIVE) {

0 commit comments

Comments
 (0)