Install Piqo on Expo

For Expo Router web builds. React Native (iOS/Android) isn't supported yet.

  1. Open your root layout (app/_layout.tsx with Expo Router).
  2. Inject the script when the app mounts on web.
  3. Re-deploy your web build.
// app/_layout.tsx
import { useEffect } from 'react';
import { Platform } from 'react-native';
import { Slot } from 'expo-router';

export default function RootLayout() {
  useEffect(() => {
    if (Platform.OS !== 'web') return;
    const s = document.createElement('script');
    s.defer = true;
    s.src = 'https://piqo.app/piqo.js';
    s.setAttribute('data-site', 'YOUR_SITE_ID');
    document.head.appendChild(s);
  }, []);
  return <Slot />;
}
Native (iOS/Android): Piqo is a web-analytics tool — it tracks browser sessions. For native app analytics, we recommend pairing it with a mobile-specific SDK.