{"id":17236308,"url":"https://github.com/there4/php-analytics-event","last_synced_at":"2025-07-26T04:03:40.411Z","repository":{"id":2845399,"uuid":"3849107","full_name":"there4/php-analytics-event","owner":"there4","description":"Create a Google Analytics Event from PHP","archived":false,"fork":false,"pushed_at":"2020-10-01T22:22:47.000Z","size":18,"stargazers_count":24,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T18:04:38.700Z","etag":null,"topics":["analytics","google-analytics","google-analytics-api","php","php-analytics-events"],"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/there4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-27T22:11:15.000Z","updated_at":"2023-05-12T16:38:58.000Z","dependencies_parsed_at":"2022-09-11T19:01:24.160Z","dependency_job_id":null,"html_url":"https://github.com/there4/php-analytics-event","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/there4%2Fphp-analytics-event","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/there4%2Fphp-analytics-event/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/there4%2Fphp-analytics-event/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/there4%2Fphp-analytics-event/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/there4","download_url":"https://codeload.github.com/there4/php-analytics-event/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248810883,"owners_count":21165195,"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":["analytics","google-analytics","google-analytics-api","php","php-analytics-events"],"created_at":"2024-10-15T05:35:52.745Z","updated_at":"2025-04-14T02:31:31.010Z","avatar_url":"https://github.com/there4.png","language":"PHP","readme":"PHP Analytics Events [![Build Status](https://travis-ci.org/there4/php-analytics-event.svg?branch=master)](https://travis-ci.org/there4/php-analytics-event)\n================================================================================\n\u003e Create a Google Analytics Event from PHP\n\nThis is a small class to post Analytics events from PHP. This is useful for\nlogging and event tracking.\n\n## Installation\n\n```bash\ncomposer require there4/php-analytics-event\n```\n\n## Example\n```php\n\u003c?php\n\nuse There4\\Analytics\\AnalyticsEvent;\n\n// Record the download event in Analytics\n$events = new AnalyticsEvent('UAxxxxxxx', 'example.com');\n$events-\u003etrackEvent('resources', 'download', 'cli-latest');\n```\n\n## Related Projects\n\nThe [Google Analytics Measurement Protocol library for PHP](https://github.com/theiconic/php-ga-measurement-protocol) project is a much larger implementation of the [Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/v1). If you need more than a simple tracking event you should check it out.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthere4%2Fphp-analytics-event","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthere4%2Fphp-analytics-event","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthere4%2Fphp-analytics-event/lists"}