创建一个可用于分析报告 API 的模拟账户? [Google 分析]

Create a demo account that's usable with the Analytics Reporting API? [Google Analytics]

我需要用 Google 分析视图测试一些东西,但是 Google 提供的默认模拟账户不允许用户使用分析报告 API:

You cannot use the demo account with the Analytics Reporting API. Attempts to do so result in a permissions error: (403) insufficientPermissions.

Source

我只需要用不同的数据复制一个视图。

感谢您的帮助。

您不能用数据复制视图。视图一开始总是空的。

然而,您可以简单地注册一个 Google Analytics 帐户并发送大量虚假数据(通过设置一个带有跟踪代码的网页并重复调用它,或者设置一个 cron 作业以通过measurement protocol)(这将实时发生,因此您需要等待几天才能获得足够的可用数据。无法在更长的时间内批量创建点击)。

如果您只是想测试 API,那么您使用的数据可能很重要,因此模拟账户应该可以正常工作。