0
votes

I tried to connect this package and I follow all the steps https://github.com/spatie/laravel-analytics#how-to-obtain-the-credentials-to-communicate-with-google-analytics

I keep getting this error:

Google_Service_Exception { "error": { "code": 403, "message": "User does not have sufficient permissions for this profile.", "errors": [ { "message": "User does not have sufficient permissions for this profile.", "domain": "global", "reason": "insufficientPermissions" } ] } }

I use the Account Settings / Account Id my account id have 9 number no letters

2
The error seems clear - the user you attempted this with doesn't have enough permissions.ceejayoz
I added everything: edit, collaborate, read & analyzeJúnior Oaks
Have you follower the part about granting permissions to your Analytics property? The reason should be thereMichele Pisani

2 Answers

0
votes

The error talks about Profile not Account, so you need to use View ID instead Account ID.

0
votes

On my file analytics.php

return [

    /*
     * The view id of which you want to display data.
     */
    'view_id' => env('ANALYTICS_VIEW_ID'),

I change the

'view_id' => 11111111,

I put the direct number