2

Does anyone know if it's possible to dive deeper into our static maps API usage data than we get through the console? We're being charged and I'm trying to make sure that I understand where all the requests are coming from!

First stop was to prevent bots from trying to index static map content but the requests remained high. At 50k pageviews for the whole site per day from visitors I'm just a little suspicious that we'd be hitting 112k static map views per day...

I'm hoping there are ways/strategies to figure out which pages are causing the most views and which user agent strings/IPs.

4

1 回答 1

0

只是一个想法:

将服务器端脚本作为图标添加到 StaticMap-URL。

此脚本(图标)的 url 应包含一个随机参数以防止 google 缓存此脚本(图标),以及填充所需详细信息的附加参数(当前页面的 url、IP、UserAgent)

脚本的响应应该是适合用作静态地图图标的图像(可能是1x1透明png)

该脚本可以将提供的参数存储在数据库中,您应该能够创建静态地图加载的详细统计信息。

于 2013-08-20T23:04:32.907 回答