Browse Source

新增欄位

姜青儀 1 year ago
parent
commit
749f50e576
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Mixpanel/Data/ImportRequest.cs

+ 2 - 0
Mixpanel/Data/ImportRequest.cs

@@ -8,6 +8,7 @@ using System.Security.Cryptography;
 using System.Text;
 using System.Threading.Tasks;
 using Windows.Data.Json;
+using Windows.Globalization;
 
 namespace KdanCommon.Mixpanel.Data
 {
@@ -46,6 +47,7 @@ namespace KdanCommon.Mixpanel.Data
                 { "time", timeStamp },
                 { "distinct_id", _distinctId },
                 { "$insert_id", Guid.NewGuid().ToString("N") },
+                { "UwpRegion", new GeographicRegion().CodeTwoLetter}
             };
 
             if (_customProperties != null)