{"id":20540565,"url":"https://github.com/utopia-php/analytics","last_synced_at":"2025-04-05T20:03:25.932Z","repository":{"id":38309040,"uuid":"335579827","full_name":"utopia-php/analytics","owner":"utopia-php","description":"Lite \u0026 fast micro PHP analytics library that is **easy to use**.","archived":false,"fork":false,"pushed_at":"2024-10-09T15:45:22.000Z","size":314,"stargazers_count":16,"open_issues_count":4,"forks_count":20,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-29T19:01:18.231Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/utopia-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-03T09:59:49.000Z","updated_at":"2025-03-15T13:40:02.000Z","dependencies_parsed_at":"2023-09-26T19:14:54.035Z","dependency_job_id":"3a7cac32-f2e5-4b1b-aca1-d09aa09eb339","html_url":"https://github.com/utopia-php/analytics","commit_stats":{"total_commits":206,"total_committers":11,"mean_commits":"18.727272727272727","dds":"0.45145631067961167","last_synced_commit":"14c805114736f44c26d6d24b176a2f8b93d86a1f"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fanalytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fanalytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fanalytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fanalytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utopia-php","download_url":"https://codeload.github.com/utopia-php/analytics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393552,"owners_count":20931811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest"],"created_at":"2024-11-16T01:16:13.764Z","updated_at":"2025-04-05T20:03:25.909Z","avatar_url":"https://github.com/utopia-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utopia Analytics\n\n[![Build Status](https://travis-ci.com/utopia-php/system.svg?branch=main)](https://travis-ci.com/utopia-php/analytics)\n![Total Downloads](https://img.shields.io/packagist/dt/utopia-php/analytics.svg)\n[![Discord](https://img.shields.io/discord/564160730845151244?label=discord)](https://appwrite.io/discord)\n\nUtopia Analytics is a simple and lite library to send information about events or pageviews to Google Analytics. This library is aiming to be as simple and easy to learn and use. This library is maintained by the [Appwrite team](https://appwrite.io).\n\nAlthough this library is part of the [Utopia Framework](https://github.com/utopia-php/framework) project it is dependency free and can be used as standalone with any other PHP project or framework.\n\n## Getting Started\n\nInstall using composer:\n```bash\ncomposer require utopia-php/analytics\n```\n\nInit in your application:\n```php\n\u003c?php\n\nrequire_once __DIR__ . '/../../vendor/autoload.php';\n\nuse Utopia\\Analytics\\GoogleAnalytics;\n\n$ga = new GoogleAnalytics(\"UA-XXXXXXXXX-X\", \"CLIENT-ID\");\n\n// Sends a pageview for `appwrite.io/docs/installation`.\n$ga-\u003ecreatePageView(\"appwrite.io\", \"/docs/installation\");\n\n// Sends an event indicating an installation.\n$ga-\u003ecreateEvent(\"Installation\", \"setup.cli\");\n// Sends an event indicating that the fall campaign promotional video was played.\n$ga-\u003ecreateEvent(\"Videos\", \"play\", \"Fall Campaign\");\n\n```\n\n## System Requirements\n\nUtopia Framework requires PHP 7.4 or later. We recommend using the latest PHP version whenever possible.\n\n## Copyright and license\n\nThe MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Fanalytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futopia-php%2Fanalytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Fanalytics/lists"}