{"id":15663803,"url":"https://github.com/olebedev/go-gamp","last_synced_at":"2025-10-15T09:56:35.437Z","repository":{"id":57483067,"uuid":"99144774","full_name":"olebedev/go-gamp","owner":"olebedev","description":" Google Analytics Measurement Protocol in Golang","archived":false,"fork":false,"pushed_at":"2019-09-29T06:24:58.000Z","size":20,"stargazers_count":16,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T01:51:15.351Z","etag":null,"topics":["gamp","golang","google-analytics"],"latest_commit_sha":null,"homepage":"","language":"Go","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/olebedev.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}},"created_at":"2017-08-02T17:40:11.000Z","updated_at":"2024-10-25T15:39:50.000Z","dependencies_parsed_at":"2022-08-27T20:02:47.997Z","dependency_job_id":null,"html_url":"https://github.com/olebedev/go-gamp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olebedev%2Fgo-gamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olebedev%2Fgo-gamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olebedev%2Fgo-gamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olebedev%2Fgo-gamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olebedev","download_url":"https://codeload.github.com/olebedev/go-gamp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252748632,"owners_count":21798356,"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":["gamp","golang","google-analytics"],"created_at":"2024-10-03T13:39:59.401Z","updated_at":"2025-10-15T09:56:30.402Z","avatar_url":"https://github.com/olebedev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gamp [![GoDoc](https://godoc.org/github.com/olebedev/go-gamp?status.svg)](https://godoc.org/github.com/olebedev/go-gamp)\n\n\u003e [Google Analytics Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/v1/reference) in Golang\n\nAlmost full API implementation, except dynamic parameters(due to swagger 2.0 is not supported it yet) and batch mode.\n\n### Example\n\n```golang\npackage main\n\nimport (\n\t\"log\"\n\t\"context\"\n\n\t\"github.com/AlekSi/pointer\"\n\tgamp \"github.com/olebedev/go-gamp\"\n\t\"github.com/olebedev/go-gamp/client/gampops\"\n)\n\nfunc main() {\n\tclient := gamp.New(context.Background(), \"UA-XXXXXXXX-X\")\n\terr := client.Collect(\n\t\tgampops.NewCollectParams().\n\t\t\tWithCid(pointer.ToString(\"42\")).\n\t\t\tWithT(\"event\").\n\t\t\tWithEc(pointer.ToString(\"Category\")).\n\t\t\tWithEa(pointer.ToString(\"Action\")),\n\t)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folebedev%2Fgo-gamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folebedev%2Fgo-gamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folebedev%2Fgo-gamp/lists"}