runt18 / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

ga:country in ISO Alpha-3 #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
--------------------------------------------------------------------------
NOTE: This issue tracking system is for developer products only.  If you
are not a developer/programmer and have a problem with a Google web site,
please report the problem to the appropriate group.  More information can
be found here: http://www.google.com/support/
--------------------------------------------------------------------------

Name of API affected:
Analytics Data Export API

Request summary:
It will be very useful that google analytics implements new dimensions to
return country in ISO-Alpha-3 ISO-Alpha-2

Use Cases:
This is the best way to make a standard integration with other solutions
link ilog elixir maps.

Original issue reported on code.google.com by quasimid...@gmail.com on 3 Dec 2009 at 9:59

GoogleCodeExporter commented 8 years ago
Hello,

I would like to generate a Intensity Map by using the Google Visualization API.
http://code.google.com/intl/en/apis/visualization/documentation/gallery/intensit
ymap.html

And the data format of first column should be a string, and contain country ISO 
codes in ISO 3166-1-alpha-2 codes format.

So please provide this format when using the parameter ga:country.
Thank you.

Original comment by tyt...@gmail.com on 30 Jun 2010 at 8:22

GoogleCodeExporter commented 8 years ago
It would be nice to have a more seamless way to use ga:country with google 
maps. I think that Google should provide a dimension that will take care of 
this downfall since they require the iso-3166 codes

Original comment by vincentt...@gtempaccount.com on 12 Oct 2010 at 10:28

GoogleCodeExporter commented 8 years ago
while this...

function getAbrev3FromAbrev2(abrev2){
    switch(abrev2){
        case "AF": return "AFG";
        case "ZA": return "ZAF";
        case "AX": return "ALA";
        case "AL": return "ALB";
        case "DE": return "DEU";
        case "AD": return "AND";
        case "AO": return "AGO";
        case "AI": return "AIA";
        case "AQ": return "ATA";
        case "AG": return "ATG";
        case "AN": return "ANT";
        case "SA": return "SAU";
        case "DZ": return "DZA";
        case "AR": return "ARG";
        case "AM": return "ARM";
        case "AW": return "ABW";
        case "AU": return "AUS";
        case "AT": return "AUT";
        case "AZ": return "AZE";
        case "BS": return "BHS";
        case "BH": return "BHR";
        case "BD": return "BGD";
        case "BB": return "BRB";
        case "BE": return "BEL";
        case "BZ": return "BLZ";
        case "BJ": return "BEN";
        case "BM": return "BMU";
        case "BY": return "BLR";
        case "BO": return "BOL";
        case "BA": return "BIH";
        case "BW": return "BWA";
        case "BV": return "BVT";
        case "BR": return "BRA";
        case "BN": return "BRN";
        case "BG": return "BGR";
        case "BF": return "BFA";
        case "BI": return "BDI";
        case "BT": return "BTN";
        case "CV": return "CPV";
        case "CH": return "CHE";
        case "KH": return "KHM";
        case "CM": return "CMR";
        case "CA": return "CAN";
        case "KY": return "CYM";
        case "KZ": return "KAZ";
        case "CF": return "CAF";
        case "TD": return "TCD";
        case "CZ": return "CZE";
        case "CL": return "CHL";
        case "CN": return "CHN";
        case "CY": return "CYP";
        case "CX": return "CXR";
        case "CC": return "CCK";
        case "CO": return "COL";
        case "KM": return "COM";
        case "CG": return "COG";
        case "CD": return "COD";
        case "CK": return "COK";
        case "KR": return "KOR";
        case "KP": return "PRK";
        case "CI": return "CIV";
        case "CR": return "CRI";
        case "HR": return "HRV";
        case "CU": return "CUB";
        case "DK": return "DNK";
        case "DJ": return "DJI";
        case "DM": return "DMA";
        case "DO": return "DOM";
        case "EG": return "EGY";
        case "SV": return "SLV";
        case "AE": return "ARE";
        case "EC": return "ECU";
        case "ER": return "ERI";
        case "SK": return "SVK";
        case "SI": return "SVN";
        case "ES": return "ESP";
        case "US": return "USA";
        case "EE": return "EST";
        case "ET": return "ETH";
        case "FO": return "FRO";
        case "FJ": return "FJI";
        case "PH": return "PHL";
        case "FI": return "FIN";
        case "FR": return "FRA";
        case "GA": return "GAB";
        case "GM": return "GMB";
        case "GH": return "GHA";
        case "GE": return "GEO";
        case "GS": return "SGS";
        case "GI": return "GIB";
        case "GR": return "GRC";
        case "GD": return "GRD";
        case "GL": return "GRL";
        case "GP": return "GLP";
        case "GU": return "GUM";
        case "GT": return "GTM";
        case "GG": return "GGY";
        case "GY": return "GUY";
        case "GF": return "GUF";
        case "GW": return "GNB";
        case "GN": return "GIN";
        case "GQ": return "GNQ";
        case "HT": return "HTI";
        case "HM": return "HMD";
        case "HN": return "HND";
        case "HK": return "HKG";
        case "HU": return "HUN";
        case "YE": return "YEM";
        case "IN": return "IND";
        case "ID": return "IDN";
        case "IQ": return "IRQ";
        case "IR": return "IRN";
        case "IE": return "IRL";
        case "IS": return "ISL";
        case "IL": return "ISR";
        case "IT": return "ITA";
        case "JM": return "JAM";
        case "JP": return "JPN";
        case "JE": return "JEY";
        case "JO": return "JOR";
        case "KI": return "KIR";
        case "KW": return "KWT";
        case "LA": return "LAO";
        case "LS": return "LSO";
        case "LV": return "LVA";
        case "LB": return "LBN";
        case "LR": return "LBR";
        case "LY": return "LBY";
        case "LI": return "LIE";
        case "LT": return "LTU";
        case "LU": return "LUX";
        case "MO": return "MAC";
        case "MK": return "MKD";
        case "MG": return "MDG";
        case "MY": return "MYS";
        case "MW": return "MWI";
        case "MV": return "MDV";
        case "ML": return "MLI";
        case "MT": return "MLT";
        case "FK": return "FLK";
        case "IM": return "IMN";
        case "MP": return "MNP";
        case "MA": return "MAR";
        case "MH": return "MHL";
        case "MQ": return "MTQ";
        case "MU": return "MUS";
        case "MR": return "MRT";
        case "YT": return "MYT";
        case "UM": return "UMI";
        case "MX": return "MEX";
        case "MM": return "MMR";
        case "FM": return "FSM";
        case "MZ": return "MOZ";
        case "MD": return "MDA";
        case "MC": return "MCO";
        case "MN": return "MNG";
        case "ME": return "MNE";
        case "MS": return "MSR";
        case "NA": return "NAM";
        case "NR": return "NRU";
        case "NP": return "NPL";
        case "NI": return "NIC";
        case "NE": return "NER";
        case "NG": return "NGA";
        case "NU": return "NIU";
        case "NF": return "NFK";
        case "NO": return "NOR";
        case "NC": return "NCL";
        case "NZ": return "NZL";
        case "OM": return "OMN";
        case "NL": return "NLD";
        case "PW": return "PLW";
        case "PS": return "PSE";
        case "PA": return "PAN";
        case "PG": return "PNG";
        case "PK": return "PAK";
        case "PY": return "PRY";
        case "PE": return "PER";
        case "PN": return "PCN";
        case "PF": return "PYF";
        case "PL": return "POL";
        case "PR": return "PRI";
        case "PT": return "PRT";
        case "QA": return "QAT";
        case "KE": return "KEN";
        case "KG": return "KGZ";
        case "GB": return "GBR";
        case "RE": return "REU";
        case "RO": return "ROU";
        case "RW": return "RWA";
        case "RU": return "RUS";
        case "EH": return "ESH";
        case "AS": return "ASM";
        case "WS": return "WSM";
        case "PM": return "SPM";
        case "SB": return "SLB";
        case "KN": return "KNA";
        case "SM": return "SMR";
        case "ST": return "STP";
        case "VC": return "VCT";
        case "SH": return "SHN";
        case "VE": return "VEN";
        default: return "BRA";
    }
}

Original comment by cassio.so on 18 Jul 2011 at 11:19

GoogleCodeExporter commented 8 years ago
Removing an obsolete label that was used when these issues were in the 
gdata-issues project.

Original comment by jrobbins@google.com on 21 Jul 2011 at 10:04

GoogleCodeExporter commented 8 years ago
Changing the issue type to match the organization desired in this project.

Original comment by jrobbins@google.com on 21 Jul 2011 at 10:06

GoogleCodeExporter commented 8 years ago
ga:countryIsoCode values are given as an ISO-3166-1 alpha-2 code.

See:
https://developers.google.com/analytics/devguides/reporting/core/dimsmets#view=d
etail&group=geo_network&jump=ga_countryisocode

Original comment by pfrise...@google.com on 25 Mar 2015 at 4:22