{"repo":"spatie/laravel-analytics","free":true,"listed":false,"github":"https://github.com/spatie/laravel-analytics","clone":"git clone https://github.com/spatie/laravel-analytics.git","description":"A Laravel package to retrieve pageviews and other data from Google Analytics","language":"PHP","stars":3241,"topics":["laravel","php","analytics","google","statistics"],"license":"MIT","category":"analytics","readme_excerpt":"Retrieve data from Google Analytics Using this package you can easily retrieve data from Google Analytics. Here are a few examples of the provided methods: Most methods will return an \\Illuminate\\Support\\Collection object containing the results. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation This package can be installed through Composer. Optionally, you can publish the config file of this package with this command: The following config file will be published in config/analytics.php How to obtain the credentials to communicate with Google Analytics Getting credentials The first thing you’ll need to do is to get some credentials to use Google API’s. I’m assuming that you’ve already created a Google account and are signed in. Head over to Google API’s site and select or create a project. Next up we must specify which API’s the project may consume. Go to the API Library and search for \"Google Analytics Data API\". Choose enable to enable the API. Now that you’ve created a project that has access to the Analytics API it’s time to download a file with these credentials. Click \"Credentials\" in the sidebar. You’ll want to create a \"Service account key\".","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-analytics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}