Google Analytics 即时测试器

Google Analytics Instant Tester

由于 Google 分析数据需要 around 24 hours 才能更新,因此很难看出数据是如何在 Google 分析中汇总和显示的。

是否有某种即时测试器或快速周转应用程序允许我在我的应用程序中快速设置自定义 dimensions/metric 并查看它们的显示效果?

实时分析选项:

  • Google Realtime Analytics - 内置于 Google 分析中。要使用 Google Analytics Realtime,请登录您的 google 分析帐户和 select 您的网站 属性。然后,在左侧单击“实时”->“概览”。

  • GoAccess - If you have access to your web server log files this will give you a real-time view of traffic and does not require anything more than a console access. The really nice things about GoAccess is that it does not rely on any 3rd part services and has the ability to run in real-time or generate reports. To use GoAccess, first install it on your server using either the package manager or in a local directory using the official Git。然后,如果您 运行 正在使用标准 Apache 配置,只需 运行 可执行文件:

    # goaccess -f /var/log/apache2/your-website-access.log -a

    如果您运行正在使用非标准的 Apache 日志配置(或完全是另一个 Web 服务器),那么您必须向 GoAccess 提供您的日志文件的描述。这可以在 ~/.goaccessrc 文件中完成。请参阅 GoAccess documentation 以了解生成描述日志文件行的字符串的特定描述符。

  • 还有许多其他 SAS 选项,例如 Clicky, GoSquared, or piwik(开源)。