Prerequisites
Expo
Getting started
yarn add vexo-analytics or npm install vexo-analytics in your project. If you are using bare React Native, run pod install in the iOS folder.index.js, App.js or _layout.tsx if you're using Expo Router):import { vexo } from 'vexo-analytics';
// You may want to wrap this with `if (!__DEV__) { ... }` to only run Vexo in production.
vexo('YOUR_API_KEY');
vexo-analytics package includes native code).Wait, that's it? Yes! That's it. With that ease of integration experience you get an incredible set of features, go check them out!
Getting started
To start collecting Web analytics data, paste the following script into your site’s <head> tag:
<script src="https://www.vexo.co/analytics.js" defer></script>
You can enhance your analytics by tracking custom events and identifying devices:
global?.vexo?.customEvent('purchased-completed', { amount: 24.99 });
global?.vexo?.identifyDevice('user@example.com');
That’s it! Once the script is live on your site, Vexo will start capturing user sessions, session replays, custom events, and more — just like it does on mobile.