{"id":20816075,"url":"https://github.com/arillo/silverstripe-googleanalytics","last_synced_at":"2026-03-19T17:39:35.115Z","repository":{"id":62487020,"uuid":"141715252","full_name":"arillo/silverstripe-googleanalytics","owner":"arillo","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-25T09:11:27.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-28T19:45:21.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scheme","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/arillo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-07-20T13:26:46.000Z","updated_at":"2022-02-08T15:45:54.000Z","dependencies_parsed_at":"2024-11-17T21:28:13.772Z","dependency_job_id":"2ab2cb71-e600-4d70-b16f-ff2dcecd4912","html_url":"https://github.com/arillo/silverstripe-googleanalytics","commit_stats":{"total_commits":8,"total_committers":3,"mean_commits":"2.6666666666666665","dds":0.375,"last_synced_commit":"8cbe5964544f38a7e699cf1f30fc9d47d42298ff"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-googleanalytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-googleanalytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-googleanalytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillo%2Fsilverstripe-googleanalytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arillo","download_url":"https://codeload.github.com/arillo/silverstripe-googleanalytics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243163855,"owners_count":20246594,"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":[],"created_at":"2024-11-17T21:27:56.996Z","updated_at":"2026-02-10T07:33:46.398Z","avatar_url":"https://github.com/arillo.png","language":"Scheme","funding_links":[],"categories":[],"sub_categories":[],"readme":"# arillo/silverstripe-googleanalytics\n\nAdds google analytics tracking script to your site, if it is in production (live) mode.\n\n## Requirements\n\nSilverStripe ^4.0\n\nFor a SilverStripe 3.x compatible version of this module, please see the [1.x branch, or 0.x release line](https://github.com/arillo/silverstripe-googleanalytics/tree/1.x).\n\n## Setup\n\n### Google analytics\n\nTo make it work, you have to define `AO_GA_TRACKING_CODE` environment variable.\n\n```\n# define in .env\nAO_GA_TRACKING_CODE=\"\u003cYOUR_GA_TRACKING_CODE\u003e\"\n```\n\nAdd the following into the `\u003chead\u003e` section of your template:\n\n```\n$GoogleAnalytics\n```\n\n### Google analytics 4\n\nTo make it work, you have to define `AO_GA4_TRACKING_CODE` environment variable.\n\n```\n# define in .env\nAO_GA_TRACKING_CODE=\"\u003cAO_GA4_TRACKING_CODE\u003e\"\n```\n\nAdd the following into the `\u003chead\u003e` section of your template:\n\n```\n$GA4\n```\n\n\n\n#### Customize\n\nYou can overwrite `GoogleAnalytics.ss` (or `GA4.ss`) on project basis, if you need some different behaviour.\n\n### Google tag manager\n\nTo make it work, you have to define `AO_GTM_CODE` environment variable.\n\n```\n# define in .env\nAO_GTM_CODE=\"\u003cYOUR_GTM_CODE\u003e\"\n```\n\nAdd the following into the `\u003chead\u003e` section of your template:\n\n```\n$GoogleTagManager(head)\n```\n\nAfter the opening `\u003cbody\u003e` tag:\n\n```\n$GoogleTagManager(body)\n```\n\n#### Customize\n\nYou can overwrite `GoogleTagManager.ss` on project basis, if you need some different behaviour.\n\n## Changelog\n\n1.0.0\n\n-   SS4 compat\n\n1.0.1\n\n-   added GTM\n\n1.0.2\n\n-   added GA4\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillo%2Fsilverstripe-googleanalytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farillo%2Fsilverstripe-googleanalytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillo%2Fsilverstripe-googleanalytics/lists"}