Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 833
Drakota Avatar asked Oct 26 '25 05:10

Drakota


1 Answers

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.

like image 200
Eike Pierstorff Avatar answered Oct 29 '25 09:10

Eike Pierstorff



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!