Web
Web SDK
The Evntaly Web SDK is a lightweight JavaScript library designed to simplify event tracking, user identification, and analytics on web applications.
Installation and Initialization
The Evntaly Web SDK can be added directly to your web application using a CDN.
Automatic Event Tracking
Automatically track events by adding data-event attributes to HTML elements.
Manual Event Tracking
For custom event tracking, use the track method.
User Identification
Identify a user to associate events with a specific profile.
Enabling and Disabling Tracking
Control event tracking globally.
Methods
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
Best Practices
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.
Troubleshooting
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.
Support
For more help, contact support at support@evntaly.com.
Last updated