{"id":20466379,"url":"https://github.com/mahnunchik/utm-builder","last_synced_at":"2025-03-05T12:30:32.644Z","repository":{"id":20560825,"uuid":"23840893","full_name":"mahnunchik/utm-builder","owner":"mahnunchik","description":"utm builder","archived":false,"fork":false,"pushed_at":"2020-05-23T12:00:59.000Z","size":23,"stargazers_count":8,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T02:16:13.262Z","etag":null,"topics":["utm","utm-builder","utm-campaign","utm-medium","utm-source","utm-term"],"latest_commit_sha":null,"homepage":null,"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/mahnunchik.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}},"created_at":"2014-09-09T16:13:03.000Z","updated_at":"2024-06-22T15:52:18.000Z","dependencies_parsed_at":"2022-08-21T18:40:55.887Z","dependency_job_id":null,"html_url":"https://github.com/mahnunchik/utm-builder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahnunchik%2Futm-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahnunchik%2Futm-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahnunchik%2Futm-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahnunchik%2Futm-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahnunchik","download_url":"https://codeload.github.com/mahnunchik/utm-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242028124,"owners_count":20060214,"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":["utm","utm-builder","utm-campaign","utm-medium","utm-source","utm-term"],"created_at":"2024-11-15T13:23:14.063Z","updated_at":"2025-03-05T12:30:32.568Z","avatar_url":"https://github.com/mahnunchik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# utm-builder [![Build Status](https://travis-ci.org/mahnunchik/utm-builder.svg?branch=master)](https://travis-ci.org/mahnunchik/utm-builder)\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/mahnunchik/utm-builder.svg)](https://greenkeeper.io/)\n\n`utm-builder` adds custom campaign parameters to your URLs.\n\n## Installation\n\n```\n$ npm install utm-builder --save\n```\n\n## API\n\n`utm-builder` exports one function with the following signature:\n\n### builder(link, source, medium, campaign, content, term)\n\n* **link** *String* - original URL\n* **source** *String* - campaign source, will be `utm_source` parameter\n* **medium** *String* - campaign medium, will be `utm_medium` parameter\n* **campaign** *String* - campaign name, will be `utm_campaign` parameter\n* **content** *String* - campaign content, will be `utm_content` parameter (optional)\n* **term** *String* - campaign term, will be `utm_term` parameter (optional)\n\n## More information for each parameter\n\n[Google URL builder](https://support.google.com/analytics/answer/1033867?hl=en)\n\n### Campaign Source (utm_source)\n\nRequired. Use utm_source to identify a search engine, newsletter name, or other source.\n\nExample: utm_source=google\n\n### Campaign Medium (utm_medium)\n\nRequired. Use utm_medium to identify a medium such as email or cost-per-click.\n\nExample: utm_medium=cpc\n\n### Campaign Name (utm_campaign)\n\nUsed for keyword analysis. Use utm_campaign to identify a specific product promotion or strategic campaign.\n\nExample: utm_campaign=spring_sale\n\n### Campaign Content (utm_content)\n\nOptional. Used for A/B testing and content-targeted ads. Use utm_content to differentiate ads or links that point to the same URL.\n\nExamples: utm_content=logolink or utm_content=textlink\n\n### Campaign Term (utm_term)\n\nOptional. Used for paid search. Use utm_term to note the keywords for this ad.\n\nExample: utm_term=running+shoes\n\n## License\n\n[MIT](https://github.com/mahnunchik/utm-builder/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahnunchik%2Futm-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahnunchik%2Futm-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahnunchik%2Futm-builder/lists"}