Skip to main content

Overview

Trodo can be installed via CDN script, npm package, or through tag managers. Choose the method that best fits your tech stack.

Verification

After installation, verify it’s working:

1. Check Browser Console

Open developer tools (F12) and look for:
[Trodo] Initialized successfully
[Trodo] Session started: abc123
[Trodo] Event tracked: page_view

2. Check Live Events

  1. Go to your Trodo dashboard
  2. Navigate to Live Events or Debugger
  3. Perform actions on your site
  4. Events should appear within 60 seconds

3. Network Tab

In browser dev tools → Network tab, look for requests to:
  • api.trodo.ai/events
  • api.trodo.ai/sessions

Troubleshooting

Add these domains to your CSP:
script-src 'self' https://cdn.trodo.ai;
connect-src 'self' https://api.trodo.ai;
  1. Verify Site ID is correct
  2. Check domain is whitelisted in settings
  3. Disable ad blockers temporarily
  4. Check browser console for errors
Ensure the script is only loaded once. If using both CDN and npm, choose one.
The CDN script is ~15KB gzipped. If performance is critical:
  1. Use async loading (default)
  2. Consider npm package for bundling
  3. Load after critical resources

Next Steps

Auto-Events

Configure automatic event tracking

Track Custom Events

Learn the track() method