{"id":20455888,"url":"https://github.com/formspark/formtrack","last_synced_at":"2025-04-13T03:42:39.449Z","repository":{"id":36954764,"uuid":"324585404","full_name":"formspark/formtrack","owner":"formspark","description":"Automatically inject UTM parameters into your HTML form submissions","archived":false,"fork":false,"pushed_at":"2023-11-02T13:37:05.000Z","size":648,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T13:18:23.555Z","etag":null,"topics":["form","forms","tracking","utm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/formspark.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":"2020-12-26T15:43:18.000Z","updated_at":"2022-11-17T18:06:08.000Z","dependencies_parsed_at":"2022-08-21T13:30:37.742Z","dependency_job_id":null,"html_url":"https://github.com/formspark/formtrack","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formspark%2Fformtrack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formspark%2Fformtrack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formspark%2Fformtrack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formspark%2Fformtrack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/formspark","download_url":"https://codeload.github.com/formspark/formtrack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248363060,"owners_count":21091266,"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":["form","forms","tracking","utm"],"created_at":"2024-11-15T11:20:20.021Z","updated_at":"2025-04-13T03:42:39.430Z","avatar_url":"https://github.com/formspark.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n   \u003cimg width=\"64\" src=\"logo.svg\" alt=\"Formtrack logo\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eFormtrack\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    Automatically inject UTM parameters into your HTML form submissions.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    Sponsored by \u003ca href=\"https://formspark.io\"\u003eFormspark\u003c/a\u003e, the simple \u0026 powerful form solution for developers.\n\u003c/p\u003e\n\n[![Continuous deployment](https://github.com/formspark/formtrack/workflows/Continuous%20deployment/badge.svg)](https://github.com/formspark/formtrack/actions?query=workflow%3A%22Continuous+deployment%22)\n\n## About\n\nMarketers use UTM parameters to track the effectiveness of online campaigns across traffic sources and publishing media.\nThe parameters identify the campaign that refers traffic to a specific website and can be parsed by analytics tools and used to populate reports.\n\nCopying these parameters and injecting them into your form submissions manually is tedious and error-prone, we built Formtrack to automate this process.\n\n## Installation \u0026 usage\n\nAdd the Formtrack script.\n\n```html\n\u003cscript src=\"https://unpkg.com/@formspark/formtrack\" async\u003e\u003c/script\u003e\n```\n\nAdd a `data-formtrack` attribute to your form element.\n\n```html\n\u003cform action=\"https://submit-form.com\" data-formtrack\u003e\n  \u003cinput type=\"text\" name=\"message\" /\u003e\n  \u003cbutton type=\"submit\"\u003eSend\u003c/button\u003e\n\u003c/form\u003e\n```\n\nFormtrack will now automatically inject the supported parameters into your HTML form submissions.\n\n## Supported parameters\n\n| Parameter    | Purpose                                                                                                                                                                | Example                                      |\n| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |\n| ref          | Identifies which site sent the traffic, not an official parameter.                                                                                                     | ref=producthunt                              |\n| referrer     | Identifies which site sent the traffic, not an official parameter.                                                                                                     | referrer=producthunt                         |\n| utm_source   | Identifies which site sent the traffic, and is a required parameter.                                                                                                   | utm_source=google                            |\n| utm_medium   | Identifies what type of link was used, such as cost per click or email.                                                                                                | utm_medium=cpc                               |\n| utm_campaign | Identifies a specific product promotion or strategic campaign.                                                                                                         | utm_campaign=spring_sale                     |\n| utm_term     | Identifies search terms.                                                                                                                                               | utm_term=running+shoes                       |\n| utm_content  | Identifies what specifically was clicked to bring the user to the site, such as a banner ad or a text link. It is often used for A/B testing and content-targeted ads. | utm_content=logolink or utm_content=textlink |\n\n## Custom parameters\n\nYou have the flexibility to define a list of custom parameters.\n\nInclude a `data-formtrack-params` attribute within your form element, and populate it with a comma-separated list of the desired parameters.\n\n```html\n\u003cform\n  action=\"https://submit-form.com\"\n  data-formtrack\n  data-formtrack-params=\"custom_param_1,custom_param_2\"\n\u003e\n  ...\n\u003c/form\u003e\n```\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformspark%2Fformtrack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fformspark%2Fformtrack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformspark%2Fformtrack/lists"}