{"id":30048292,"url":"https://github.com/segmentio/utm-params","last_synced_at":"2025-10-15T10:41:35.235Z","repository":{"id":13842031,"uuid":"16539117","full_name":"segmentio/utm-params","owner":"segmentio","description":"parse and get all utm parameters","archived":false,"fork":false,"pushed_at":"2023-10-05T18:30:46.000Z","size":20,"stargazers_count":41,"open_issues_count":4,"forks_count":7,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-06-30T17:32:05.610Z","etag":null,"topics":["paused"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/segmentio.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","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":"2014-02-05T08:34:26.000Z","updated_at":"2024-05-25T18:29:16.000Z","dependencies_parsed_at":"2024-06-18T17:08:28.873Z","dependency_job_id":"894f1241-7821-4d2b-8f9e-99df95d76f78","html_url":"https://github.com/segmentio/utm-params","commit_stats":{"total_commits":18,"total_committers":4,"mean_commits":4.5,"dds":0.5,"last_synced_commit":"3cfebf8a57c5df7ed9f8b98f389b35096f7881fb"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/segmentio/utm-params","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Futm-params","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Futm-params/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Futm-params/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Futm-params/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segmentio","download_url":"https://codeload.github.com/segmentio/utm-params/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Futm-params/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266556999,"owners_count":23947849,"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-22T02:00:09.085Z","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":["paused"],"created_at":"2025-08-07T10:08:46.402Z","updated_at":"2025-10-15T10:41:30.178Z","avatar_url":"https://github.com/segmentio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# utm-params\n\n\u003e **Note**  \n\u003e Segment has paused maintenance on this project, but may return it to an active status in the future. Issues and pull requests from external contributors are not being considered, although internal contributions may appear from time to time. The project remains available under its open source license for anyone to use.\n\n[![CircleCI](https://circleci.com/gh/segmentio/utm-params.svg?style=shield\u0026circle-token=d49fc6469182ce8392a332106af7a5fb76b2f8b7)](https://circleci.com/gh/segmentio/utm-params)\n[![Codecov](https://img.shields.io/codecov/c/github/segmentio/utm-params/master.svg?maxAge=2592000)](https://codecov.io/gh/segmentio/utm-params)\n\nParse a URL, returning all UTM parameters.\n\n## Installation\n\n```sh\n$ npm install @segment/utm-params\n```\n\n## API\n\n### utm(querystring : string)\n\n```js\nutm('?utm_source=google\u0026utm_medium=medium\u0026utm_term=keyword\u0026utm_content=some%20content\u0026utm_campaign=some%20campaign\u0026utm_test=other%20value');\n```\n\n```json\n{\n  \"source\": \"google\",\n  \"medium\": \"medium\",\n  \"term\": \"keyword\",\n  \"content\": \"some content\",\n  \"name\": \"some campaign\",\n  \"test\": \"other value\"\n}\n```\n\n###utm.strict(querystring : string)\n\nWill *only* return the 5 Google Analytics spec'd utm params \n\n```js\nutm.strict('?utm_source=google\u0026utm_medium=medium\u0026utm_term=keyword\u0026utm_content=some%20content\u0026utm_campaign=some%20campaign\u0026utm_test=other%20value');\n```\n\n```json\n{\n  \"source\": \"google\",\n  \"medium\": \"medium\",\n  \"term\": \"keyword\",\n  \"content\": \"some content\",\n  \"name\": \"some campaign\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Futm-params","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegmentio%2Futm-params","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Futm-params/lists"}