@adstage/web-sdk 3.0.11 → 3.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -27,10 +27,11 @@ export class EventDeviceCollector {
|
|
|
27
27
|
model?: string;
|
|
28
28
|
appVersion?: string;
|
|
29
29
|
osVersion?: string;
|
|
30
|
+
deviceId?: string;
|
|
30
31
|
} {
|
|
31
32
|
// 자동 수집된 기본 정보 가져오기
|
|
32
33
|
const autoDetectedInfo = EventDeviceCollector.getAutoDetectedDeviceInfo();
|
|
33
|
-
|
|
34
|
+
|
|
34
35
|
// 사용자 제공 정보와 병합 (사용자 정보가 우선)
|
|
35
36
|
return {
|
|
36
37
|
...autoDetectedInfo,
|
|
@@ -47,6 +48,7 @@ export class EventDeviceCollector {
|
|
|
47
48
|
model?: string;
|
|
48
49
|
appVersion?: string;
|
|
49
50
|
osVersion?: string;
|
|
51
|
+
deviceId?: string;
|
|
50
52
|
} {
|
|
51
53
|
if (!DOMUtils.isBrowser()) {
|
|
52
54
|
return {
|
|
@@ -59,7 +61,7 @@ export class EventDeviceCollector {
|
|
|
59
61
|
|
|
60
62
|
const userAgent = navigator.userAgent.toLowerCase();
|
|
61
63
|
let category: 'mobile' | 'desktop' | 'tablet' | 'other' = 'desktop';
|
|
62
|
-
|
|
64
|
+
|
|
63
65
|
// 디바이스 카테고리 판별 (DeviceInfoCollector 재사용)
|
|
64
66
|
if (/tablet|ipad/.test(userAgent)) {
|
|
65
67
|
category = 'tablet';
|
|
@@ -75,7 +77,8 @@ export class EventDeviceCollector {
|
|
|
75
77
|
category,
|
|
76
78
|
platform: platformString,
|
|
77
79
|
model: navigator.platform,
|
|
78
|
-
osVersion: navigator.platform
|
|
80
|
+
osVersion: navigator.platform,
|
|
81
|
+
deviceId: DeviceInfoCollector.generateDeviceId(),
|
|
79
82
|
};
|
|
80
83
|
}
|
|
81
84
|
|
|
@@ -51,7 +51,7 @@ export class TrackingParamsModule {
|
|
|
51
51
|
// 추출할 파라미터 키 정의
|
|
52
52
|
private static readonly CLICK_ID_KEYS = ['gclid', 'fbclid', 'ttclid', 'nclid', 'liclid', 'msclkid', 'twclid'];
|
|
53
53
|
|
|
54
|
-
private static readonly CAMPAIGN_KEYS = ['campaign', 'campaign_id', 'ad_group', 'ad_group_id', 'ad_creative', 'creative_id', 'term'];
|
|
54
|
+
private static readonly CAMPAIGN_KEYS = ['channel', 'campaign', 'campaign_id', 'ad_group', 'ad_group_id', 'ad_creative', 'creative_id', 'term'];
|
|
55
55
|
|
|
56
56
|
private static readonly UTM_KEYS = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_content', 'utm_term'];
|
|
57
57
|
|