{"repo":"backstagephp/laravel-google-analytics-v4","free":true,"listed":false,"github":"https://github.com/backstagephp/laravel-google-analytics-v4","clone":"git clone https://github.com/backstagephp/laravel-google-analytics-v4.git","description":"Retrieve all data from Google Analytics version 4 using Laravel.","language":"PHP","stars":36,"topics":["analytics","google","google-analytics","google-analytics-4","laravel","laravel-package"],"license":"MIT","category":"analytics","readme_excerpt":"Laravel Google Analytics About Laravel Google Analytics v4 Retrieve all data like pageviews, events, ecommerce transactions and more from Google Analytics version 4 using the Google API. Installation You can install the package via composer: You can publish the config file with: This is the contents of the published config file: Usage First you need to create a service account in the Google Cloud Console. You can find the instructions here: https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-php. After you have created the service account, you need to download the credentials and save them in the storage/app/analytics folder. You can change the location of the credentials in the config file if you want. After you have done this, you can use the package like this: Available periods Note: Using multiple Carbon objects in the Period::create() method may possibly result in unexpected behaviour. It is recommended to pass the start and end date as a separate Carbon instance. For example: Period::create(Carbon::instance($startDate), Carbon::instance($endDate)) . This will ensure that the start and end date are set correctly. Available methods Demographic Analytics Methods to retrieve demographic analytics data for your website or application. You can use these methods to get information such as the top used languages, total users by city or country and total users per gender. All of the methods take a Period object as a parameter to specify the tim","default_branch":null,"files":null,"tree":[],"storefront":"/r/backstagephp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/backstagephp/laravel-google-analytics-v4/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."}