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

@hotjar/browser

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hotjar/browser

Bring Hotjar directly to your application

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
128K
increased by6.64%
Maintainers
2
Weekly downloads
 
Created

What is @hotjar/browser?

@hotjar/browser is an npm package that allows developers to integrate Hotjar's analytics and feedback tools into their web applications. It provides functionalities for tracking user interactions, collecting feedback, and analyzing user behavior to improve the user experience.

What are @hotjar/browser's main functionalities?

Initialize Hotjar

This feature allows you to initialize Hotjar with your unique Hotjar ID and snippet version. This is the first step to start using Hotjar's functionalities in your application.

const hotjar = require('@hotjar/browser');
hotjar.initialize('YOUR_HOTJAR_ID', 'YOUR_HOTJAR_SNIPPET_VERSION');

Track Page Views

This feature allows you to track page views. It helps in understanding which pages are being visited and how users navigate through your site.

hotjar.trackPageView();

Identify Users

This feature allows you to identify users with a unique ID and additional properties. It helps in tracking user-specific behavior and personalizing the user experience.

hotjar.identify('USER_ID', { userProperty: 'value' });

Trigger Events

This feature allows you to trigger custom events. It helps in tracking specific actions or interactions that are important for your analysis.

hotjar.event('EVENT_NAME');

Feedback Polls

This feature allows you to trigger feedback polls. It helps in collecting user feedback directly from your web application.

hotjar.feedback('FEEDBACK_ID');

Other packages similar to @hotjar/browser

FAQs

Package last updated on 08 Dec 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