Learn how to track your first visit & event using React.
Have installed React
Get your workspace ID
entry-point
file. The easiest way in React is in the file App.tsx
.
App.tsx
in this example) as follow:
Page Visits
, Real-Time Users
, Referrers
, Bounce Rate
, Countries
, Unique Visitor Sessions
, OS
& Devices
.
App.tsx
in this example):
metadata
field.
Events
tab with the Event Metadata Analyzer
.
count
is a variable declared in App.tsx
in the default structure if you used Vite. Otherwise, create your custom variable to listen to the click event.