react-umami

1.0.1 • Public • Published

react-umami

this package is a class to easy integrate umami in your react projects.

quickStart

install the package :

npm i react-umami

create a react_umami class instance

const tracker = new react_umami(
		websiteId,
		hostname,
		umamiUrl
	);

then import it where you want to track view :

tracker.trackView("/");

or track event :

	tracker.trackEvent(eventType, eventValue, url);

Author :

Lucas Sovre portfolio

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i react-umami

      Weekly Downloads

      4

      Version

      1.0.1

      License

      ISC

      Unpacked Size

      3.05 kB

      Total Files

      3

      Last publish

      Collaborators

      • lucas_sovre