StoreMetrics Docs

StoreMetrics Docs

Search product docs or ask for an answer based on the docs.

Install

Mobile (React Native / Expo)

Same site id. Screens and custom events inside the app.

Mobile

Web and mobile can share one StoreMetrics site so one customer journey stays one customer.

Idea

Use the mobile SDK pattern from Settings → Install platform → React Native or Expo.

createStoreMetricsClient({
  siteId: "YOUR_SITE_KEY",
  apiBaseUrl: process.env.EXPO_PUBLIC_VELORA_URL || process.env.VELORA_URL,
});

velora.identify({ userId: "user_123" });
velora.screen("Home");
velora.track("purchase_started", { value: 129 });

Do this

  1. Select React Native or Expo as the install platform in Settings.
  2. Copy the generated client snippet.
  3. Identify after login.
  4. Screen on navigation changes.
  5. Track meaningful commerce moments (not every tap).

Prompt

Wire StoreMetrics mobile analytics into this React Native / Expo app.

Site id: YOUR_SITE_KEY
API base: YOUR_VELORA_URL

Requirements:
- Initialize the client once at app boot
- identify() after auth
- screen() on major navigations
- track() for checkout/purchase funnel steps
- Show file diffs

Do not log PII into event names.

Note

The web tracker exposes window.velora("identify", …). Custom track / screen are for the mobile path shown in Settings.