Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@formspark/formtrack
Advanced tools
Automatically inject UTM parameters into your HTML form submissions
Automatically inject UTM parameters into your HTML form submissions.
Sponsored by Formspark, the simple & powerful form solution for developers.
Marketers use UTM parameters to track the effectiveness of online campaigns across traffic sources and publishing media. The parameters identify the campaign that refers traffic to a specific website, and can be parsed by analytics tools and used to populate reports.
Copying these parameters and injecting them into your form submissions manually is tedious and error-prone, we built Formtrack to automate this integration.
Add the Formtrack script.
<script src="https://unpkg.com/@formspark/formtrack" async></script>
Add a data-formtrack
attribute to your form element.
<form action="https://submit-form.com" data-formtrack>
<input type="text" name="message" />
<button type="submit">Send</button>
</form>
Formtrack will now automatically inject the supported parameters into your HTML form submissions.
Parameter | Purpose | Example |
---|---|---|
referrer | Identifies which site sent the traffic, not an official parameter. | referrer=producthunt |
utm_source | Identifies which site sent the traffic, and is a required parameter. | utm_source=google |
utm_medium | Identifies what type of link was used, such as cost per click or email. | utm_medium=cpc |
utm_campaign | Identifies a specific product promotion or strategic campaign. | utm_campaign=spring_sale |
utm_term | Identifies search terms. | utm_term=running+shoes |
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 |
FAQs
Automatically inject UTM parameters into your HTML form submissions
The npm package @formspark/formtrack receives a total of 489 weekly downloads. As such, @formspark/formtrack popularity was classified as not popular.
We found that @formspark/formtrack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.