{"id":19289384,"url":"https://github.com/adamlc/go-utm","last_synced_at":"2026-06-30T17:31:39.524Z","repository":{"id":70851160,"uuid":"140295116","full_name":"adamlc/go-utm","owner":"adamlc","description":"Utility to add Google UTM tags to a URL","archived":false,"fork":false,"pushed_at":"2018-11-30T11:10:19.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T19:42:11.694Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/adamlc.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}},"created_at":"2018-07-09T14:11:39.000Z","updated_at":"2023-10-19T04:46:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6442020-240c-4fc3-983d-dab49b00644b","html_url":"https://github.com/adamlc/go-utm","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlc%2Fgo-utm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlc%2Fgo-utm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlc%2Fgo-utm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamlc%2Fgo-utm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamlc","download_url":"https://codeload.github.com/adamlc/go-utm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240395737,"owners_count":19794573,"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-09T22:14:40.677Z","updated_at":"2026-06-30T17:31:39.512Z","avatar_url":"https://github.com/adamlc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UTM Tag Builder\n[![Travis](https://travis-ci.org/adamlc/go-utm.svg?branch=master)](https://travis-ci.org/adamlc/go-utm)\n[![Go Report Card](https://goreportcard.com/badge/github.com/adamlc/go-utm)](https://goreportcard.com/report/github.com/adamlc/go-utm) [![codecov](https://codecov.io/gh/adamlc/go-utm/branch/master/graph/badge.svg)](https://codecov.io/gh/adamlc/go-utm)\n\nUse UTM Tag Builder to add Google utm tags to a URL.\n\n## Installation\n```bash\ngo get -u github.com/adamlc/go-utm\n```\n\n## Usage\n\n```go\nurl, err := utm.BuildURL(\"https://test.com\", utm.Config{\n\tSource: \"google\",\n\tMedium: \"email\",\n\tCampaign: \"Awesome Test\"},\n)\n\n// https://test.com?utm_campaign=Awesome+Test\u0026utm_medium=email\u0026utm_source=google\n```\n\n#### func  BuildURL\n\n```go\nfunc BuildURL(rawurl string, config Config) (string, error)\n```\nBuildURL adds UTM tags to the passed URL\n\n#### type Config\n\n```go\ntype Config struct {\n\tSource   string\n\tMedium   string\n\tCampaign string\n\tContent  string\n\tTerm     string\n}\n```\n\nConfig is used to configure UTM tags for a URL\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlc%2Fgo-utm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamlc%2Fgo-utm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamlc%2Fgo-utm/lists"}