{"id":17725653,"url":"https://github.com/hirokisan/ga4data","last_synced_at":"2025-07-23T13:32:57.971Z","repository":{"id":64300073,"uuid":"563845926","full_name":"hirokisan/ga4data","owner":"hirokisan","description":"GA4 client service wrapper for Go","archived":false,"fork":false,"pushed_at":"2024-05-08T11:54:12.000Z","size":59,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T11:59:44.018Z","etag":null,"topics":["ga4","ga4-api","github","go","golang","google-analytics-4","google-analytics-4-api","googleanalytics","googleanalytics4"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/hirokisan/ga4data","language":"Go","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/hirokisan.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},"funding":{"github":"hirokisan","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-11-09T13:13:26.000Z","updated_at":"2024-05-08T11:52:40.000Z","dependencies_parsed_at":"2024-05-08T12:51:45.605Z","dependency_job_id":null,"html_url":"https://github.com/hirokisan/ga4data","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hirokisan/ga4data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirokisan%2Fga4data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirokisan%2Fga4data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirokisan%2Fga4data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirokisan%2Fga4data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hirokisan","download_url":"https://codeload.github.com/hirokisan/ga4data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirokisan%2Fga4data/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266689014,"owners_count":23969140,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ga4","ga4-api","github","go","golang","google-analytics-4","google-analytics-4-api","googleanalytics","googleanalytics4"],"created_at":"2024-10-25T16:05:14.814Z","updated_at":"2025-07-23T13:32:57.941Z","avatar_url":"https://github.com/hirokisan.png","language":"Go","readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/hirokisan/ga4data)](https://goreportcard.com/report/github.com/hirokisan/ga4data)\n[![golangci-lint](https://github.com/hirokisan/bybit/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/hirokisan/bybit/actions/workflows/golangci-lint.yml)\n[![test](https://github.com/hirokisan/bybit/actions/workflows/test.yml/badge.svg)](https://github.com/hirokisan/bybit/actions/workflows/test.yml)\n\n# ga4data\n\nga4data is an client service wrapper of Google Analytics Data API (GA4) for the Go programming language.\n\n## Usage\n\n### RunReport\n\n```\nimport (\n\t\"github.com/hirokisan/ga4data\"\n\n\tanalyticsdata \"google.golang.org/api/analyticsdata/v1beta\"\n)\n\n// prepare *analyticsdata.Service by yourself\n// e.g. service, err := analyticsdata.NewService(ctx, option.WithHTTPClient(httpClient))\n\npropertyID := \"properties/xxx\"\ndimensions := []string{ga4data.DimensionDate}\nmetrics := []string{ga4data.MetricSessions}\nresponse, err := ga4data.RunReport(ctx, service, propertyID, ga4data.CreateRunReportRequest(\n\tanalyticsdata.DateRange{\n\t\tStartDate: \"2022-10-01\",\n\t\tEndDate: \"2022-10-01\",\n\t},\n\tga4data.RunReportRequestWithDimensions(dimensions),\n\tga4data.RunReportRequestWithMetrics(metrics),\n))\n\n// do as you want\n```\n","funding_links":["https://github.com/sponsors/hirokisan"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirokisan%2Fga4data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhirokisan%2Fga4data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirokisan%2Fga4data/lists"}