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

@snowplow/browser-plugin-link-click-tracking

Package Overview
Dependencies
Maintainers
3
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowplow/browser-plugin-link-click-tracking

Link Click tracking for Snowplow

  • 4.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created

What is @snowplow/browser-plugin-link-click-tracking?

@snowplow/browser-plugin-link-click-tracking is a plugin for the Snowplow JavaScript tracker that enables automatic tracking of link clicks on a webpage. It helps in capturing user interactions with links, which can be useful for analytics and understanding user behavior.

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

Automatic Link Click Tracking

This feature allows you to automatically track clicks on links across your website. By integrating the LinkClickTrackingPlugin with the Snowplow tracker, you can capture link click events without manually adding event listeners.

const { newTracker } = require('@snowplow/browser-tracker');
const { LinkClickTrackingPlugin } = require('@snowplow/browser-plugin-link-click-tracking');

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

Custom Link Click Tracking

This feature allows you to customize which link clicks are tracked by providing a filter function. In this example, only clicks on links that include 'example.com' in their href attribute will be tracked.

const { newTracker } = require('@snowplow/browser-tracker');
const { LinkClickTrackingPlugin } = require('@snowplow/browser-plugin-link-click-tracking');

newTracker('sp1', '{{collector_url}}', { plugins: [ LinkClickTrackingPlugin({
  filter: function (element) {
    return element.href && element.href.includes('example.com');
  }
}) ] });

Other packages similar to @snowplow/browser-plugin-link-click-tracking

FAQs

Package last updated on 28 Nov 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