-
Possible new title: Investigating the issue with retrieving data from Google Analytics using PHP client library
Could you help me understand why I’m receiving a null value when using the Google Analytics PHP client library? I’ve faithfully implemented it as described in this documentation, and all functions are working perfectly, except for the last one used for printing the result.
When I run the code, it results in an error message indicating that the parameter for the count() function must be an array or an object that implements Countable. When using dd($results->getRows()), I was expecting to see the Analytics data returned. However, I am met with a null value instead. I am currently using Laravel and have also tested the credentials. What could be causing this issue?
Log in to reply.