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

对着背影说爱祢 提交于 2021-01-27 13:54:56

问题


I need to test some things with a Google Analytics View, but the default demo account that Google offers does not allow user to use the Analytics Reporting API :

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

Source

I just need to replicate a view with different data already.

Thanks for helping.


回答1:


You cannot replicate views with data. A view will always start empty.

However you can simply register a Google Analytics account and send lots of bogus data (either by setting up a web page with tracking code and call it repeatedly, or set a cron job to fire call via the measurement protocol) (this will happen in realtime, so you need to wait a few days before you have enough useable data. There is not way to bulk-create hits for a longer timeframe).

If you just want to test the API it probably matter that much what data you use, so a mock account should work just fine.



来源:https://stackoverflow.com/questions/44264088/create-a-demo-account-thats-usable-with-the-analytics-reporting-api-google-an

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!