Drakota
Drakota

Reputation: 357

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.

Upvotes: 4

Views: 1399

Answers (1)

Eike Pierstorff
Eike Pierstorff

Reputation: 32780

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.

Upvotes: 3

Related Questions