{"id":19217111,"url":"https://github.com/8ctopus/php-gtag","last_synced_at":"2026-01-30T21:37:15.392Z","repository":{"id":182572799,"uuid":"668610595","full_name":"8ctopus/php-gtag","owner":"8ctopus","description":"Experimental Google Analytics 4 gtag.js implementation in php for server side tracking","archived":false,"fork":false,"pushed_at":"2025-11-27T11:06:31.000Z","size":110,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T17:22:44.245Z","etag":null,"topics":["google-analytics-4","gtag"],"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/8ctopus.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-20T07:57:54.000Z","updated_at":"2025-11-27T06:46:24.000Z","dependencies_parsed_at":"2023-12-05T05:24:14.656Z","dependency_job_id":"372e772e-7105-4f46-880e-86e7b23cf9cb","html_url":"https://github.com/8ctopus/php-gtag","commit_stats":null,"previous_names":["8ctopus/php-gtag"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/8ctopus/php-gtag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fphp-gtag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fphp-gtag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fphp-gtag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fphp-gtag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/8ctopus","download_url":"https://codeload.github.com/8ctopus/php-gtag/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/8ctopus%2Fphp-gtag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28919734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T20:25:28.696Z","status":"ssl_error","status_checked_at":"2026-01-30T20:25:13.426Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["google-analytics-4","gtag"],"created_at":"2024-11-09T14:20:08.204Z","updated_at":"2026-01-30T21:37:15.375Z","avatar_url":"https://github.com/8ctopus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php gtag.js\n\n[![packagist](https://poser.pugx.org/8ctopus/php-gtag/v)](https://packagist.org/packages/8ctopus/php-gtag)\n[![downloads](https://poser.pugx.org/8ctopus/php-gtag/downloads)](https://packagist.org/packages/8ctopus/php-gtag)\n[![min php version](https://poser.pugx.org/8ctopus/php-gtag/require/php)](https://packagist.org/packages/8ctopus/php-gtag)\n[![license](https://poser.pugx.org/8ctopus/php-gtag/license)](https://packagist.org/packages/8ctopus/php-gtag)\n[![tests](https://github.com/8ctopus/php-gtag/actions/workflows/tests.yml/badge.svg)](https://github.com/8ctopus/php-gtag/actions/workflows/tests.yml)\n![code coverage badge](https://raw.githubusercontent.com/8ctopus/php-gtag/image-data/coverage.svg)\n![lines of code](https://raw.githubusercontent.com/8ctopus/php-gtag/image-data/lines.svg)\n\nExperimental Google Analytics 4 gtag.js php implementation for server side tracking.\n\n## update\n\nGoogle updated its cookies at the start of May 2025. I've added support for the new cookie format and it appears to work. You will need to upgrade to 0.4.x.\n\n## why?\n\nGoogle Analytics 4 measurement protocol is limited in what it can measure.\n\nThe objective of this library is to use the much more powerful gtag.js API for server side measurements.\n\nI'm using the library for some personal projects (tracking of PayPal sales) and it works, however it's far from a perfect replication of what gtag.js does. Use it at your own risk.\n\nContributions welcome!\n\n## install\n\n    composer require 8ctopus/php-gtag\n\n## demo\n\nCheck `demo.php` on how to use it.\n\n## cookies\n\nThe cookies Google Analytics uses are described [here](https://github.com/8ctopus/php-gtag/blob/master/cookies.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8ctopus%2Fphp-gtag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F8ctopus%2Fphp-gtag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F8ctopus%2Fphp-gtag/lists"}