Learn how to track your first visit & event using Vue.
Before proceeding, ensure you:
Have installed Vue
Get started here
Get your workspace ID
Sign up on Litlyx Dashboard and create a new workspace.
Choose your package manager & install the library.
Now import litlyx in your entry-point
file. Normally in Vue 2, it is called main.vue
or if you use Vue 3 app.vue
.
Next, initialize Litlyx library with your workspace in your entry-point file as follow:
This line of code will immediately start collecting web analytics such as: Page Visits
, Real-Time Users
, Referrers
, Bounce Rate
, Countries
, Unique Visitor Sessions
, OS
& Devices
.
To customize your experience, add the following line in each function you desire. There is no limit to the number of events.
If you want to exercise more control over your events, you can use the metadata
field.
In your dashboard, you can group them in the Events
tab with the Event Metadata Analyzer
.
Use litlyx in your Vue 2 or Vue 3 app at ease.
Learn how to track your first visit & event using Vue.
Before proceeding, ensure you:
Have installed Vue
Get started here
Get your workspace ID
Sign up on Litlyx Dashboard and create a new workspace.
Choose your package manager & install the library.
Now import litlyx in your entry-point
file. Normally in Vue 2, it is called main.vue
or if you use Vue 3 app.vue
.
Next, initialize Litlyx library with your workspace in your entry-point file as follow:
This line of code will immediately start collecting web analytics such as: Page Visits
, Real-Time Users
, Referrers
, Bounce Rate
, Countries
, Unique Visitor Sessions
, OS
& Devices
.
To customize your experience, add the following line in each function you desire. There is no limit to the number of events.
If you want to exercise more control over your events, you can use the metadata
field.
In your dashboard, you can group them in the Events
tab with the Event Metadata Analyzer
.
Use litlyx in your Vue 2 or Vue 3 app at ease.