{"id":37262272,"url":"https://github.com/syntro-opensource/silverstripe-google-analytics","last_synced_at":"2026-01-15T23:19:55.590Z","repository":{"id":42569720,"uuid":"476311580","full_name":"syntro-opensource/silverstripe-google-analytics","owner":"syntro-opensource","description":"Module to add google analytics to your Page. Uses klaro!.","archived":false,"fork":false,"pushed_at":"2022-04-02T11:36:13.000Z","size":26,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T13:57:28.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syntro-opensource.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-31T13:11:52.000Z","updated_at":"2022-03-31T14:06:06.000Z","dependencies_parsed_at":"2022-08-24T07:50:15.481Z","dependency_job_id":null,"html_url":"https://github.com/syntro-opensource/silverstripe-google-analytics","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/syntro-opensource/silverstripe-google-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntro-opensource%2Fsilverstripe-google-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntro-opensource%2Fsilverstripe-google-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntro-opensource%2Fsilverstripe-google-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntro-opensource%2Fsilverstripe-google-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syntro-opensource","download_url":"https://codeload.github.com/syntro-opensource/silverstripe-google-analytics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntro-opensource%2Fsilverstripe-google-analytics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28473974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T22:27:41.514Z","status":"ssl_error","status_checked_at":"2026-01-15T21:54:47.910Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-15T23:19:54.908Z","updated_at":"2026-01-15T23:19:55.585Z","avatar_url":"https://github.com/syntro-opensource.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Silverstripe Google Analytics\n\n[![🎭 Tests](https://github.com/syntro-opensource/silverstripe-google-analytics/workflows/%F0%9F%8E%AD%20Tests/badge.svg)](https://github.com/syntro-opensource/silverstripe-google-analytics/actions?query=workflow%3A%22%F0%9F%8E%AD+Tests%22+branch%3A%22master%22)\n[![codecov](https://codecov.io/gh/syntro-opensource/silverstripe-google-analytics/branch/master/graph/badge.svg)](https://codecov.io/gh/syntro-opensource/silverstripe-google-analytics)\n![Dependabot](https://img.shields.io/badge/dependabot-active-brightgreen?logo=dependabot)\n[![phpstan](https://img.shields.io/badge/PHPStan-enabled-success)](https://github.com/phpstan/phpstan)\n[![composer](https://img.shields.io/packagist/dt/syntro/silverstripe-google-analytics?color=success\u0026logo=composer)](https://packagist.org/packages/syntro/silverstripe-google-analytics)\n[![Packagist Version](https://img.shields.io/packagist/v/syntro/silverstripe-google-analytics?label=stable\u0026logo=composer)](https://packagist.org/packages/syntro/silverstripe-google-analytics)\n\nAdds Google Analytics to your Website. Uses [`syntro/silverstripe-klaro`](https://github.com/syntro-opensource/silverstripe-klaro)\nfor consent management.\n\n## Installation\nTo install this module, run the following command:\n```\ncomposer require syntro/silverstripe-google-analytics\n```\n\n## Usage\n\nAfter installing, you have to configure analytics to use your datastream:\n```yml\nSyntro\\SilverstripeGoogleAnalytics\\Config:\n  google_token: G-XXXXXXXX\n```\n\nAfter that, Silverstripe will serve Google Analytics after the user has given\nconsent.\n\n## Configuration\n\nYou can use the following options on `Syntro\\SilverstripeGoogleAnalytics\\Config`\nto influence how the analytics script is loaded:\n\n* `klaro_create_default_purpose`: if true, a new purpose will be created\n* `klaro_purposes`: Add the created service to additional purposes. If 'klaro_create_default_purpose' is true, the 'analytics' purpose will be appended.\n* `klaro_enabled_by_default`: if true, the generated service will be enabled by default. **WARNING**: enabling this will most likely violate GDPR rules\n\n## Styling klaro!\nThis Module uses klaro! for consent management via the [`syntro/silverstripe-klaro`](https://github.com/syntro-opensource/silverstripe-klaro)\nmodule. We recommend checking that module out for information on how to style the\nconsent-window.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntro-opensource%2Fsilverstripe-google-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyntro-opensource%2Fsilverstripe-google-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntro-opensource%2Fsilverstripe-google-analytics/lists"}