Tracking events and identifying people
Send custom events and conversions from your website with the elexy() command.
3 min readFor Developers
elexy('event', 'signup_started', { plan: 'pro' });
elexy('conversion', { name: 'purchase', value: 1499, currency: 'INR', orderId: 'A-1001' });
elexy('identify', { userId: 'CRM-12345' }); // your own id, never an email or phone
elexy('onConsent', (choice) => console.log(choice));
elexy('showPreferences'); // reopen the cookie settings- Page views, scrolls, outbound clicks, downloads, form submits and Web Vitals are tracked automatically.
- Single-page apps (React, Next.js, Vue) are handled automatically.
- Events respect the visitor's consent: without analytics consent nothing identifying is sent, and
identifyneeds marketing or personalization consent.