New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@snowplow/browser-plugin-performance-timing

Package Overview
Dependencies
Maintainers
3
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowplow/browser-plugin-performance-timing

Attaches Performance Timing data to Snowplow events

  • 3.1.1-beta.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created

What is @snowplow/browser-plugin-performance-timing?

@snowplow/browser-plugin-performance-timing is a plugin for the Snowplow JavaScript tracker that allows you to capture and track performance timing metrics from the browser. This can be useful for monitoring and analyzing the performance of your web applications.

What are @snowplow/browser-plugin-performance-timing's main functionalities?

Initialize Performance Timing Tracking

This code initializes the Snowplow tracker with the Performance Timing plugin. It sets up the tracker to start capturing performance timing metrics from the browser.

const { newTracker } = require('@snowplow/browser-tracker');
const { PerformanceTimingPlugin } = require('@snowplow/browser-plugin-performance-timing');

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

Track Performance Timing Events

This code demonstrates how to manually track a performance timing event. It captures the 'navigationStart' timing and sends it as an event to the Snowplow collector.

const { trackPerformanceTiming } = require('@snowplow/browser-plugin-performance-timing');

trackPerformanceTiming({
  category: 'Page Load',
  action: 'load',
  label: 'homepage',
  property: 'navigationStart',
  value: performance.timing.navigationStart
});

Other packages similar to @snowplow/browser-plugin-performance-timing

FAQs

Package last updated on 03 Aug 2021

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