File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
source/gameanalytics/Server Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ namespace gameanalytics
168168 data[" manufacturer" ] = manufacturer;
169169 data[" platform" ] = platform;
170170 data[" connection_type" ] = connectionType;
171+ data[" country_code" ] = countryCode;
171172
172173 utilities::addIfNotEmpty (data, " ab_id" , _abId);
173174 utilities::addIfNotEmpty (data, " ab_variant_id" , _abVariantId);
@@ -215,6 +216,7 @@ namespace gameanalytics
215216 device = utilities::getOptionalValue<std::string>(data, " device" , " " );
216217 manufacturer = utilities::getOptionalValue<std::string>(data, " manufacturer" , " " );
217218 platform = utilities::getOptionalValue<std::string>(data, " platform" , " " );
219+ countryCode = utilities::getOptionalValue<std::string>(data, " country_code" , " " );
218220
219221 _customDimension1 = utilities::getOptionalValue<std::string>(data, " custom_01" , " " );
220222 _customDimension2 = utilities::getOptionalValue<std::string>(data, " custom_02" , " " );
Original file line number Diff line number Diff line change @@ -138,6 +138,8 @@ namespace gameanalytics
138138 data[" platform" ] = p.platform ;
139139 data[" connection_type" ] = p.connectionType ;
140140
141+ utilities::addIfNotEmpty (data, " country_code" , p.countryCode );
142+
141143 utilities::addIfNotEmpty (data, " ab_id" , p._abId );
142144 utilities::addIfNotEmpty (data, " ab_variant_id" , p._abVariantId );
143145 utilities::addIfNotEmpty (data, " user_id_ext" , p.extUserId );
You can’t perform that action at this time.
0 commit comments