Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vemetric/vemetric/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This guide covers common issues you might encounter when integrating Vemetric and provides step-by-step solutions to resolve them.Events Not Appearing
Events Not Showing in Dashboard
Check if events are being sent
Check if events are being sent
Diagnosis: Open browser DevTools and check the Network tab.What to look for:
- Requests to
https://hub.vemetric.com/e(event endpoint) - Request should return
200 OKstatus - Request payload should contain event data
- No requests: SDK not initialized or event tracking code not executed
- 404 or 400 errors: Invalid endpoint URL or malformed request
- CORS errors: Cross-origin request blocked
Verify project token
Verify project token
Problem: Using incorrect or missing project token.Diagnosis:Solution:
- Log in to your Vemetric dashboard
- Go to Project Settings
- Copy the correct project token
- Update your initialization code:
Check for bot filtering
Check for bot filtering
Problem: Your requests are being identified as bot traffic.How Vemetric detects bots:
- User agent matching known bot patterns
- Automated testing tools (Selenium, Puppeteer)
- Missing or suspicious headers
- Use a real browser (not headless)
- Ensure user agent is set correctly
- For automated tests, add the user agent to allowed list
IP or country exclusion
IP or country exclusion
Problem: Your IP address or country is in the exclusion list.Check exclusion settings:
- Go to Project Settings
- Look for “Excluded IPs” and “Excluded Countries”
- Verify your IP/country is not listed
- Request returns
200 OK(appears successful) - No data is stored or processed
- Events silently dropped
- Remove your IP from exclusion list
- Disable country exclusions during testing
- Use a VPN to test from different locations
Prefetch requests
Prefetch requests
Problem: Browser is prefetching pages, and those events are being filtered.How Vemetric detects prefetch:Verification:
- Check request headers in Network tab
- Look for prefetch-related headers
- These requests are intentionally ignored
SDK Integration Issues
SDK Not Loading
Initialization Errors
Missing required configuration
Missing required configuration
Error:
Token is requiredCause: Initialization called without project token.Solution:Multiple initializations
Multiple initializations
Warning:
Vemetric already initializedCause: init() called more than once.Solution:User Identification Issues
Users Not Being Identified
Check identification request
Look for requests to Request should:
/i endpoint in Network tab:- POST to
https://hub.vemetric.com/i - Return
200 OKor202 Accepted - Include identifier in payload
Verify identifier format
Requirements:
- Must be a non-empty string
- Should be unique per user
- Can be email, user ID, or custom identifier
Check for concurrent identifications
Problem: Multiple identify calls for the same user happening simultaneously.What happens:
- Only the first call acquires a lock
- Subsequent calls return
202 Accepted(“already running”) - This is expected behavior to prevent race conditions
User Merging Not Working
Scenario: User browses anonymously, then logs in. Events should merge to identified user.Understanding user merging
Understanding user merging
How it works:Common issues:
- Anonymous user visits site → User ID generated (e.g.,
1234567890) - Events tracked with anonymous ID
- User logs in →
identify()called with email - System finds existing user with that email
- Anonymous events merged to identified user
- Cookie updated with identified user’s ID
- Identification called too late (after session ends)
- Different project tokens used before/after login
- User already identified with different email
Cookie Issues
Cookie Not Being Set
Check if cookies are allowed
Check if cookies are allowed
HTTPS requirement
HTTPS requirement
Problem: Cookie not set on HTTP sites.Why: Vemetric uses
Secure flag, which requires HTTPS.Solution:- Use HTTPS in production (required)
- For local development, use
https://localhostor disable secure cookies:
SameSite restrictions
SameSite restrictions
Problem: Cookie blocked due to SameSite policy.Browser console error:Causes:
- Missing
Secureattribute - Browser blocking third-party cookies
- Tracking prevention enabled
- Ensure HTTPS is used
- Inform users about cookie requirements
- Use cookieless tracking as fallback:
Third-party cookie blocking
Third-party cookie blocking
Cookie Domain Issues
Scenario: Cookie not accessible across subdomains.Inspect cookie in DevTools
- Open browser DevTools
- Go to Application/Storage → Cookies
- Look for
_vuidcookie - Check the Domain column
Verify domain format
Correct formats:
.example.com(with leading dot - works on all subdomains)example.com(works on example.com and subdomains)
www.example.com(only works on www subdomain)https://example.com(includes protocol - invalid)
Session Tracking Issues
Sessions Breaking Unexpectedly
Session timeout
Session timeout
Behavior: Sessions expire after 30 minutes of inactivity.How it works:Expected: Session ID changes after 30 minutes of inactivity.
- Each page view or event extends the session by 30 minutes
- If 30 minutes pass with no activity, session ends
- Next event creates a new session
Cookie deletion
Cookie deletion
Multiple Sessions for Same User
Causes:- Switching between devices/browsers
- Cookieless tracking with changing IP or user agent
- Clearing cookies between visits
- Using incognito/private mode
identify() to merge sessions:
Performance Issues
Slow Page Loads
Load SDK asynchronously
Load SDK asynchronously
Prevent blocking page render:Handle async initialization:
Batch events
Batch events
Problem: Sending too many individual events.Solution: Batch non-critical events:
Reduce event payload size
Reduce event payload size
Problem: Large custom properties slow down requests.Solution:
Network and CORS Issues
CORS Errors
Error:Access to fetch at 'https://hub.vemetric.com/e' from origin 'https://example.com' has been blocked by CORS policy
Cause: Cross-Origin Resource Sharing configuration issue.
Solutions:
Check origin header
Ensure the
Origin header matches your actual domain:- Should be
https://example.com(nothttp://) - Should not include trailing slash
- Should match exactly what’s in the browser address bar
Request Timeouts
Problem: Event requests timing out. Diagnosis:- Check network connectivity
- Verify firewall isn’t blocking requests
- Test from different networks
- Contact Vemetric support if persistent
Debugging Tools
Enable Debug Mode
Browser Console Checks
Network Tab Inspection
What to look for in browser DevTools Network tab:-
Event tracking (
/eendpoint):- Method: POST
- Status: 200 OK
- Response: Empty (200 status is success)
-
User identification (
/iendpoint):- Method: POST
- Status: 200 OK or 202 Accepted
- Response: Empty
-
Headers to verify:
Content-Type: application/jsonallow-cookies: true/falsev-sdk,v-sdk-versionv-host(if using subdomains)
-
Request payload:
- Should be valid JSON
- Contains event name and properties
- No sensitive data leaked
Getting Help
Documentation
Review the full Vemetric documentation for detailed guides.
GitHub Issues
Report bugs or request features on GitHub.
Community Support
Join the Vemetric community for help from other users.
Contact Support
Reach out to Vemetric support for personalized assistance.
When reporting issues, include:
- Browser and version
- SDK version
- Console errors/warnings
- Network request details
- Steps to reproduce