如何从邮政编码或坐标获取 Google Analytics Measurement Protocol 的 geoID?
How to get a geoID for the Google Analytics Measurement Protocol from a zipcode or coords?
是否可以从邮政编码或坐标获取 Google Analytics Measurement Protocol 中地理覆盖参数的 geoID?
Geographical Override The geographical location of the user. The geographical ID should be a two letter country code or a criteria ID representing a city or region (see Geographical IDs). This parameter takes precedent over any location derived from IP address, including the IP Override parameter. An invalid code will result in geographical dimensions to be set to '(not set)'.
您需要下载在 Geographical IDs and then parse it against some kind of world wide zip code list 找到的文件,以便将您的邮政编码解析为 Geoiids。
将邮政编码发送到 Google 分析不会起作用,它必须是有效的 GeoId
GoogleCSV 文件的格式
来自 google 的文件是一个 CSV 文件,包含以下列 Criteria ID,Name,Canonical Name,Parent ID,Country Code,Target Type,Status
"1014315","Sunnyvale","Sunnyvale,California,United States","21137","US","City",Active
- 大地水准面 1014315
- 城市桑尼维尔
- 圆锥形名称美国加利福尼亚州桑尼维尔
- 父 ID 21137(我相信这是美国的州 ID)
- 国家代码美国
- 活跃
注意:可能不会列出小城镇和村庄。您将不得不尝试找到尽可能接近的东西
是否可以从邮政编码或坐标获取 Google Analytics Measurement Protocol 中地理覆盖参数的 geoID?
Geographical Override The geographical location of the user. The geographical ID should be a two letter country code or a criteria ID representing a city or region (see Geographical IDs). This parameter takes precedent over any location derived from IP address, including the IP Override parameter. An invalid code will result in geographical dimensions to be set to '(not set)'.
您需要下载在 Geographical IDs and then parse it against some kind of world wide zip code list 找到的文件,以便将您的邮政编码解析为 Geoiids。
将邮政编码发送到 Google 分析不会起作用,它必须是有效的 GeoId
GoogleCSV 文件的格式
来自 google 的文件是一个 CSV 文件,包含以下列 Criteria ID,Name,Canonical Name,Parent ID,Country Code,Target Type,Status
"1014315","Sunnyvale","Sunnyvale,California,United States","21137","US","City",Active
- 大地水准面 1014315
- 城市桑尼维尔
- 圆锥形名称美国加利福尼亚州桑尼维尔
- 父 ID 21137(我相信这是美国的州 ID)
- 国家代码美国
- 活跃
注意:可能不会列出小城镇和村庄。您将不得不尝试找到尽可能接近的东西