简体   繁体   English

Flash AS3-通过Google Analytics(分析)库获取用户位置

[英]Flash AS3 - Get user location via Google Analytics library

I'm using the Google Analytics library (AS3 mode) .swc to track some click statistics. 我正在使用Google Analytics(分析)库(AS3模式).swc跟踪某些点击统计信息。 Now I'ld like to get the users location. 现在,我想获取用户位置。 Does anyone know if it's possible to do that with the Flash Google Analytics library? 有人知道Flash Google Analytics(分析)库是否可以做到这一点?

Thanks 谢谢

I don't think so (it's not its purpose) but you can try the main google loader api as it usually gives some location info based on your IP (see google.loader.ClientLocation here ). 我不这么认为(这不是它的目的),但是您可以尝试使用主要的Google loader API,因为它通常会根据您的IP提供一些位置信息(请参阅google.loader.ClientLocation 这里 )。

If you need more reliability and/or precision, you can try the maps api , gears and/or html's geolocation apis . 如果需要更高的可靠性和/或精度,可以尝试使用maps apigears和/或html的geolocation apis I'm pretty sure you can find good examples here in SO. 我很确定您可以在SO中找到很好的例子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM