Web
Web SDK
Last updated
Web SDK
Last updated
The Evntaly Web SDK is a lightweight JavaScript library designed to simplify event tracking, user identification, and analytics on web applications.
The Evntaly Web SDK can be added directly to your web application using a CDN.
Automatically track events by adding data-event
attributes to HTML elements.
For custom event tracking, use the track method.
Identify a user to associate events with a specific profile.
Control event tracking globally.
init
Initializes the SDK with API credentials.
window.evntalySet(token, projectName)
v1.0.0
track
Manually tracks a custom event.
window.evntaly('track', eventData)
v1.0.0
identifyUser
Identifies a user for analytics.
window.evntaly('identifyUser', userData)
v1.0.0
disableTracking
Disables all event tracking.
window.evntaly('disableTracking')
v1.0.0
enableTracking
Enables all event tracking.
window.evntaly('enableTracking')
v1.0.0
trackPageView
Automatically tracks page views.
window.evntaly('trackPageView')
Soon
Initialize early: Always initialize the SDK as soon as possible.
Avoid sensitive data: Do not pass sensitive personal data directly to the SDK.
Test thoroughly: Ensure the event tracking aligns with your analytics goals.
Events not sending: Check if the SDK is correctly initialized with valid API tokens.
Network errors: Make sure the network allows outbound requests to https://evntaly.com
.
For more help, contact support at support@evntaly.com.