Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@snowplow/browser-plugin-form-tracking

Package Overview
Dependencies
Maintainers
0
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowplow/browser-plugin-form-tracking

Form tracking for Snowplow

  • 4.1.1-dev.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
133K
increased by6.66%
Maintainers
0
Weekly downloads
 
Created

What is @snowplow/browser-plugin-form-tracking?

@snowplow/browser-plugin-form-tracking is a plugin for the Snowplow JavaScript tracker that allows you to track form interactions on your website. It helps in capturing form submissions, field changes, and other form-related events, providing valuable insights into user behavior and form performance.

What are @snowplow/browser-plugin-form-tracking's main functionalities?

Track Form Submissions

This feature allows you to track when a form is submitted. By enabling form tracking, the plugin will automatically capture form submission events and send them to the Snowplow collector.

const { newTracker } = require('@snowplow/browser-tracker');
const { FormTrackingPlugin } = require('@snowplow/browser-plugin-form-tracking');

newTracker('sp1', '{{collector_url}}', { plugins: [ FormTrackingPlugin() ] });

window.snowplow('enableFormTracking');

Track Field Changes

This feature allows you to track changes to form fields. By setting the `trackFieldChanges` option to true, the plugin will capture events whenever a form field value is changed.

const { newTracker } = require('@snowplow/browser-tracker');
const { FormTrackingPlugin } = require('@snowplow/browser-plugin-form-tracking');

newTracker('sp1', '{{collector_url}}', { plugins: [ FormTrackingPlugin() ] });

window.snowplow('enableFormTracking', { trackFieldChanges: true });

Custom Form Tracking

This feature allows you to specify which forms to track by providing a list of form selectors. This is useful if you only want to track specific forms on your website.

const { newTracker } = require('@snowplow/browser-tracker');
const { FormTrackingPlugin } = require('@snowplow/browser-plugin-form-tracking');

newTracker('sp1', '{{collector_url}}', { plugins: [ FormTrackingPlugin() ] });

window.snowplow('enableFormTracking', { forms: ['#myForm'] });

Other packages similar to @snowplow/browser-plugin-form-tracking

FAQs

Package last updated on 16 Dec 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc