# Identify users Source: https://docs.replayfy.app/guides/identify-users Attach a known user to the session so replays, funnels, and filters are searchable by who did what. Call `identify` once you know who the user is — typically right after login. Every session before and after links to that user, and earlier anonymous sessions are associated retroactively. Pass a stable `distinctId` (your own user id) plus any traits you want to filter and segment on (`email`, `name`, `plan`, …). ```ts npm theme={null} replay.identify("user_123", { email: "ada@example.com", plan: "pro" }); ``` ```js Script tag theme={null} Replayfy.identify("user_123", { email: "ada@example.com", plan: "pro" }); ``` ```swift theme={null} Replay.identify("user_123", properties: ["email": "ada@example.com", "plan": "pro"]) ``` ```kotlin theme={null} Replay.identify("user_123", mapOf("email" to "ada@example.com", "plan" to "pro")) ``` ```tsx theme={null} Replay.identify("user_123", { email: "ada@example.com", plan: "pro" }); ``` ```dart theme={null} Replay.identify("user_123", properties: {"email": "ada@example.com", "plan": "pro"}); ``` `email`, `name`, `plan`, and `picture` are promoted to first-class user fields on the dashboard — filterable, and `picture` renders as the user's avatar. Any other trait is kept as searchable custom metadata. **Avatar** — set `picture` (or its alias `avatar`) to a public **https** image URL to show the user's avatar on the recording header and the Users list. It works as a top-level trait or nested inside `customProps`, so every SDK supports it today with no upgrade; non-URL values are ignored. ```ts npm theme={null} replay.identify("user_123", { email: "ada@example.com", picture: "https://cdn.example.com/u/123.png" }); // or, from any SDK, via custom properties: replay.identify("user_123", { customProps: { avatar: "https://cdn.example.com/u/123.png" } }); ``` ```js Script tag theme={null} Replayfy.identify("user_123", { email: "ada@example.com", picture: "https://cdn.example.com/u/123.png" }); // or, from any SDK, via custom properties: Replayfy.identify("user_123", { customProps: { avatar: "https://cdn.example.com/u/123.png" } }); ``` # Keyboard shortcuts Source: https://docs.replayfy.app/guides/keyboard-shortcuts Every keyboard shortcut in the Replayfy dashboard — replay transport, the command palette, workspace switching, and quick-create sequences. Replayfy is built to be driven from the keyboard. You can scrub a recording, jump between sessions, hop to any page, and create funnels or cohorts without ever reaching for the mouse. This page lists the shortcuts that actually ship in the dashboard, grouped by where they work. Shortcuts that use a modifier are written with the macOS keys (`⌘`, `⌥`, `⇧`). On Windows and Linux, use `Ctrl` wherever you see `⌘` and `Alt` wherever you see `⌥`. You can pull up an in-app cheat sheet at any time: open the account menu (your avatar, bottom-left of the dashboard) and choose **Keyboard shortcuts**. ## Session replay player These work while you have a recording open, for both web and mobile sessions. They are ignored while your cursor is in a text field, so typing a comment or a filter never triggers playback. | Action | Shortcut | | - | - | | Play / pause | `Space` or `K` | | Step backward | `←` | | Step forward | `→` | | Jump backward (larger step) | `⇧` `←` | | Jump forward (larger step) | `⇧` `→` | | Slow playback down | `J` | | Speed playback up | `L` | | Previous session | `[` | | Next session | `]` | | Toggle focus mode | `F` | | Exit focus mode | `Esc` | `J`, `K`, and `L` are the classic editor-style transport: `J` slows playback down, `L` speeds it up, and `K` (like `Space`) toggles play/pause. Playback speed steps through the same set you get from the speed button on the player — `0.25×` up to `4×`. **Focus mode** (`F`) expands the player into a distraction-free view that hides the surrounding panels so you can concentrate on the screen. Press `F` again or hit `Esc` to return to the full session view. The arrow keys nudge the playhead by a small amount; hold `⇧` for a bigger jump. Use them to land precisely on the moment just before a rage click or an error. ### Seeking with the mouse A few player actions are mouse-only — worth knowing alongside the keys: * **Click any event marker** on the scrubber to seek straight to that moment. * **Click and drag the scrubber** to scrub through the recording. * The **speed** control and **Skip idle time** button live in the player's hover controls at the bottom of the stage. ## Global & navigation These work anywhere in the dashboard. | Action | Shortcut | | - | - | | Open / close the command palette | `⌘` `K` | | Switch to workspace 1–9 | `⌘` `1` … `⌘` `9` | | Sign out | `⌥` `⇧` `Q` | `⌘1`–`⌘9` map to your workspaces in the order they appear in the workspace switcher, so `⌘1` is always your first workspace. ## Command palette Press `⌘K` to open the command palette — a single search box that jumps to pages, recordings, users, funnels, cohorts, playlists, and settings panels, and can kick off "New" actions. Start typing to filter; live results for recordings and users appear as you search. | Action | Shortcut | | - | - | | Open / close the palette | `⌘` `K` | | Move selection down | `↓` | | Move selection up | `↑` | | Open the highlighted result | `↵` Enter | | Close the palette | `Esc` | ## Quick-create sequences Create the most common objects with a two-key sequence: tap `N`, then the object's key. After you press `N` you have a short moment to press the second key. These are ignored while you are typing in a field. | Action | Shortcut | | - | - | | New funnel | `N` then `F` | | New cohort | `N` then `C` | | New playlist | `N` then `P` | | New alert | `N` then `A` | The same "New" actions are available inside the command palette (`⌘K`), which shows the matching `N` sequence next to each one — handy while you learn them. ## Recordings search & filters The **Recordings** list has its own search bar for building session filters (by user, URL, device, and more). While you are on that page: | Action | Shortcut | | - | - | | Focus the search / filter bar | `⌘` `K` | | Move through suggestions | `↑` / `↓` | | Apply the highlighted suggestion | `↵` Enter or `Tab` | | Accept the inline autocomplete | `Tab` | | Remove the last filter chip | `Backspace` (with the box empty) | | Close suggestions / leave the box | `Esc` | On the Recordings list, `⌘K` jumps straight into the filter bar instead of opening the global command palette — so you can start narrowing sessions immediately. Everywhere else in the dashboard, `⌘K` opens the palette. ## Quick reference `Space`/`K` play-pause, `←`/`→` step (add `⇧` for a bigger jump), `J`/`L` slow down / speed up, `[`/`]` previous / next session, `F` focus mode, `Esc` to leave focus mode. `⌘K` opens the command palette — search for any page, recording, user, funnel, cohort, or settings panel, then `↑`/`↓` and `↵` to jump to it. Tap `N`, then `F` (funnel), `C` (cohort), `P` (playlist), or `A` (alert). Or open `⌘K` and pick the matching "New" action. `⌘1`–`⌘9` switch straight to a workspace by its position in the switcher. `⌥⇧Q` signs you out. Watch, scrub, and share recordings of real sessions. Build filters and search to surface the sessions that matter. Install a Replayfy SDK and start capturing sessions. # Privacy & masking Source: https://docs.replayfy.app/guides/privacy-and-masking Keep sensitive data off the wire — mask or block any element, field, or region before it's ever sent. Replayfy is private by default: text inputs are redacted before anything leaves the device. You control exactly what's captured on top of that — per element, per region, or globally — and dashboard settings override your in-code config, so you can tighten masking without shipping a new build. ## Mask everything at once Turn on `maskAllInputs` (on by default on web) to redact the value of every input: ```ts npm theme={null} initReplay({ apiKey: "rpl_pk_YOUR_KEY", maskAllInputs: true }); ``` ```js Script tag theme={null} Replayfy.init({ apiKey: "rpl_pk_YOUR_KEY", maskAllInputs: true }); ``` ```swift theme={null} Replay.start(with: ReplayConfig(apiKey: "rpl_pk_YOUR_KEY", maskAllInputs: true)) ``` ```kotlin theme={null} ReplayConfig(apiKey = "rpl_pk_YOUR_KEY", maskAllInputs = true) ``` ```tsx theme={null} Replay.start({ apiKey: "rpl_pk_YOUR_KEY", maskAllInputs: true }); ``` ```dart theme={null} Replay.start(const ReplayConfig(apiKey: "rpl_pk_YOUR_KEY", maskAllInputs: true)); ``` ## Mask specific elements Add `rpf-mask` to redact an element's text/value, or `rpf-block` to blank the whole element (great for third-party embeds): ```html theme={null} 4111 1111 1111 1111
``` Customize the selectors with `maskTextSelector` and `blockSelector` in config.
Occlude any view's region (SwiftUI), and choose how masked regions render: ```swift theme={null} myView.replayOcclude() // mask this view Replay.setMaskStyle(.blur) // .blur (default) · .overlay · .pixelate ``` `replayOcclude(blockGestures:)` also suppresses taps on the masked region. ```kotlin theme={null} Replay.setMaskStyle(ReplayMaskStyle.BLUR) // BLUR (default) or OVERLAY ``` Tag views to mask them, or mask whole screens — see the Android SDK page for view-level masking. Wrap anything sensitive in ``: ```tsx theme={null} import { ReplayMask, ReplayMaskStyle } from "@replayfyapp/react-native"; ; ``` Wrap sensitive widgets in `ReplayMask`, and set the global style: ```dart theme={null} ReplayMask(child: CreditCardField()); await Replay.setMaskStyle(ReplayMaskStyle.pixelate); // blur · overlay · pixelate ```
Masking happens on-device, before capture — masked content is never transmitted or stored. There's no way to un-mask it later, so err toward masking anything sensitive. # Search & filters Source: https://docs.replayfy.app/guides/search-and-filters Find any recording fast with Replayfy's filter grammar — signals, users, pages, devices, platform, country, and session duration. The **Recordings** search bar turns "I need the sessions where checkout broke on mobile" into a precise query in a few keystrokes. It combines free-text search with a small, well-defined filter grammar: every filter you can type is one Replayfy can actually apply, so the list you get back always matches the chips above it. This page covers the full grammar — the filter keys, their values, and how to combine them — plus the scoped views you land in when you drill in from a playlist, funnel, incident, or issue. ## Open the search bar Open [app.replayfy.app](https://app.replayfy.app) and select **Recordings** in the sidebar. Click the search field at the top of the recordings rail, or press ⌘K (macOS) / Ctrl+K (Windows/Linux) anywhere on the page. An empty field shows **Suggested filters**, **Saved filters**, and your **Recent searches**. Start typing a key (like `user:` or `has:`) and Replayfy autocompletes the values from your own workspace data. Everything Replayfy offers in the dropdown is a filter it can apply. If a dimension can't be filtered on yet, it simply isn't suggested — so a chip never quietly returns unfiltered results. ## The filter grammar A filter is a **key**, an **operator**, and a **value** — for example `browser:Chrome`. Most keys use `:` ("is"); duration uses `>` ("greater than"). | Key | Operator | Example | Matches | | - | - | - | - | | `has` | `:` | `has:error` | Sessions containing a signal (see below) | | `user` | `:` | `user:jenny@acme.io` | An identified user, by email, name, or ID | | `page` | `:` | `page:/checkout` | Sessions that visited a path | | `browser` | `:` | `browser:Chrome` | Browser name | | `device` | `:` | `device:Mobile` | Device type (Desktop / Mobile / Tablet) | | `model` | `:` | `model:iPhone 15` | Hardware model | | `platform` | `:` | `platform:ios` | Platform — `web`, `ios`, or `android` | | `country` | `:` | `country:US` | Visitor country (two-letter code) | | `duration` | `>` | `duration:>2m` | Session length is at least this long | Filters **combine with AND** — each chip you add narrows the result set further. There is no OR or "is not"; to explore an alternative, clear a chip and try the other value. Free-typed text that isn't a recognized `key:value` is treated as a search term. ## Signals — `has:` The `has:` filter finds sessions that contain a specific experience signal. These are the moments worth watching: errors, frustration, and slow performance. | Value | Finds sessions with | | - | - | | `has:error` | A JavaScript / runtime error | | `has:rage` | A rage click (rapid repeated clicks on one spot) | | `has:dead click` | A dead click (a click that produced no response) | | `has:slow lcp` | A slow Largest Contentful Paint | | `has:long tasks` | Long main-thread tasks that blocked the UI | Values with spaces are typed exactly as shown — `has:dead click`, `has:slow lcp`, `has:long tasks`. Pick them from the dropdown to avoid typos. ```text Examples theme={null} has:error has:rage has:dead click ``` ## Filter by user `user:` scopes the list to one identified person. Start typing an email or name and pick the match from the **Users** group — Replayfy then filters by that exact user. ```text theme={null} user:jenny@acme.io ``` When you **pick a user from the suggestions**, Replayfy matches that specific person precisely. If you type a user string by hand without selecting a suggestion, it falls back to a text match. Free-text search, a `page:` filter, and a hand-typed `user:` all share a single text slot — so combine at most one of them per query, and pick the user from the list when you also want a page filter in the same search. ## Filter by page `page:` matches sessions that visited a given path. Paths come from your workspace's own traffic as you type. ```text theme={null} page:/checkout page:/settings/billing ``` A page value matches by substring, so `page:/checkout` finds every session that visited a URL containing `/checkout`. ## Device, browser, platform & country These describe *where* a session happened. Browser, device, device model, and country values are drawn from what your workspace has actually recorded, so the dropdown only ever offers real values. ```text theme={null} browser:Chrome browser:Safari ``` Filter by browser name. Values are suggested from your recorded sessions. ```text theme={null} device:Mobile model:iPhone 15 ``` `device:` filters by the broad device **type** (Desktop, Mobile, Tablet); `model:` filters by the specific **hardware model**. ```text theme={null} platform:web platform:ios platform:android ``` `platform:` is a fixed set — `web`, `ios`, or `android` — spanning your web and mobile SDKs. ```text theme={null} country:US country:GB ``` Start typing a country name and pick it from the list; the applied filter uses the visitor's two-letter country code. ## Duration `duration:` filters by session length and always uses the `>` operator — it's a **minimum**: `duration:>2m` returns sessions at least two minutes long. There's no upper bound or "equals". Values accept a number and a unit — `s` (seconds, the default), `m` (minutes), `h` (hours), or `ms` (milliseconds): ```text theme={null} duration:>30s duration:>1m duration:>5m ``` Longer sessions often signal confusion or a user fighting the UI. Pair duration with a signal — `duration:>2m has:rage` — to surface the sessions most worth reviewing. ## Combine filters Stack chips to narrow in on exactly the sessions you want. Each filter is ANDed with the rest. ```text Broken checkout on mobile Chrome theme={null} page:/checkout has:error platform:web browser:Chrome ``` ```text Frustrated long sessions theme={null} has:rage duration:>2m ``` ```text One user's error sessions theme={null} user:jenny@acme.io has:error ``` ```text Slow performance on iPhone theme={null} platform:ios model:iPhone 15 has:slow lcp ``` Use the keyboard to move fast: | Key | Action | | - | - | | ⌘K / Ctrl+K | Focus the search field | | ↑ ↓ | Move through suggestions | | ↵ | Apply the highlighted suggestion | | Tab | Accept the inline completion | | Esc | Close the dropdown | | Backspace (empty field) | Remove the last chip | To clear everything, use the **✕** at the end of the field. ## Saved filters & recent searches The empty dropdown gives you two shortcuts: * **Suggested filters** — every filterable dimension, each with a worked example, so the grammar is legible without memorizing keys. Clicking one drops you into that filter. * **Saved filters** — ready-made starting points: **Has errors**, **Rage clicks**, and **Slow sessions**. Selecting one adds its chips to your current search. * **Recent searches** — your last few queries, stored per workspace **in this browser**. Selecting one re-runs it exactly, including a user filter's precise match. Recent searches are local to your browser and are cleared when you sign out, so a shared machine never leaks one account's customers into another's search box. ## Scoped views Sometimes you arrive at Recordings already filtered — because you drilled in from somewhere else. In these cases the list is **scoped to a specific set of sessions** and a banner names the scope. Dismiss the banner to return to all recordings. | You came from | The list shows | | - | - | | A **playlist** in the sidebar | Only that playlist's recordings | | A **funnel step's** "View sessions" | The sessions that reached that step, within the analyzed date range | | An **incident's** "View sessions" | The sessions attributed to that incident | | An **issue's** "View sessions" | The sessions where that issue occurred | Scoped views and the search bar work together — a scope sets the starting set, and any filter chips you add narrow within it. Opening a recording keeps the scope, so the rail stays filtered while you review. Some links elsewhere in the app (for example, drilling in from a **Segments** band) open Recordings with filter chips already applied via a `?q=` link — the same chips you'd build by hand, pre-filled for you. Everything you can see and do inside a recording. Build a funnel and drill from any step into the sessions behind it. Track errors, crashes, and freezes, then jump to the sessions where they happened. # Track events Source: https://docs.replayfy.app/guides/track-events Fire custom events to power funnels, retention, and session search. Track the moments that matter — signups, purchases, feature usage. Events drive funnels and let you jump straight to the sessions where they happened. Use stable, lowercase names (`checkout_started`, `purchase`) so they stay searchable. ```ts npm theme={null} replay.track("purchase", { amount: 4200, currency: "USD" }); ``` ```js Script tag theme={null} Replayfy.track("purchase", { amount: 4200, currency: "USD" }); ``` ```swift theme={null} Replay.track("purchase", properties: ["amount": 4200, "currency": "USD"]) ``` ```kotlin theme={null} Replay.track("purchase", mapOf("amount" to 4200, "currency" to "USD")) ``` ```tsx theme={null} Replay.track("purchase", { amount: 4200, currency: "USD" }); ``` ```dart theme={null} Replay.track("purchase", properties: {"amount": 4200, "currency": "USD"}); ``` Keep property keys consistent across events — they become the dimensions you filter and break funnels down by. # Welcome to Replayfy Source: https://docs.replayfy.app/introduction Session replay, product analytics, and error monitoring for web and mobile — the complete how-to for your whole platform. Replayfy records what your users actually do — pixel-accurate session replays, taps and clicks, screen navigation, network activity, console logs, crashes, and performance vitals — then turns it into **funnels, cohorts, crash reports, and AI answers** so you can see how your product is really used and fix what's broken. Drop in one SDK per platform and you're recording in under two minutes. These docs are the complete how-to for the whole platform — from your first session to funnels, crash triage, alerts, and Replayfy AI. Install an SDK and watch your first real session in under two minutes. Replay, analytics, crash monitoring, alerts, and Replayfy AI — one platform. ## The platform Everything below shares the same recordings and events, so a session you watch is the same session that powers a funnel, a cohort, a crash report, and an AI answer. Watch pixel-accurate replays of real web and mobile sessions. Events, segments, and retention from your identified users. Build metric trends, retention grids, breakdowns, and Core Web Vitals. Measure conversion, timing, and drop-off across ordered steps. Living groups of users, built from traits or behavior. Crashes, exceptions, and ANRs — with the replay attached. Get an email when conversion drops or an issue spikes. Ask questions in plain language — grounded in your real data. Connect your issue tracker, chat, and incident tools. ## Install an SDK One SDK per platform, `apiKey` + `apiHost`, and you're recording. ## Make the data yours Recording is automatic. These three guides connect sessions to real people and events, and keep sensitive data off the wire. ## How it works Each SDK captures on-device, batches efficiently, and streams to your Replayfy ingest host. Recording, tap capture, screen detection, crash handling, and performance monitoring all begin from a single `init` / `start` call — no manual wiring. Settings you configure in the dashboard are fetched at startup and take precedence over the values passed in code, so you can tune masking, sampling, or pause recording without shipping a new build. ## Get help Reach the team, report a security issue, or join the community. Sign in to watch sessions and manage your workspace. These docs are open — suggest an edit on GitHub. # Administration Source: https://docs.replayfy.app/platform/administration Invite teammates, assign roles, manage members, and control the workspace settings that shape what every SDK captures. A Replayfy **workspace** is where your recordings, dashboards, cohorts, and settings live. As a workspace admin you decide who gets in, what each person can do, and how the SDK behaves across every page load and app session. Everything on this page happens in the dashboard at [app.replayfy.app](https://app.replayfy.app) under **Settings**. Most administrative actions require the **Admin** or **Owner** role — Members can view the team and settings, but not change them, and Viewers only watch recordings. Every rule below is enforced on the server, not just hidden in the UI. If a button isn't offered to you, the API would refuse the action too. ## Invite teammates Open **Settings → Team** and use **Invite member** (top right). You need the **Admin** or **Owner** role to see it. Paste emails into the field, separated by commas or new lines. Each recipient gets their own invitation email. Choose **Viewer**, **Member**, or **Admin**. You can change it later. (Granting **Owner** is handled separately — see [Roles and permissions](#roles-and-permissions).) Recipients get a link that adds them to this workspace when they accept. If some addresses are skipped — for example, someone who is already a member or already has a pending invite — you'll see how many landed versus how many were skipped. Invitation links expire **one hour** after they're sent. If a teammate misses the window, resend the invite to issue a fresh link. ### Manage pending invites The **Pending invites** list under the Team tab shows everyone who has been invited but hasn't accepted yet. | Action | What it does | | - | - | | **Resend** | Issues a new link and emails it again. The previous link stops working — this is intentional, so a forwarded or leaked link can't be reused. | | **Resend all** | Refreshes and re-sends every pending invite at once. | | **Cancel** (trash icon) | Revokes the invite. The link stops working immediately. | You can't invite the same person twice while an invite is still pending. Resend the existing one instead of creating a new invite. ## Roles and permissions Every member holds exactly one role in a workspace. Roles are ranked — a higher role can do everything a lower one can, plus more. | Capability | Viewer | Member | Admin | Owner | | - | :-: | :-: | :-: | :-: | | Watch recordings | ✓ | ✓ | ✓ | ✓ | | Comment, build playlists, manage cohorts / funnels / alerts, use Replayfy AI | | ✓ | ✓ | ✓ | | View **Settings** and the team roster | | ✓ | ✓ | ✓ | | Invite, change roles, and remove members | | | ✓ | ✓ | | Change capture settings (Recording, Privacy, Retention, Sampling) and manage API keys | | | ✓ | ✓ | | Rename the workspace | | | ✓ | ✓ | | Delete the workspace and grant the **Owner** role | | | | ✓ | **Only an Owner can grant the Owner role.** An Admin can promote members up to Admin, but not to Owner — that keeps a workspace from ever gaining a second owner without the current owner's say-so. The Owner role is also protected in both directions: the workspace **Owner cannot be demoted or removed** by anyone, and an Owner can't demote themselves. This guarantees a workspace always has someone in charge. ## Change a member's role Under **Settings → Team**, open the **Role** dropdown next to a member and pick the new role. The change takes effect immediately. * Admins and Owners can change roles. * The **Owner** row is read-only — you'll see a badge instead of a dropdown. * Only an **Owner** may promote someone to **Owner**. Assigning **Owner** to another member is how you hand off a workspace — see [Transferring ownership](#leave-a-workspace). ## Remove a member In the **Role** dropdown, choose **Remove member** and confirm in the dialog. Removing a member is immediate and can't be undone. They lose access to this workspace and all of its recordings right away. You can always invite them back later. The workspace **Owner can't be removed** — the option isn't offered on their row. ## Leave a workspace Anyone can remove themselves. At the bottom of **Settings → Team**, use **Leave workspace** and confirm. You immediately lose access; an admin can invite you back later. The **only owner of a workspace can't leave** — that would strand the workspace with no one in charge. The Leave button is disabled with an explanation until you either transfer ownership or delete the workspace. There's no single "transfer" button — ownership moves in two steps, and only the current Owner can start it: In **Settings → Team**, change another member's role to **Owner**. Only an existing Owner can do this, and it's the point of no return for sole ownership. With a second Owner in place, the original Owner can now use **Leave workspace** (or stay on as a co-owner). The workspace never dips below one owner during the handoff. ## Workspace settings Open **Settings → General** to see the workspace's identity and the danger zone. | Setting | What it's for | | - | - | | **Workspace name** | Shown in the sidebar and on every invitation email. | | **Slug** | The URL-safe identifier used in dashboard links and as your SDK `projectId`. | | **Plan** | Your current plan. Quotas and feature access derive from it — see [Workspaces & billing](/platform/workspaces-and-billing). | ### Danger zone The **Delete workspace** control lives here and is available to **Owners only**. Deleting a workspace permanently removes **every recording, comment, cohort, playlist, invite, and team member**. This can't be undone. The workspace disappears from everyone's switcher right away, and its stored data is purged in the background. ## Capture settings you control Beyond people and identity, admins tune **what the SDK captures** — no code change or redeploy required. Update a setting in the dashboard and it reaches your running SDKs on their next refresh, typically **within about 60 seconds**. | Tab | What it controls | | - | - | | **Recording** | What gets captured — console logs, network activity, errors, performance, canvas, cross-origin iframes, the minimum session length to keep, and native (iOS / Android) capture frame rate and quality. | | **Privacy & masking** | What is stripped from the DOM before it ever leaves the browser. **Block** drops an element's content entirely; **mask** replaces text with `●`. Also covers input masking, URL redaction, and allowed hosts. See the [Privacy & masking guide](/guides/privacy-and-masking). | | **Retention** | How long recordings are kept before they're automatically deleted, with the option to keep bookmarked or error sessions longer. | | **Sampling** | Record a representative subset of sessions to control volume, while still always capturing errors, identified users, or specific URLs. | You don't ship a new build to change any of these. The dashboard is the source of truth; each SDK picks up the latest configuration on its own, so a masking rule or a paused recording propagates in roughly a minute. Privacy and masking rules apply on the client **before** data is sent to Replayfy. When in doubt, mask more — you can always loosen a rule later, but you can't recover data that was correctly never captured. Plans, quotas, usage, and how entitlements map to what your workspace can do. Configure block and mask rules so sensitive data never leaves the browser. # AI credits Source: https://docs.replayfy.app/platform/ai-credits How Replayfy AI is metered — credits per request, a monthly allowance bundled with your plan, optional top-ups, and what happens when you run low. Everything [Replayfy AI](/platform/replayfy-ai) does — answering your questions, running investigations, building a funnel or cohort on request, and generating the proactive insights on your Overview — is powered by **AI credits**. This page explains how that metering works so you can reason about cost with no surprises. Credits are deliberately big, round numbers rather than fractions of a cent, and every user-facing surface talks in credits. The only rate you need to remember: **≈ 100,000 credits = \$1.** Replayfy AI runs on **leading language models**, and each request is metered against this fixed rate — you're only ever shown credits, never a raw dollar figure or token count. ## What consumes credits Credits are spent per **AI request** — each time a model does real work on your behalf. Every request is metered in proportion to how much work it did, so a quick lookup costs far less than a deep multi-step investigation. | Where credits are spent | What triggers it | | - | - | | **Replayfy AI answers** | Each turn you ask in the Ask AI panel or the Overview Ask bar. | | **Investigations** | The multi-step reasoning behind a deeper answer — reading releases, funnels, crashes, and journeys to reach a conclusion. | | **AI-built funnels & cohorts** | When you ask the AI to assemble a funnel or a cohort and it drafts the definition for you. | | **Proactive insights** | The Overview **Storyline**, the **Signals** analyst reads, and the worth-watching / experience-health rollups — generated on a schedule so they're ready before you ask. | Proactive insights refresh on a cadence, so they spend credits even when nobody is actively asking. On the **Free** plan that cadence is capped (a daily refresh) so a workspace can't burn its whole taster allowance on background work it never looked at; paid tiers refresh more often. Watching recordings, browsing analytics, running funnels you already built, and every other non-AI part of Replayfy cost **no credits** — only the AI features above draw them down. ## How credits are priced Each request is metered individually against the ≈100,000-credits-per-dollar rate, based on the actual amount the underlying model processed for that request. A short factual answer is cheap; a full investigation that reads several data sources costs more. You never have to estimate this yourself — Replayfy records the exact credit cost of every request and rolls it up for you. Under **Settings → Billing**, the **AI credits** section shows a per-surface breakdown over the last 30 days, so you can see precisely how much went to Ask versus the proactive insights versus AI-built funnels and cohorts. If one surface is consuming more than you'd like, the breakdown makes it obvious. Proactive insights are the usual suspect on a busy workspace — you can dial the AI down or off for the workspace from the settings if you'd rather spend credits only on questions you ask directly. ## Your monthly allowance Every plan bundles a **monthly credit allowance** at no extra cost, sized so normal usage stays comfortably inside it. The allowance scales with your plan: | Plan | Included AI credits / mo | | - | - | | **Free** | 100,000 | | **Starter** | 1,000,000 | | **Growth** | 3,700,000 | | **Scale** | 9,000,000 | | **Business** | 21,000,000 | | **Enterprise** | Custom | The included allowance **resets at the start of each calendar month** (UTC) — the same reset instant as your session counter. Unused credits from the bundle don't roll over; a fresh full allowance arrives each month. AI credits are billed **separately** from your session plan. Moving up the plan ladder raises your monthly credit allowance along with your session volume and retention — see [Workspaces & billing](/platform/workspaces-and-billing) for the full comparison. ## Top-ups If a heavy month runs through the included allowance, buy more with a one-time **top-up**. Purchased credits behave differently from the monthly bundle in the two ways that matter: | | Included allowance | Purchased credits | | - | - | - | | Comes from | Bundled free with your plan | A one-time top-up purchase | | Resets | Every calendar month | **Never** — they carry over indefinitely | | Spent | **First** | Only after the month's included allowance is used up | Because the monthly bundle is always spent first, a top-up is never wasted: purchased credits sit behind your allowance and are only touched once it runs out, and whatever you don't use stays on your balance for future months. ### Buy a top-up Go to **Settings → Billing**. Buying credits requires the **Admin** or **Owner** role. Under **Replayfy AI**, click **Buy more credits** and pick a pack. At 100,000 credits per US dollar, the packs are: | Pack | Credits | | - | - | | \$10 | 1,000,000 | | \$25 | 2,500,000 | | \$50 | 5,000,000 | | \$100 | 10,000,000 | Enter your card — Link and wallet methods work too — and confirm. There's no redirect; credits land on your balance within a few seconds of a successful payment. Every top-up appears as a dated receipt in the **AI credits** section of the Billing page, alongside your subscription invoices. ## When credits run low Replayfy AI is designed to **pause rather than bill you by surprise**. When a workspace has spent both its monthly allowance and any purchased credits, AI features stop until more credits are available — you're never charged for overage you didn't choose. Crucially, **only the AI features pause**. Everything else keeps running exactly as before: Session recording and replay, product analytics, funnels and cohorts you've already built, crash reporting, and alerts — none of it depends on AI credits. New Ask answers and investigations, AI-built funnels/cohorts, and the proactive Storyline and Signals reads. AI comes back automatically the moment credits are available again — either when your **included allowance resets** at the start of the next calendar month, or as soon as you **buy a top-up**. Running out of AI credits never affects session capture. If your *recording* stops, that's a separate, plan-level limit (the monthly session ceiling or a billing issue) — see [Workspaces & billing](/platform/workspaces-and-billing#if-recording-stops). ## Where to see usage and buy more Your live credit picture lives on the **Billing** page, and the **AI** settings panel links straight to it so there's a single source of truth. The **Replayfy AI** tile shows credits **used vs. included** this cycle and how many are **remaining** (with purchased credits called out separately when you have any). Below it, the **AI credits** section breaks spending down by product surface over the last 30 days and lists a receipt for every top-up. **Buy more credits** lives here too. The AI panel confirms Replayfy AI is active and managed for your workspace, and includes a **View AI usage in billing** link that jumps to the same credits breakdown — usage isn't duplicated, so the numbers can never disagree. Viewing your plan and usage is open to everyone in the workspace, but **buying credits and changing your plan require Admin or Owner**. Members and Viewers see the Billing page read-only. ## Common questions No. The **included** monthly allowance resets to full at the start of each calendar month (UTC) and doesn't carry over. **Purchased** top-up credits are the opposite — they never expire and stay on your balance until spent. No. When credits run out, AI features pause instead of billing you for overage. You only ever pay more if you deliberately buy a top-up or move to a higher plan. Not exactly — each request is metered by the actual work it did, so a quick answer costs less than a deep investigation. The per-surface breakdown on the Billing page shows where your credits actually went. Yes. Toggling Replayfy AI **off** for the workspace stops the scheduled Storyline and Signals generation, and the Overview falls back to threshold-based cards. The switch is instant and reversible. ## Related What credits buy — the assistant, investigations, storylines, and signals. Plan allowances, the session ceiling, invoices, and top-ups in context. # API & keys Source: https://docs.replayfy.app/platform/api-and-keys The three Replayfy key types — publishable, server, and webhook — and how to create, rotate, revoke, and authenticate with them. Every request into Replayfy is authenticated with a workspace key. There are three kinds, each with a different job and a different level of secrecy: a **publishable** key you ship inside your app, a **server** key you keep on your backend, and a **webhook signing secret** you use to verify events we send you. You manage all of them from **Settings → Install** in the dashboard at [app.replayfy.app](https://app.replayfy.app). Keys are scoped to a single workspace. A key created in one workspace never sees another workspace's data — the key is how the ingest pipeline knows which workspace an event belongs to. ## The three key types | Type | Prefix | Secret? | Where it lives | What it's for | | - | - | - | - | - | | **Publishable** | `rpl_pk_` | No — safe to ship | In your web/mobile app | The SDKs use it to record sessions and fetch config | | **Server** | `rpl_sk_` | Yes — shown once | Your backend / CI only | Server-to-server ingest, enrichment, symbol uploads | | **Webhook** | `whsec_` | Yes — shown once | Your webhook receiver | Verifying that inbound webhooks really came from us | ### Publishable keys (`rpl_pk_`) The publishable key is designed to be **public**. It goes straight into your website snippet or your mobile app bundle, where anyone can read it — that's expected. It can only do two things: send session events into the ingest pipeline and fetch the workspace's recording config. It can't read data back out, list users, or touch settings, so exposing it is not a security problem. Because the publishable key is meant to be visible, the dashboard keeps it viewable — you can copy it from **Settings → Install** at any time. To limit where it's accepted, use the **Allowed hosts** list (see [Locking a key to your domains](#locking-a-key-to-your-domains)). ### Server keys (`rpl_sk_`) The server key is a **secret**. Keep it on your backend, in an environment variable — never in client code, a mobile bundle, or a public repo. It authorizes server-to-server work: sending events from your own services, enriching sessions from a backend job, and uploading symbol/mapping files from your CI so crash and ANR stacks deobfuscate on the dashboard. A server key is shown **once**, at the moment you create or rotate it. Replayfy stores only a hash and can never show it to you again. Copy it immediately and store it in a secrets manager. If you lose it, rotate the key to mint a new secret. ### Webhook signing secrets (`whsec_`) The webhook secret isn't used to call Replayfy — it's used to **verify** the webhooks Replayfy sends to your endpoint. We sign each outbound request with this secret so your server can confirm the payload is genuine and wasn't tampered with. Store it alongside your server key and load it where you handle the incoming request. ## Managing keys in the dashboard All key management lives in **Settings → Install**. Generating, rotating, and revoking keys is limited to workspace **admins and owners**; other members can see the key list (only the masked prefix, never the secret). Go to [app.replayfy.app](https://app.replayfy.app), open **Settings**, and select the **Install** tab. You'll see your existing keys with their scope, when each was created, when it was last used, and when it was last rotated. Click **Generate key**. Give it a name (e.g. `Production iOS`), pick a scope — **Public**, **Server**, or **Webhook** — and optionally tag it with environment labels (`prod`, `staging`, `dev`) so you can tell keys apart at a glance. The next screen shows the full key exactly once, with a copy button. For server and webhook keys this is the only time it's ever visible — copy it before you close the dialog. ### Rotate a key Open the **⋯** menu on a key and choose **Rotate**. Rotation swaps the secret **on the same key** — the name, environment labels, and grants stay the same, so you don't have to reconfigure anything downstream except the secret value itself. Rotation has **no grace period**. The old secret stops working the instant the new one is minted. Roll the new value out to your app or backend first, then rotate — or expect a brief gap where the old key is rejected. ### Revoke a key Open the **⋯** menu and choose **Revoke key**. The key stops working **immediately and permanently** — any SDK or service still using it will start failing to send events. Revocation can't be undone, so revoke a key when it's leaked or retired, and swap in a replacement first if the traffic matters. Revoked keys drop out of the key list in the dashboard. There's no "un-revoke" — mint a fresh key instead. ## Authenticating requests Every request into the ingest pipeline carries your key in the **`x-replay-api-key`** header. That's true whether it's a browser SDK fetching config, a mobile app uploading a session, or your backend sending events server-to-server — the header name is always the same; only the key inside it changes. ### What the SDK sends You never write the ingest header yourself in a client SDK — you configure the SDK with your **`apiKey`** (a publishable key) and an **`apiHost`** (your ingest region), and the SDK attaches the header on every request. ```ts SDK config theme={null} import { Replay } from "@replayfy/browser"; Replay.init({ apiKey: "rpl_pk_YOUR_KEY", // publishable — safe to ship apiHost: "https://us.replayfy.app", // your ingest region }); ``` Replace `us.replayfy.app` with the ingest host for your workspace's region. You'll find the exact snippet — key and host filled in — in **Settings → Install**. ### A server-to-server request From your backend, set the header yourself using a **server** key. This minimal request asks the ingest pipeline for the workspace's current recording config — a handy way to confirm from your own infrastructure that a key is valid and to see the settings the SDK will run under: ```bash curl theme={null} curl https://us.replayfy.app/v1/sdk/config \ -H "x-replay-api-key: rpl_sk_YOUR_SERVER_KEY" ``` ```ts Node theme={null} const res = await fetch("https://us.replayfy.app/v1/sdk/config", { headers: { "x-replay-api-key": process.env.REPLAY_SERVER_KEY! }, }); const config = await res.json(); ``` A valid key returns the resolved config as JSON. An unknown or revoked key returns **401 Unauthorized**, and a request from a host that isn't on your allow-list returns **403 Forbidden**. Keep server keys server-side. Anything you can reach with a `rpl_sk_` key, anyone who copies it can too — never put one in browser or mobile code. ## Locking a key to your domains Because a publishable key is visible in your page source, someone could lift it and try to send events from their own site. To prevent that, add an **Allowed hosts** list under **Settings → Install**. When the list is non-empty, the ingest pipeline only accepts requests whose origin matches one of your hosts: | Entry | Matches | | - | - | | `example.com` | Exactly that host | | `*.example.com` | Any subdomain of `example.com` | | *(empty list)* | Any origin — the install-first default | The allow-list applies to browser requests, which always send an `Origin` header. Native mobile SDKs and true server-to-server calls have no browser origin, so they aren't gated by it — protect those with the secrecy of the key itself. ## Rate limiting The management and API surface is rate-limited per client so that a runaway script can't overwhelm the service. If you exceed the limit, requests return **429 Too Many Requests** — back off and retry. The high-volume ingest and SDK-config endpoints are governed by a queue and backpressure layer instead of a fixed request cap, so ordinary recording traffic from a busy site or a shared corporate network is never throttled. If you're building an integration that makes bursty management calls, batch them where you can and honor the `429` by retrying with exponential backoff rather than hammering the endpoint. ## Remote config: the dashboard overrides your code When an SDK starts up, it fetches the workspace's config from the ingest host using its publishable key — this is the `GET /v1/sdk/config` call shown above. That response, driven by your **Settings** in the dashboard, decides what actually gets recorded: console and network capture, input masking and privacy rules, sampling rate, minimum session duration, and retention. The practical upshot: **the dashboard is the source of truth.** If your code sets a capture option one way but Settings says another, Settings wins on the next config refresh — you can tighten privacy, dial sampling down, or pause recording for a workspace without shipping an app update. Config is cached briefly for speed, so a settings change reaches running SDKs within their next refresh cycle — usually under a minute. Some safety controls, like a workspace that has hit its plan's session allowance, are always evaluated fresh so recording stops promptly. Password fields are **always** masked, on every platform, regardless of your settings — there is no way to turn that off. ## Related Drop in the snippet and start recording sessions. Control what's captured and what's redacted from Settings. Receive and verify signed events with your `whsec_` secret. # Integrations Source: https://docs.replayfy.app/platform/integrations Connect issue trackers, chat, incident tools, and a generic webhook to your workspace so Replayfy can file issues from a recording and route alerts to the tools your team already uses. Integrations let a workspace push what Replayfy sees — a specific recording, a crash group, or a fired alert — into the tools your team already lives in. File an issue from a session in one click, or route an anomaly signal straight to your on-call channel with a link back to the exact moment it happened. Every connection is **scoped to a single workspace**. When you connect Slack (or Linear, or Jira…), you authorize *your* workspace's account — Replayfy never uses a shared or global key, so a company with several workspaces keeps each one's tools cleanly isolated. Find everything under **Settings → Integrations** at [app.replayfy.app](https://app.replayfy.app). You need the **Member** role or higher to connect, manage, or disconnect an integration. ## How integrations work There are two ways an integration connects, depending on the partner: * **OAuth** — you're sent to the partner (Slack, Linear, Jira, GitHub, Lark, Sentry), you approve access to the account and scopes shown, and you land back in Replayfy connected. A signed, single-use `state` binds the round-trip to your workspace, so the callback can only ever connect *your* workspace. * **A short form** — for partners that hand you a credential to paste instead of an OAuth flow: **PagerDuty** (an Events API v2 integration key) and **Webhook** (a destination URL). Whichever path a partner uses, the stored credential is **encrypted at rest** and decrypted only at the moment Replayfy calls out. Disconnecting an integration **drops the stored token immediately**, and Replayfy only ever touches the scopes listed on the integration's detail page. ## The catalog The catalog is grouped by what each integration is for. Every one below is live and connectable per workspace. | Integration | Category | Connect via | Use it for | | - | - | - | - | | **Linear** | Issue tracking | OAuth | File issues from a session, crash, or signal | | **Jira** | Issue tracking | OAuth | Create tickets from sessions and crashes | | **GitHub** | Issue tracking | OAuth | Open issues for captured errors and crashes | | **Slack** | Alerts & messaging | OAuth | Post alerts and share replays in a channel | | **PagerDuty** | Alerts & messaging | Integration key | Trigger on-call incidents from signals | | **Lark** | Alerts & messaging | OAuth | Deliver alerts to a group chat | | **Sentry** | Monitoring & developer | OAuth | Link an error to the exact replay | | **Webhook** | Monitoring & developer | Destination URL | POST Replayfy events as JSON anywhere | Slack is the most-used integration because it does double duty — it's both an **alert destination** and a place you can **file an issue** (a rich message) about a single recording. ## Connect an integration Go to **Settings → Integrations**, pick the integration, and open its detail page. Click **Connect**. Replayfy generates a signed authorize URL and sends you to the partner. Sign in to the partner if needed and approve the scopes shown on the detail page. Replayfy asks only for what it needs — for an issue tracker, that's creating issues in a team or repository you choose plus reading status. The partner returns you to **Settings → Integrations** with a confirmation toast, and the integration now shows a green **Connected** dot. Replayfy resolves and stores a sensible default target (a Linear team, a GitHub repo, a Slack channel, a Jira project) at connect time. In PagerDuty, open the service you want incidents on → **Integrations** → add an **Events API v2** integration, then copy its **Integration Key**. Open **Settings → Integrations → PagerDuty**, click **Connect**, and paste the key. Replayfy runs a test trigger-and-resolve against the key so a bad key fails now, at connect time, rather than silently at the first real alert. Once it verifies, PagerDuty shows as **Connected**. Open **Settings → Integrations → Webhook**, click **Connect**, and enter the `https://` URL that should receive events. Replayfy mints a strong signing secret (it looks like `whsec_…`) and shows it once with a **Copy** button. Store it — you'll use it to verify that incoming requests really came from Replayfy. Reopening a connected webhook re-reveals the same secret. Every event is now POSTed to your URL as JSON, signed with that secret. You can edit the URL later without rotating the secret, so your verification keeps working. ## Route alerts to a destination When an alert or anomaly signal fires — a crash spike, a funnel drop, a conversion dip — Replayfy can fan it out to the destinations you've connected. Three integrations act as **alert destinations**: | Destination | What arrives | | - | - | | **Slack** | A rich message with the title, detail, and a link back to Replayfy | | **PagerDuty** | An incident on your service, deduplicated, that auto-resolves when the signal clears | | **Webhook** | An `alert.triggered` JSON payload POSTed to your endpoint | You pick the destinations when you configure an alert. Each fired alert dispatches to its destinations **concurrently**, and a destination you haven't connected is simply skipped — nothing errors, it just doesn't deliver there. Connect the destination first, then add it to the alert. Configuring which alerts fire and where they route lives on the Alerts page, not here — this page is only about connecting the destinations. See [Alerts](/products/alerts) for building the conditions. ## File an issue from a recording You don't have to leave a session to open a ticket about it. From a recording's player, use **Create issue** to file straight into a connected tracker. The issue is pre-filled with the session link and a summary — the user, the URL, the duration, and the error and rage-click counts — so an engineer lands on the exact moment it happened. In the player's action bar, click **Create issue**. A picker lists the integrations that can file about a session: **Linear, GitHub, Jira, Lark, and Slack**. Choose a tracker. If it's already connected, Replayfy files immediately and shows you the created issue's URL to copy (for Slack or Lark, it confirms the channel it posted to). Pick a tracker you haven't connected and Replayfy remembers your intent, runs the connect flow, and files the issue automatically the moment you return — no need to start over. Filing an issue is scoped to your workspace: you can only ever file about a session that belongs to the workspace you're in. ## Verify webhook payloads Every webhook request carries an `X-Replayfy-Signature` header — the string `sha256=` followed by an HMAC-SHA256 of the **raw request body**, keyed with your signing secret. Recompute it on your side and compare before trusting a request. A fired alert arrives like this: ```json alert.triggered theme={null} { "event": "alert.triggered", "workspaceId": 42, "alert": { "title": "Crash spike on CartView", "detail": "98 sessions affected in the last hour", "severity": "critical", "url": "https://app.replayfy.app/recordings?signal=…" } } ``` Verify it against the secret you copied when connecting: ```js Node.js (Express) theme={null} import express from "express"; import crypto from "node:crypto"; const SIGNING_SECRET = process.env.REPLAYFY_WEBHOOK_SECRET; // whsec_… const app = express(); // Use the RAW body — the signature is computed over the exact bytes we send. app.post( "/hooks/replayfy", express.raw({ type: "application/json" }), (req, res) => { const received = req.header("X-Replayfy-Signature") ?? ""; const expected = "sha256=" + crypto.createHmac("sha256", SIGNING_SECRET).update(req.body).digest("hex"); const ok = received.length === expected.length && crypto.timingSafeEqual(Buffer.from(received), Buffer.from(expected)); if (!ok) return res.status(401).send("bad signature"); const payload = JSON.parse(req.body.toString("utf8")); // e.g. payload.event === "alert.triggered" console.log(payload.event, payload.alert?.title); // Acknowledge fast with any 2xx. res.sendStatus(200); }, ); app.listen(3000); ``` ```python Python (Flask) theme={null} import hashlib, hmac, os from flask import Flask, request, abort SIGNING_SECRET = os.environ["REPLAYFY_WEBHOOK_SECRET"].encode() # whsec_… app = Flask(__name__) @app.post("/hooks/replayfy") def replayfy_hook(): received = request.headers.get("X-Replayfy-Signature", "") expected = "sha256=" + hmac.new( SIGNING_SECRET, request.get_data(), hashlib.sha256 ).hexdigest() if not hmac.compare_digest(received, expected): abort(401) payload = request.get_json() # payload["event"] == "alert.triggered" return "", 200 ``` Compute the HMAC over the **unparsed** request body. If your framework parses and re-serializes JSON before you sign, the bytes change and the signature won't match. Reach for the raw body (as shown above). Respond with any `2xx` to acknowledge receipt. A non-2xx is treated as a failed delivery for that event. ## Disconnect an integration Go to **Settings → Integrations**, open the connected integration, and click **Disconnect**. A dialog explains that the workspace will stop being able to file or post to that partner. Confirm to proceed. Replayfy revokes at the partner where possible and deletes the stored credential right away. You can reconnect at any time — for an OAuth partner that just means running the connect flow again. ## Permissions and data access Connecting, disconnecting, and viewing integration status all require the **Member** role or higher. The credential itself is never exposed back to the dashboard — the connections list returns only which providers are connected, never a token. Only the scopes listed on each integration's detail page — for example, "create issues in a team you choose" and "read and write issue status" for an issue tracker. Replayfy requests the minimum needed to file issues and post alerts, and nothing more. OAuth tokens, PagerDuty keys, and webhook URLs are encrypted at rest and decrypted only at call time. OAuth tokens are refreshed automatically before they expire. Disconnecting deletes the stored credential immediately. Build the conditions that fire, and choose which connected destinations they route to. Open a recording and file an issue about the exact moment something went wrong. Turn a crash group into a tracked issue in Linear, Jira, or GitHub. # Replayfy AI Source: https://docs.replayfy.app/platform/replayfy-ai Ask questions about your product in plain language and get grounded answers — plus proactive insights that surface what's worth watching before you ask. Replayfy AI is a built-in analyst that lives inside your dashboard. Ask it a question in plain language and it plans an investigation, reads your real session and analytics data, and answers with the evidence to back it up. It can also take work off your plate — build a Funnel or Cohort, watch an issue, or draft an alert — and it proactively surfaces what changed on your Overview before you think to ask. Every answer is grounded in your **structured session data** — events, funnels, releases, crashes, journeys — never in a black box, and never guessed from raw video. When an answer depends on a time range, Replayfy AI tells you which window it used. Replayfy AI uses **leading language models** under the hood to plan and narrate. The reasoning is grounded in your workspace's own data — the model never sees another customer's sessions, and it only reports numbers it actually pulled. ## Where to find it Replayfy AI is reachable from every page of the dashboard at [app.replayfy.app](https://app.replayfy.app): * **The Ask AI panel** — a floating **Ask AI** button in the bottom-right corner. Click it and a chat panel springs open. It stays with you as you move between Recordings, Funnels, Users, and Settings, so you can ask about whatever you're looking at. * **The Ask bar on the Overview** — a command box at the top of your [Overview](/products/product-analytics) with rotating example questions. Start typing and press ⏎ to ask. * **"Investigate" actions** — buttons scattered through the product (on a signal, a crash, a drop-off) open the panel pre-loaded with the right question. ## How to ask Click the **Ask AI** button in the bottom-right of any page, or use the Ask bar at the top of your Overview. Type a real question — no query syntax, no filters to configure. Press ⏎ to send. You can pick one of the suggested prompts to start. Replayfy AI shows its plan and streams each step as it runs — *"Investigating conversion…"*, *"Reading release 1.6.2…"* — then writes the answer token by token. Expand the **thinking** row to see exactly which sources it read. Answers come with citation chips. Click a session chip to jump straight into that recording, or a funnel chip to open the funnel. Use the suggested follow-up buttons to keep digging. Good questions are specific and outcome-shaped. Try **"Why did checkout conversion drop this week?"**, **"What's hurting stability right now?"**, **"Compare iOS vs Android retention"**, or **"Which cohort recovered fastest?"** ## Grounded answers, not guesses Replayfy AI is deliberately honest about what it knows: | What you see | What it means | | - | - | | **The time window** | When an answer depends on a range, the reply states it — *"in the last 7 days"*, *"across the 1.6.2 release"* — so you never mistake a narrow window for the whole picture. | | **Citations** | Evidence chips link to the exact sessions, funnels, console lines, or crashes the answer rests on. | | **Confidence** | Answers can carry a high / medium / low confidence flag when the underlying sample is thin. | | **Honest empty states** | "No one reached this step" and "there's no data in this window" are reported as different things — the AI won't invent a number to fill a gap. | Answers are grounded in your **structured** product data — tracked events, funnel steps, releases, crash groups, journeys and session metadata — not in the pixels of a replay. The richer your event tracking, the sharper the answers. See [Track events](/guides/track-events). ## Actions it can take for you Beyond answering, Replayfy AI can do the work. Ask it to build something and it assembles the definition, shows you a preview, and creates it — stamped **"Created with Replayfy AI"** so your team can see where it came from. "Build a funnel from Landing → Signup → Purchase" — it defines the steps and creates the funnel for you. "Make a cohort of users who rage-tapped checkout on Android" — it translates the description into a real, saved cohort. "Alert me if crash-free rate drops below 99%" — it drafts the alert and can watch a specific issue for recurrence. With an integration connected, it can draft a Linear or GitHub issue, or a Slack message, from what it found. ### The confirmation gate Anything that writes outside Replayfy — filing an issue, posting to a channel — **pauses for your approval first**. Replayfy AI shows you the full outgoing payload (the issue body, the exact Slack fields) and nothing is sent until you click **Confirm**. Read-only questions run freely. Actions that create, update, delete, or send are previewed and require an explicit **Confirm** — Replayfy AI never writes or sends on your behalf without it. ### It learns your workspace When a question is ambiguous — *"which checkout event do you mean?"* — Replayfy AI asks, and remembers your answer so it never has to ask again. Admins can review, correct, or forget everything the AI has learned about the workspace, and every action it takes is written to an **audit trail** you can inspect. ## Proactive intelligence on the Overview You don't have to ask first. When AI is on, your [Overview](/products/product-analytics) leads with insights the AI generated by reading the same data you'd query: An analyst-written lead at the top of the Overview — the single most important thing happening in your product right now, in prose, with a confidence chip and the supporting evidence. It's regenerated as your data moves, never templated. The ledger of what moved — conversion, stability, engagement and segment shifts, ranked by impact. With AI on, each signal gains a short analyst read on top of the raw numbers. A rolled-up health read of the current window and a short watchlist of the things most likely to need your attention next — surfaced before they become incidents. Prefer a purely deterministic dashboard? Toggle Replayfy AI **off** for the workspace and the Overview falls back to threshold-based cards with no generated narrative. The switch is instant and reversible. ## AI credits & metering Replayfy AI runs on **credits**. Every request — an Ask turn, a Storyline refresh, a set of Signals — consumes credits in proportion to the work it did. Credits are generous, round numbers rather than fractions of a cent: * **≈ 100,000 credits = \$1.** Every request is metered against this rate. * **A monthly allowance is bundled with your plan** — from a taster on Free up to millions of credits on higher tiers — sized so normal usage stays inside it. * **Optional top-ups.** If you run through the monthly allowance, buy more with a one-time **Buy credits** purchase; they stack on top of your bundled allowance. You can see exactly where credits went. **Settings → Billing** shows credits **used vs. included**, credits **remaining**, and a per-surface breakdown — how much Ask consumed versus the proactive insights — plus a receipt for every top-up. When a workspace runs out of credits, Replayfy AI pauses rather than billing you by surprise — it resumes when the allowance resets or you top up. Full plan allowances and pricing live in [Workspaces & billing](/platform/workspaces-and-billing). ## Who can use it | Role | Ask questions | Take actions | Manage learned knowledge | | - | - | - | - | | Owner / Admin | Yes | Yes (with confirm) | Yes | | Member | Yes | Yes (with confirm) | — | | Viewer | — | — | — | Viewers are invited to watch recordings, so the Ask panel isn't offered to them. ## What feeds better answers Replayfy AI reasons over whatever your SDK sends. The more you identify users and track meaningful events, the more precise your answers about conversion, segments, and journeys become. ```ts npm theme={null} import { initReplay } from "@replayfyapp/browser"; const replay = initReplay({ apiKey: "rpl_pk_YOUR_KEY", // publishable — safe to ship apiHost: "https://us.replayfy.app", }); // Tie sessions to a real user so the AI can reason about cohorts & retention replay.identify("user_123", { plan: "pro" }); // Track the moments that matter so questions about them have data replay.track("checkout_started", { cartValue: 84.0 }); ``` ```html CDN theme={null} ``` Once events flow in, ask **"How is checkout\_started converting this week?"** — the AI will pull the numbers, state the window, and cite the sessions behind them. ## Related Where Storyline, Signals, and the health read live. Send the events that make AI answers precise. Plan allowances, credits, and top-ups. # Workspaces & billing Source: https://docs.replayfy.app/platform/workspaces-and-billing Organize projects into workspaces, invite your team with the right roles, and manage your plan, AI credits, and invoices. A **workspace** is one isolated project in Replayfy. It has its own recordings, its own SDK keys, its own members, and its own plan and billing. Nothing crosses between workspaces: a member of one workspace can't see the sessions, settings, or invoices of another, and each workspace's data retention and AI allowance are counted separately. Most teams run one workspace per product (or one per environment — say a staging workspace and a production workspace). You switch between the workspaces you belong to from the switcher at the top of the sidebar in the dashboard at [app.replayfy.app](https://app.replayfy.app), and everything on this page lives under **Settings**. Every new workspace starts on the **Free** plan. You can't set a paid plan by creating a workspace — paid entitlements only ever arrive through a completed checkout. ## Each workspace has its own keys When you create a workspace, Replayfy issues it a **publishable SDK key** (`rpl_pk_…`) that you drop into your app to start recording, and a **server key** (`rpl_sk_…`) for server-side calls. The publishable key is safe to ship in client code; the server key is not — keep it on your backend. Point your SDK at the workspace by its `apiKey` and your ingest `apiHost`: ```ts Web SDK theme={null} import { initReplay } from "@replayfyapp/browser"; initReplay({ apiKey: "rpl_pk_YOUR_KEY", // this workspace's publishable key apiHost: "https://us.replayfy.app", // your ingest host }); ``` ```bash Server-side ingest theme={null} curl https://us.replayfy.app/v1/... \ -H "x-replay-api-key: rpl_sk_YOUR_SERVER_KEY" ``` Because keys are per-workspace, sending events with a workspace's key files them into that workspace and counts against *its* session ceiling — never another's. Find and rotate keys under **Settings → Install**. See [the web install guide](/platforms/web) for the full setup. ## Members and roles Invite as many teammates as you like — seats are **not** metered and never change your bill. Everyone you invite gets one of four roles, from most to least access: | Role | Can do | | - | - | | **Owner** | Everything an Admin can, plus delete the workspace and grant the Owner role. The Owner can't be removed or demoted by anyone else. | | **Admin** | Everything a Member can, plus change any setting, mint or revoke SDK keys, rename the workspace, invite and manage teammates, change the plan, and manage billing. | | **Member** | Watch recordings, comment, build playlists, manage cohorts / funnels / alerts, and ask Replayfy AI. | | **Viewer** | Watch recordings only. Viewers don't see Settings and can't ask the AI (AI spends real credits). | Only an **Owner** can grant the Owner role. An Admin can invite and promote people up to Admin, but can't create a second Owner — that keeps ownership deliberate. ### Invite teammates Go to **Settings → Team**. Inviting requires **Admin** or **Owner**. Click **Invite member** and paste one or more emails, separated by commas or new lines. Pick **Viewer**, **Member**, or **Admin** for the whole batch. Each invitee receives an email invitation carrying the workspace name. Invitations that haven't been accepted appear under **Pending invites**, where you can **Resend** or **Cancel** any of them (or **Resend all**). Send a batch at mixed roles by inviting each group separately — the role you pick applies to every email in that send. ### Change a role or remove someone In the members table (**Settings → Team**), use the role dropdown next to any teammate to switch them between **Admin**, **Member**, and **Viewer**, or choose **Remove member** to revoke their access immediately. The Owner's row is a read-only badge — it can't be changed or removed. Removing someone is instant and can't be undone, but you can always invite them back later. ### Leave a workspace Anyone can remove themselves from a workspace under **Settings → Team → Leave workspace**. You'll lose access to that workspace and its recordings until you're invited back. The one exception is the **sole Owner** — leaving would strand the workspace with no owner, so it's blocked. To hand off first, promote another member to **Owner** (only an existing Owner can do this), then leave. Alternatively, an Owner can delete the workspace outright. Deleting a workspace (**Settings → General → Danger zone**, Owner only) permanently removes every recording, comment, cohort, playlist, invite, and member. There is no undo. ## Plans Replayfy bills on a simple ladder: a free tier to evaluate on, four self-serve paid tiers, and a negotiated Enterprise tier. What you pay for is **billable sessions per month** — one allowance regardless of whether a session came from web, iOS, Android, React Native, or Flutter. | Plan | Price | Sessions / mo | Retention | AI credits / mo | Support | | - | - | - | - | - | - | | **Free** | \$0 | 1,000 | 30 days | 100K | Community | | **Starter** | \$69 | 10,000 | 90 days | 1M | Email | | **Growth** ⭐ | \$249 | 50,000 | 180 days | 3.7M | Priority email | | **Scale** | \$599 | 150,000 | 1 year | 9M | Priority + Slack | | **Business** | \$1,399 | 500,000 | 2 years | 21M | Dedicated | | **Enterprise** | Custom | Custom | Custom | Custom | SLA + dedicated | Compare every plan side by side in the dashboard under **Settings → Billing → Change plan**. Growth is the recommended tier for teams that live in their session data. ### What scales with your plan Moving up the ladder raises three things together, plus unlocks a few enterprise features: * **Session volume** — how many recordings you can capture each calendar month before the ceiling applies. * **Data retention** — how long recordings are kept before they're permanently deleted, from 30 days on Free up to 2 years on Business (custom on Enterprise). You can set a *shorter* retention window than your plan allows under **Settings → Retention**, but never a longer one — the plan is the ceiling. Sessions with at least one captured error can optionally be kept twice as long. * **AI allowance** — the monthly bundle of credits Replayfy AI draws on (see below). * **Seats** — always unlimited and never per-user billed, on every tier. Higher tiers also add **SSO** (Scale and up), **audit logs** (Business), and **SAML / SCIM, custom retention, a self-host option, and an SLA** (Enterprise). ### The session counter and auto-upgrade Your session counter runs per **calendar month** and resets at the start of the next month (UTC) — this is true for every plan, including Free, which has no renewal date of its own. What happens when you reach the ceiling depends on your plan: * **Free** pauses recording until the counter resets (or until you upgrade, which restarts capture immediately). No data already recorded is lost. * **Paid tiers auto-upgrade to the next tier** when you cross the ceiling — there's no per-session overage to reason about, and no surprise metered charge. **Business** is the top self-serve tier, so as you approach its ceiling, Replayfy reaches out to move you to Enterprise. You can't switch *down* to a paid plan whose ceiling is below what you've already recorded this cycle — the move would just be undone by auto-upgrade. Wait for the counter to reset at the start of next month, or contact us. (Downgrading to Free is always allowed, since it's a cancellation.) ## AI credits [Replayfy AI](/platform/replayfy-ai) — the assistant, investigations, storylines, and signals — is billed in **credits**, separately from your session plan. Every plan includes a **monthly credit allowance** (the table above), and when a bill of work needs more, you can buy **top-up packs**. The two behave differently, which is the important part: | | Included allowance | Purchased credits | | - | - | - | | Where it comes from | Bundled free with your plan | Bought as a top-up pack | | Resets | Every month | Never — they carry over | | Spent | First | Only after the month's allowance runs out | So a top-up is never wasted: purchased credits sit behind your monthly bundle and are only touched once the included allowance is used up. ### Buy a top-up Go to **Settings → Billing**. Buying credits requires **Admin** or **Owner**. Under **Replayfy AI**, click **Buy more credits** and pick a pack — **$10**, **$25**, **$50**, or **$100**. At 100,000 credits per US dollar, that's **1M**, **2.5M**, **5M**, or **10M** credits. Enter your card (Link and wallet methods are supported too) and confirm. Credits land on your balance within a few seconds of a successful payment. The **Billing** page shows where your credits went — a breakdown by product surface over the last 30 days — plus a receipt for every top-up. When your AI credits run out, AI features pause until the next monthly reset or your next top-up; recording and analytics are unaffected. ## Manage billing Everything money-related lives under **Settings → Billing**, and all of it requires **Admin** or **Owner**. Members and Viewers see the page read-only. The billing page shows your current plan, this cycle's session and AI usage, your payment method, and your invoices. ### Change or cancel your plan From **Settings → Billing**, click **Change plan** to see the full comparison. Plan changes are **instant and prorated**. Upgrading or moving between paid plans on a live subscription charges only the prorated difference right away — no redirect. A first paid subscription is completed with an in-page checkout. Choosing Free cancels your subscription. Your paid plan stays active until the end of the period you've already paid for, then the workspace drops to Free. Downgrading to a shorter retention window **permanently deletes** recordings older than the new window when it takes effect. Replayfy shows you exactly what will be lost before you confirm — there's no undo and no export afterward. If you scheduled a cancellation but change your mind before the period ends, click **Keep my plan** on the Billing page to resume renewing. ### Payment method, invoices, and receipts Your card, past invoices (each downloadable), and tax details are managed in the **billing portal** — open it with **Manage in portal** on the Billing page. Invoices also list directly on the Billing page once you're on a paid plan, with **Show older invoices** to page back through your history. ### If recording stops Replayfy tells you plainly at the top of the Billing page when capture has paused, and gives you the one action that restarts it: | Situation | What it means | Fix | | - | - | - | | **Free cap reached** | You've used every session on Free this month | Upgrade to restart capture now, or wait for the monthly reset | | **Payment failed / past due** | Stripe couldn't charge your card, so the workspace is held at Free's limits | Update the card in the portal — it retries the charge immediately | | **Overage invoice unpaid** | An outstanding invoice is blocking capture | Pay it in the portal; capture restarts as soon as it clears | A past-due payment doesn't stop recording right away — Stripe retries the card for a few days first. Updating the card during that window retries the charge immediately and keeps you running. ### Enterprise billing Enterprise plans are billed on a contract, so volume, retention, and invoicing are handled by your account manager rather than self-serve. Your invoices still appear on the Billing page. To discuss Enterprise, contact **[sales@replayfy.com](mailto:sales@replayfy.com)**, or reach your account team at **[accounts@replayfy.com](mailto:accounts@replayfy.com)**. What credits buy, and how the assistant, investigations, and signals work. Grab your workspace's keys and start recording sessions. # Android SDK Source: https://docs.replayfy.app/platforms/android Session replay, product analytics, and error monitoring for Android apps. Record real user sessions, fire analytics events, and capture crashes from your Android app with a single `init` call. ## Install The SDK resolves from **Maven Central**. Most Android projects already have `google()` and `mavenCentral()` in their repositories — if so, skip straight to the dependency. JitPack stays available as a fallback for versions published before Maven Central. ```kotlin settings.gradle.kts theme={null} dependencyResolutionManagement { repositories { google() mavenCentral() // Fallback only (pre–Maven Central pins): // maven { url = uri("https://jitpack.io") } } } ``` ```groovy settings.gradle theme={null} dependencyResolutionManagement { repositories { google() mavenCentral() // Fallback only (pre–Maven Central pins): // maven { url 'https://jitpack.io' } } } ``` Then add the dependency to your app module: ```kotlin build.gradle.kts theme={null} dependencies { implementation("app.replayfy:android-sdk:0.0.4") } ``` ```groovy build.gradle theme={null} dependencies { implementation 'app.replayfy:android-sdk:0.0.4' } ``` Requires `minSdk 21` or higher. No manifest changes needed. ## Initialize One call starts recording and wires tap capture, screen detection, crash handling, and performance monitoring. ```kotlin theme={null} import android.app.Application import com.replayfy.android.Replay import com.replayfy.android.ReplayConfig class MyApp : Application() { override fun onCreate() { super.onCreate() Replay.init( this, ReplayConfig( apiKey = "rpl_pk_YOUR_KEY", apiHost = "https://us.replayfy.app", // or your self-hosted API URL ), ) } } ``` Point `android:name` at your `Application` subclass in `AndroidManifest.xml`. ```xml theme={null} ``` ```kotlin theme={null} Replay.identify("user_123", mapOf("email" to "a@b.com", "plan" to "pro")) Replay.track("purchase", mapOf("amount" to 4200, "currency" to "USD")) ``` A `"picture"` (alias `"avatar"`) entry set to a public `https` image URL sets the user's avatar shown on the recording header and Users list; non-URL values are ignored. ## Verify Reload the app and foreground it. Your first session appears in the Replayfy dashboard within a few seconds. Wire `addVerificationListener` to fire a callback after the first successful upload for an in-app "Verify integration" flow. ## Configuration Only `apiKey` and `apiHost` are required; every other option has a sensible default. Pass overrides through `ReplayConfig`. | Option | Type | Default | Description | | - | - | - | - | | `apiKey` | `String` | **required** | Project API key from your dashboard. | | `apiHost` | `String` | **required** | Ingest base URL — `https://us.replayfy.app` (or your self-hosted API URL). | | `projectId` | `String?` | `null` | Only needed when one key spans multiple projects. | | `distinctId` | `String?` | `null` | Known user id at init time; otherwise an install-stable anonymous id is generated. | | `flushIntervalMs` | `Long` | `5000` | How often the buffered batch is uploaded (ms). | | `maxBufferSize` | `Int` | `500` | Events buffered in memory before a flush is forced. | | `captureConsole` | `Boolean` | `true` | Capture `Log.x` / stdout / stderr output. | | `captureNetwork` | `Boolean` | `false` | Capture HTTP requests (off by default to avoid PII). | | `captureErrors` | `Boolean` | `true` | Capture uncaught exceptions and crashes. | | `captureTouch` | `Boolean` | `true` | Capture taps and gestures from the view tree. | | `captureHeaders` | `Boolean` | `false` | Include request/response headers in network capture (PII risk). | | `captureBodies` | `Boolean` | `true` | Include request/response bodies in network capture (capped, PII risk). | | `maxBodyBytes` | `Int` | `4096` | Max captured body bytes per network event; larger bodies are truncated. | | `captureSnapshotPixels` | `Boolean` | `true` | Pixel-accurate playback vs. lighter tree-only "wireframe" playback. | | `snapshotIntervalMs` | `Long` | `500` | Screen-capture cadence (\~2 FPS); floored at 200 ms. | | `autoScreenName` | `Boolean` | `true` | Auto-name the current screen from each Activity's class name. | | `useRemoteConfig` | `Boolean` | `true` | Let dashboard settings override these values at runtime (your values act as cold-start fallbacks; \~15-minute refresh). | | `excludedScreens` | `List` | `emptyList()` | Screen names whose frame capture is paused while they're foreground (see [Screen tracking](#screen-tracking)). Case-insensitive; taps, network, and console still record. Mutable at runtime via `Replay.excludeScreen`/`setExcludedScreens`. | ## API reference All methods are exposed on the `Replay` singleton and are static-callable from Kotlin and Java. ### Identity & events | Method | Description | | - | - | | `identify(distinctId, properties?)` | Attach a known-user identity; earlier anonymous sessions link retroactively. | | `track(name, properties?)` | Record a custom timeline / funnel event. | | `setUserProperty(key, value)` | Attach a property that sticks to the user across sessions. | | `setSessionProperty(key, value)` | Attach a property to the current session only. | | `addTagWithProperties(name, properties?)` | Add a session-level tag for filtering the session list. | | `markSessionAsFavorite()` | Star the current session so it surfaces in the "starred" filter. | | `setAppVersion(version, build?)` | Override the auto-detected app version/build. | | `setPushNotificationToken(token, platform?)` | Attach the device push token (`platform` defaults to `"fcm"`). | ### Error monitoring | Method | Description | | - | - | | `captureException(error, handled?, properties?)` | Report a caught throwable. `handled = false` marks it fatal (crash) vs. exception. | | `reportBugEvent(name, description?, properties?)` | Flag a user-submitted bug report and trigger a fresh screen capture. | | `log(level, message, stack?)` | Bridge your logging framework into the console tab. `level` ∈ `log`/`info`/`warn`/`error`/`debug`. | ### Screen tracking | Method | Description | | - | - | | `tagScreenName(name)` | Manually set the current screen name. | | `addObservedView(view, screenName, viewName?)` | Track a Compose/custom view as a screen (emits on attach/detach). | | `setAutomaticScreenNameTagging(enabled)` | Toggle Activity-based auto screen naming at runtime. | | `excludeScreen(name)` | Exclude a screen from frame capture **by name** (case-insensitive; matched against the tagged / auto-tagged screen name). While it's foreground the screenshot loop pauses — taps, network, console, and performance events keep flowing — and resumes on the next non-excluded screen. | | `unexcludeScreen(name)` | Stop excluding a screen — frame capture resumes next time it's shown. | | `setExcludedScreens(names)` | Replace the entire excluded-screens list in one call. | Exclusion is **distinct from `occludeSensitiveScreen(true)`** — that keeps recording but blanks the frame, whereas an excluded screen captures no frames at all. Seed the list at init, or manage it at runtime: ```kotlin theme={null} // Seed at init: Replay.init( this, ReplayConfig( apiKey = "rpl_pk_YOUR_KEY", apiHost = "https://us.replayfy.app", // or your self-hosted API URL excludedScreens = listOf("Paywall", "PinEntry"), ), ) // …or manage at runtime: Replay.excludeScreen("Paywall") // pause frames while "Paywall" is foreground Replay.unexcludeScreen("Paywall") // resume Replay.setExcludedScreens(listOf("PinEntry", "CardScanner")) ``` ### Text input tracking | Method | Description | | - | - | | `addObservedInput(editText)` | Record an `EditText`'s value on focus-loss (passwords auto-masked). | | `trackInput(label, value, masked)` | Record a value not backed by an `EditText`; `masked = true` sends `"***"`. | ### Network capture Add the interceptor to your OkHttp client. When `captureNetwork` is off, it passes through with zero overhead. ```kotlin theme={null} val client = OkHttpClient.Builder() .addInterceptor(Replay.networkInterceptor()) .build() ``` | Method | Description | | - | - | | `networkInterceptor()` | Returns an OkHttp `Interceptor` that records requests when `captureNetwork` is on. | ### Session control | Method | Description | | - | - | | `isRecording()` | Whether the SDK is currently recording. | | `pauseRecording()` / `resumeRecording()` | Pause/resume screen capture while keeping the interaction timeline. | | `startNewSession()` | Force-end the current session and start a new one (logout/login, re-bucketing). | | `stop()` | End the current session and flush the buffered batch. The next foregrounding starts a fresh session. | | `stopApplicationAndUploadData(timeoutMs?)` | Stop and block (up to `timeoutMs`, default 5000) until the batch is uploaded or persisted. | | `cancelSession()` | Discard the current session **without uploading** — clears the in-memory buffer and deletes any on-disk batches still queued, so the server drops whatever already streamed. A fresh session can start afterward. Contrast with `stop()`, which ends the session gracefully and uploads. | | `enableAdvancedGestureRecognizer(enabled)` | Capture pinch and rotate gestures in addition to the always-on tap / swipe / long-press (off by default). | | `allowShortBreakForAnotherApp(allow, breakWindowMs?)` | Keep the **same** session across a brief switch to another app — a background gap up to `breakWindowMs` (default `30000`) resumes the session; a longer gap starts a fresh session on return. | | `setMultiSessionRecord(enabled)` | Record multiple sessions per app launch (default `true`), or only one — when `false`, the current/next session records and then no further sessions fire this process. | | `addVerificationListener(listener)` / `removeVerificationListener(listener)` | Fire a callback after the first successful upload. | ## Privacy & masking All masking happens on-device before anything is uploaded. Password fields are masked automatically; everything else is opt-in. ```kotlin theme={null} Replay.addPrivacyView(cardNumberField) // mask one view (and its children) Replay.removePrivacyView(cardNumberField) Replay.occludeAllTextFields(true) // mask every EditText Replay.occludeAllTextView(true) // mask every TextView / Button Replay.applyOcclusion(CreditCardView::class.java) // mask all instances of a view class Replay.removeOcclusion(CreditCardView::class.java) Replay.occludeSensitiveScreen(true) // mask the entire screen Replay.setMaskStyle(ReplayMaskStyle.BLUR) // BLUR (default) or OVERLAY Replay.setBlurDownscale(12) // stronger blur = larger factor ``` | Method | Description | | - | - | | `addPrivacyView(view)` / `removePrivacyView(view)` | Mask a single view (marks propagate to descendants). | | `occludeAllTextFields(occlude)` | Mask every `EditText` in the app. | | `occludeAllTextView(occlude)` | Mask every `TextView` / `Button`. | | `applyOcclusion(viewClass)` / `removeOcclusion(viewClass)` | Mask every instance of a custom view class. | | `occludeSensitiveScreen(occlude)` | Mask the entire captured screen. | | `setMaskStyle(style)` | Default masking style — `ReplayMaskStyle.BLUR` or `ReplayMaskStyle.OVERLAY`. | | `setBlurDownscale(factor)` | Blur strength for `BLUR` regions (default 12; higher = stronger). | Attach known-user identities so anonymous sessions link retroactively. Fire custom events that power funnels, retention, and filters. Redact sensitive views and inputs before anything leaves the device. # Flutter SDK Source: https://docs.replayfy.app/platforms/flutter Session replay, product analytics, and error monitoring for your Flutter apps — iOS and Android. Replayfy records every screen, tap, network request, and error in your Flutter app so you can replay real sessions, understand drop-off, and fix bugs from an exact reproduction. ## Install ```bash CLI theme={null} flutter pub add replayfy_flutter ``` ```yaml pubspec.yaml theme={null} dependencies: replayfy_flutter: ^0.0.7 ``` **Android** — the native recording engine resolves automatically from **Maven Central** (`mavenCentral()` is already in the default Flutter Android template), so no repository configuration is needed. If you pin a pre–Maven Central version, add `maven { url 'https://jitpack.io' }` to your app's `android/settings.gradle` as a fallback. **iOS** — requires a deployment target of **iOS 15** or higher. ## Initialize Boot the SDK inside `Replay.runZoned` so console output and uncaught async errors are captured too. ```dart main.dart theme={null} import 'package:flutter/widgets.dart'; import 'package:replayfy_flutter/replayfy_flutter.dart'; void main() => Replay.runZoned(() async { WidgetsFlutterBinding.ensureInitialized(); await Replay.start(const ReplayConfig( apiKey: 'rpl_pk_YOUR_KEY', apiHost: 'https://us.replayfy.app', // or your self-hosted API URL )); runApp(const MyApp()); }); ``` Use the provided app builder so Replayfy can capture each frame, and add the navigator observer to auto-tag screens. ```dart theme={null} MaterialApp( builder: Replay.appBuilder, navigatorObservers: [ReplayNavigatorObserver()], // auto-tags screens home: const HomePage(), ); ``` ## Verify Run the app, interact with it for a few seconds, then reload. Your first session appears in the [dashboard](https://us.replayfy.app) within a minute. ## Configuration Every option on `ReplayConfig`: | Option | Type | Default | Description | | - | - | - | - | | `apiKey` | `String` | — (required) | Your project API key from the dashboard. | | `apiHost` | `String` | — (required) | Your Replayfy ingest host, e.g. `https://us.replayfy.app` (or your self-hosted API URL). | | `distinctId` | `String?` | `null` | Known user id at start; otherwise an install-stable anonymous id is used. | | `recordScreen` | `bool` | `true` | Capture screen frames for replay. | | `recordNetwork` | `bool` | `true` | Capture network requests and responses. | | `recordConsole` | `bool` | `true` | Capture console output (`print` / `debugPrint`). Requires `Replay.runZoned`. | | `recordErrors` | `bool` | `true` | Capture unhandled errors and crashes. | | `recordPerformance` | `bool` | `true` | Capture performance vitals (cold start, frame drops, memory, thermal, battery). | | `maskAllInputs` | `bool` | `false` | Automatically mask every text input. | | `autoScreenName` | `bool` | `true` | Automatically tag screens from the navigator. | | `useRemoteConfig` | `bool` | `true` | Let the dashboard override capture settings remotely. | | `debug` | `bool` | `false` | Verbose SDK logging. | ## API reference All methods are static on `Replay`. Most return `Future`. ### Lifecycle | Method | Description | | - | - | | `Replay.start(ReplayConfig config)` | Boot the SDK and start recording. | | `Replay.stop()` | Stop and finalize the session. | | `Replay.pauseRecording()` | Pause capture without ending the session. | | `Replay.resumeRecording()` | Resume after a pause. | | `Replay.startNewSession()` | End the current session and begin a fresh one. | | `Replay.cancelSession()` | Discard the in-flight session without uploading. | | `Replay.isRecording()` | Returns `Future` — whether capture is active. | | `Replay.currentSessionId()` | Returns `Future` — the current session id. | | `Replay.stopApplicationAndUploadData()` | Force-upload everything immediately (e.g. right before a forced logout). | ### Identity & events | Method | Description | | - | - | | `Replay.identify(String distinctId, {Map properties})` | Associate the session with a known user and set user properties — including a `picture` (alias `avatar`) https image URL used as the user's avatar in the dashboard. | | `Replay.track(String event, {Map properties})` | Record a custom analytics event. | | `Replay.captureException(Object error, {StackTrace? stackTrace, bool handled})` | Capture a handled exception (`handled: true` by default). | | `Replay.trackInput(String label, String value, {bool masked})` | Record a text field's value; pass `masked: true` to drop it to `"***"`. | ### Screens, tags & properties | Method | Description | | - | - | | `Replay.tagScreenName(String name)` | Manually tag the current screen. | | `Replay.excludeScreen(String name)` | Exclude a screen from frame capture **by name** (case-insensitive; matched against the tagged / auto-tagged screen name). While it's foreground the screenshot loop pauses — taps, network, and console keep flowing — and resumes on the next non-excluded screen. Distinct from `occludeSensitiveScreen`, which records but blanks the frame. | | `Replay.unexcludeScreen(String name)` | Stop excluding a screen — frame capture resumes next time it's shown. | | `Replay.setExcludedScreens(List names)` | Replace the entire excluded-screens list in one call. | | `Replay.addTagWithProperties(String tag, {Map properties})` | Add a tag with arbitrary properties. | | `Replay.setUserProperty(String key, Object? value)` | Set a property that sticks to the user. | | `Replay.setSessionProperty(String key, Object? value)` | Set a property scoped to this session only. | | `Replay.setMetadata(String key, Object? value)` | Attach metadata to the session. | | `Replay.markSessionAsFavorite()` | Flag the current session as a favorite. | | `Replay.reportBugEvent(String title, {String description})` | Log a bug report event on the timeline. | | `Replay.log(String message, {String level})` | Write a message into the console timeline. | ### Runtime configuration | Method | Description | | - | - | | `Replay.setAutomaticScreenNameTagging(bool enabled)` | Toggle automatic screen tagging at runtime. | | `Replay.enableAdvancedGestureRecognizer(bool enabled)` | Additionally capture **pinch** and **rotate** gestures, on top of the always-on tap / swipe / long-press. Off by default. | | `Replay.setMultiSessionRecord(bool enabled)` | Record multiple sessions per app launch (default), or only one — when disabled, the current/next session records and then no further sessions open this process. | | `Replay.allowShortBreakForAnotherApp(bool allow, {int breakWindowMs = 30000})` | Keep the **same** session across a brief switch to another app — a background gap up to `breakWindowMs` resumes the session; a longer gap starts a fresh session on return. | | `Replay.setAppVersion(String version, {String build})` | Set the app version and build number. | | `Replay.setPushNotificationToken(String token, {String platform})` | Register a push token (e.g. `platform: 'fcm'`). | ### Deep links | Method | Description | | - | - | | `Replay.urlForCurrentSession()` | Returns `Future` — a dashboard link to the current session. | | `Replay.urlForCurrentUser()` | Returns `Future` — a dashboard link to the current user. | ### Privacy | Method | Description | | - | - | | `Replay.setMaskStyle(ReplayMaskStyle style)` | Set the global mask style for bulk and whole-screen regions. | | `Replay.occludeAllTextFields(bool enabled)` | Mask all single-line text fields. | | `Replay.occludeAllTextView(bool enabled)` | Mask all multi-line text views. | | `Replay.occludeSensitiveScreen(bool enabled)` | Mask the entire current screen. | | `Replay.optOut(bool optedOut)` | Persistent kill switch — stop all recording. | | `Replay.optIn()` | Resume recording (same as `optOut(false)`). | | `Replay.isOptedOut()` | Returns `Future` — the current opt-out state. | ## Privacy & masking Replayfy is built to keep sensitive data off the wire. **Mask a widget** — wrap anything sensitive; it is blurred (default), covered, or pixelated in the recording: ```dart theme={null} ReplayMask( maskStyle: ReplayMaskStyle.blur, // .blur | .overlay | .pixelate child: Text('•••• •••• •••• 4242'), ); ``` **Mask a text input's value** from its callback — the value is dropped to `"***"` and never leaves the device: ```dart theme={null} TextField( obscureText: true, onSubmitted: (v) => Replay.trackInput('Password', v, masked: true), ); ``` **Bulk & whole-screen masking:** ```dart theme={null} await Replay.setMaskStyle(ReplayMaskStyle.pixelate); await Replay.occludeAllTextFields(true); // all single-line text fields await Replay.occludeAllTextView(true); // all multi-line text views await Replay.occludeSensitiveScreen(true); // the entire screen ``` Or mask every input from the start with `maskAllInputs: true` in `ReplayConfig`. **GDPR opt-out** — a persistent kill switch that survives relaunches: ```dart theme={null} await Replay.optOut(true); // stop all recording await Replay.optIn(); // resume final out = await Replay.isOptedOut(); // bool ``` Tie sessions to real users with `identify`. Send custom events and build funnels. Redact sensitive data before it leaves the device. # iOS SDK Source: https://docs.replayfy.app/platforms/ios Session replay, product analytics, and error monitoring for your iOS app. Record pixel-accurate replays, auto-captured taps and gestures, custom events, crashes, and performance vitals — with one call at launch. Requires iOS 15+. ## Install The module you import is always `Replay`, regardless of installer. ```swift Swift Package Manager theme={null} // File → Add Package Dependencies… // https://github.com/replayfy/ios-sdk (from 0.0.4) dependencies: [ .package(url: "https://github.com/replayfy/ios-sdk.git", from: "0.0.4") ], targets: [ .target( name: "YourApp", dependencies: [ .product(name: "Replayfy", package: "replay-ios-sdk"), // optional SwiftUI modifiers: .product(name: "ReplaySwiftUI", package: "replay-ios-sdk"), ] ) ] ``` ```ruby CocoaPods theme={null} pod 'Replayfy', '~> 0.0.4' ``` ## Initialize Start Replayfy as early as possible — recording begins immediately. ```swift theme={null} import Replay func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { Replay.start(with: ReplayConfig( apiKey: "rpl_pk_YOUR_KEY", apiHost: "https://us.replayfy.app" // or your self-hosted API URL )) return true } ``` No `AppDelegate`? Start it from `App.init`. ```swift theme={null} @main struct MyApp: App { init() { Replay.start(with: ReplayConfig( apiKey: "rpl_pk_YOUR_KEY", apiHost: "https://us.replayfy.app" // or your self-hosted API URL )) } var body: some Scene { WindowGroup { ContentView() } } } ``` Attach a known user and record custom events. ```swift theme={null} Replay.identify("user_123", properties: ["email": "a@b.com", "plan": "pro"]) Replay.track("purchase", properties: ["amount": 4200, "currency": "USD"]) ``` A `properties["picture"]` (or its alias `["avatar"]`) set to a public `https` image URL becomes the user's avatar on the recording header and Users list — top-level or nested in `customProps`; non-URL values are ignored. ## Verify Run the app, interact for a few seconds, then background it. Your first session appears in the [Replayfy dashboard](https://replayfy.app) within a minute. Wire up `Replay.addVerificationListener { ... }` to light up an in-app "Verify integration" state — it fires once after the first successful upload. ## Configuration Only `apiKey` and `apiHost` are required. Pass any subset to `ReplayConfig(...)`. | Option | Type | Default | Description | | - | - | - | - | | `apiKey` | `String` | **required** | Your project API key from the dashboard. | | `apiHost` | `String` | **required** | Ingest base URL, e.g. `https://us.replayfy.app` (or your self-hosted API URL). | | `projectId` | `String?` | `nil` | Only when one key covers multiple projects. | | `distinctId` | `String?` | `nil` | Known user id at start; otherwise an install-stable anonymous id is used. | | `flushInterval` | `TimeInterval` | `5` | Seconds between automatic uploads of the in-memory batch. | | `maxBufferSize` | `Int` | `500` | Events buffered before an upload is forced. | | `captureConsole` | `Bool` | `true` | Capture `print` / `NSLog` / `os_log` output. | | `captureNetwork` | `Bool` | `false` | Capture HTTP requests (off by default to avoid PII). | | `captureErrors` | `Bool` | `true` | Capture uncaught exceptions and crashes. | | `captureHeaders` | `Bool` | `false` | Include request/response headers in network capture. | | `captureBodies` | `Bool` | `true` | Include request/response bodies (capped by `maxBodyBytes`). | | `maxBodyBytes` | `Int` | `4096` | Max captured body bytes per network event; larger bodies are truncated. | | `captureSnapshotPixels` | `Bool` | `true` | Pixel-accurate replay when `true`; lighter wireframe replay when `false`. | | `snapshotInterval` | `TimeInterval` | `0.5` | Screen-capture cadence in seconds (floored at 0.2s). | | `autoScreenName` | `Bool` | `true` | Auto-detect the current screen from the foreground view controller. | | `useRemoteConfig` | `Bool` | `true` | Let dashboard settings override these values at runtime. | | `captureTouch` | `Bool` | `true` | Capture taps natively (disable only for host-driven capture such as Flutter). | | `excludedScreens` | `[String]` | `[]` | Screen names whose frame capture is paused while they're foreground (see [Screens](#screens)). Case-insensitive; taps, network, and console still record. Mutable at runtime via `Replay.excludeScreen`/`setExcludedScreens`. | ## API reference All methods are static on the `Replay` type. ### Lifecycle | Method | Description | | - | - | | `Replay.start(with: ReplayConfig)` | Boot the SDK and start recording. Call once at launch. | | `Replay.stop()` | End the current session and upload immediately; a new session starts on next foreground. | | `Replay.isRecording` | `Bool` — whether a session is currently recording. | | `Replay.pauseRecording()` | Pause screen capture (other events keep flowing). | | `Replay.resumeRecording()` | Resume screen capture. | | `Replay.startNewSession()` | Force a new logical session (e.g. after logout → login). | | `Replay.stopApplicationAndUploadData(timeoutSeconds:)` | Stop recording and block up to `timeoutSeconds` until the buffer flushes. | | `Replay.cancelSession()` | Discard the current session **without uploading** — clears the in-memory buffer and deletes any on-disk batches still queued, so the server drops whatever already streamed. A fresh session can start afterward. Contrast with `stop()`, which ends the session gracefully and uploads. | | `Replay.enableAdvancedGestureRecognizer(_:)` | Additionally capture **pinch** and **rotate** gestures, on top of the always-on tap / swipe / long-press. Off by default. | | `Replay.allowShortBreakForAnotherApp(_:windowSeconds:)` | Keep the **same** session across a brief switch to another app — a background gap up to `windowSeconds` (default `30`) resumes the session; a longer gap starts a fresh session on return. | | `Replay.setMultiSessionRecord(_:)` | Record multiple sessions per app launch (default `true`), or only one — when `false`, the current/next session records and then no further sessions open this process. | ### Identify & analytics | Method | Description | | - | - | | `Replay.identify(_:properties:)` | Attach a known user to the session; anonymous history links back to them. | | `Replay.track(_:properties:)` | Fire a custom event onto the timeline (drives funnels and filters). | | `Replay.setUserProperty(_:value:)` | Sticky property on the end user (persists across sessions). | | `Replay.setSessionProperty(_:value:)` | Sticky property on the current session only. | | `Replay.addTagWithProperties(_:properties:)` | Session-level tag (with optional properties) for filtering sessions. | | `Replay.markSessionAsFavorite()` | Star the current session so it surfaces in the dashboard's saved filter. | | `Replay.reportBugEvent(_:description:)` | Send a manual bug report (wire to a "Report issue" button). | ### Error monitoring | Method | Description | | - | - | | `Replay.captureException(_:properties:)` | Report a caught error onto the timeline (`handled = true` by default). | | `Replay.captureException(_:handled:)` | Report a caught error; pass `handled: false` to mark it fatal. | Uncaught exceptions and crashes are captured automatically when `captureErrors` is `true`. ### Screens | Method | Description | | - | - | | `Replay.tagScreenName(_:)` | Manually set the current screen name (overrides the auto-tagger). | | `Replay.setAutomaticScreenNameTagging(_:)` | Toggle the automatic screen-name tagger at runtime. | | `Replay.excludeScreen(_:)` | Exclude a screen from frame capture **by name** (case-insensitive; matched against the tagged / auto-tagged screen name). While that screen is foreground the periodic screenshot loop pauses — taps, network, console, and performance events keep flowing — and resumes on the next non-excluded screen. | | `Replay.unexcludeScreen(_:)` | Stop excluding a screen — frame capture resumes next time it's shown. | | `Replay.setExcludedScreens(_:)` | Replace the entire excluded-screens list in one call. | Exclusion is **distinct from `occludeSensitiveScreen(_:)`** — that keeps recording but blanks the frame, whereas an excluded screen captures no frames at all. Seed the list at launch, or manage it at runtime: ```swift theme={null} // Seed at startup: Replay.start(with: ReplayConfig( apiKey: "rpl_pk_YOUR_KEY", apiHost: "https://us.replayfy.app", // or your self-hosted API URL excludedScreens: ["Paywall", "PinEntry"] )) // …or manage at runtime: Replay.excludeScreen("Paywall") // pause frames while "Paywall" is foreground Replay.unexcludeScreen("Paywall") // resume Replay.setExcludedScreens(["PinEntry", "CardScanner"]) ``` ### Logging | Method | Description | | - | - | | `Replay.log(level:message:stack:)` | Bridge a custom logger into the console tab. `level` ∈ `"log"`, `"info"`, `"warn"`, `"error"`, `"debug"`. | ### Metadata | Method | Description | | - | - | | `Replay.setAppVersion(_:build:)` | Override the auto-detected app version/build (useful for RN/Flutter shells). | | `Replay.setPushNotificationToken(_:platform:)` | Attach the device push token to the session. | ### Text input | Method | Description | | - | - | | `Replay.addObservedInput(_:)` | Record a text field's value when editing ends (opt-in per field). Secure fields record as `"***"`. | | `Replay.trackInput(label:value:masked:)` | Report a value not backed by a `UITextField`. `masked` → `"***"`. | ### Network capture Set `captureNetwork: true`. `URLSession.shared` is captured automatically. For a custom configuration, register it before creating the session. | Method | Description | | - | - | | `Replay.captureURLSessionConfiguration(_:)` | Register a custom `URLSessionConfiguration` for capture. | ```swift theme={null} let cfg = URLSessionConfiguration.default Replay.captureURLSessionConfiguration(cfg) let session = URLSession(configuration: cfg) ``` ### Consent / opt-out | Method | Description | | - | - | | `Replay.optOutOverall(_:)` | Overall opt-out — drops all events and recording. Persists across launches. | | `Replay.isOptedOutOverall` | `Bool` — whether the user is currently opted out. | | `Replay.optOutOfSchematicRecordings(_:)` | Snapshot-only opt-out — pauses frame capture while every other event type keeps flowing. Persists across launches. | | `Replay.isOptedOutOfSchematicRecordings` | `Bool` — whether snapshot recording is currently opted out. | ### Deep links | Method | Description | | - | - | | `Replay.urlForCurrentSession()` | `String?` — the dashboard URL for the current session (`/recordings/`, with the app host derived from `apiHost`), or `nil` when no session is active. | | `Replay.urlForCurrentUser()` | `String?` — the dashboard URL for the currently-identified user, or `nil` before `identify()` is called. | ### Integration verification | Method | Description | | - | - | | `Replay.addVerificationListener(_:)` | Fires once after the first successful upload. Returns a token to remove it later. | | `Replay.removeVerificationListener(_:)` | Remove a previously added verification listener by token. | ### Cross-platform bridges Entry points for host frameworks (React Native, Flutter) that capture interactions, inputs, and frames themselves. Native iOS apps don't need them. | Method | Description | | - | - | | `Replay.reportInteraction(kind:label:x:y:)` | Feed a host-captured interaction (tap, gesture) into the timeline. | | `Replay.reportFrame(_:rects:styles:)` | Feed a host-captured frame with occlusion rects and styles. | ## Privacy & masking Sensitive content never has to leave the device. Secure/password fields (`isSecureTextEntry`) are masked automatically; everything else is opt-in. ### Choose a mask style ```swift theme={null} Replay.setMaskStyle(.blur) // Gaussian blur (default) Replay.setMaskStyle(.overlay) // solid box — nothing survives Replay.setMaskStyle(.pixelate) // coarse mosaic Replay.setBlurRadius(8) // blur strength for .blur regions ``` `ReplayMaskStyle` values: `.blur`, `.overlay`, `.pixelate`. ### UIKit masking ```swift theme={null} // Mask a single view (marks propagate to subviews). Replay.addPrivacyView(cardNumberField) Replay.removePrivacyView(cardNumberField) // Mask every text field / text view, or every label. Replay.occludeAllTextFields(true) Replay.occludeAllTextView(true) // Mask every instance of a view class, everywhere it appears. Replay.applyOcclusion(CreditCardView.self) Replay.removeOcclusion(CreditCardView.self) // Mask the entire screen (banking PIN pad, health records, …). Replay.occludeSensitiveScreen(true) // Mask specific regions on the next frame only (root-relative points). Replay.occludeRectsOnNextFrame(rects) Replay.occludeRectsOnNextFrame(rects, style: .overlay) ``` ### SwiftUI masking Import the optional `ReplaySwiftUI` module: ```swift theme={null} import ReplaySwiftUI var body: some View { VStack { CreditCardForm() .replayOcclude() // mask this view's region } .replayTagScreenName("Checkout") // tag the screen on appear } ``` `replayOcclude(blockGestures:)` also suppresses taps on the masked region when `blockGestures` is `true` (the default). Link sessions to known users and their properties. Fire custom events to power funnels and filters. Redact sensitive views, fields, and regions. # React Native SDK Source: https://docs.replayfy.app/platforms/react-native Session replay, product analytics, and error monitoring for React Native apps. Replayfy records screens, taps, gestures, network, console, and crashes on the native engines, then replays them pixel-for-pixel in your dashboard. ## Install ```bash npm theme={null} npm install @replayfyapp/react-native ``` ```bash yarn theme={null} yarn add @replayfyapp/react-native ``` Install the iOS pods: ```bash iOS theme={null} cd ios && pod install ``` React Native links the native module automatically. Rebuild the app (`npx react-native run-ios` / `run-android`) so the native module is bundled. **Android.** The native Android engine resolves automatically from **Maven Central** — no repository configuration is needed (`mavenCentral()` is already in the standard React Native Android template). If you pin a pre–Maven Central version, add `maven { url 'https://jitpack.io' }` to your app's `android/settings.gradle` as a fallback. ## Initialize Boot the SDK once, as early as possible. This is idempotent. ```tsx theme={null} import Replay from '@replayfyapp/react-native'; Replay.start({ apiKey: 'rpl_pk_YOUR_KEY', apiHost: 'https://us.replayfy.app', // or your self-hosted API URL }); ``` Wrap your tree to start recording on mount. ```tsx theme={null} import { ReplayProvider } from '@replayfyapp/react-native'; export default function App() { return ( ); } ``` Once recording, attach identity and events. ```tsx theme={null} Replay.identify('user_123', { plan: 'pro', email: 'a@b.com' }); Replay.track('purchase', { amount: 4200, currency: 'USD' }); Replay.screen('Checkout'); ``` A `picture` (or `avatar`) trait set to a public `https` image URL — top-level or inside `customProps` — becomes the user's avatar on the recording header and Users list. ## Verify Reload the app and interact for a few seconds. Your first session appears in the [Replayfy dashboard](https://us.replayfy.app) within moments. ## Configuration Pass these to `Replay.start(config)`: | Option | Type | Default | Description | | - | - | - | - | | `apiKey` | `string` | **required** | Your project API key from the dashboard. | | `apiHost` | `string` | **required** | Ingest host, e.g. `https://us.replayfy.app` (or your self-hosted API URL). | | `distinctId` | `string` | — | Known user id at start (otherwise an install-stable anonymous id is used). | | `recordScreen` | `boolean` | `true` | Capture screen frames. | | `recordNetwork` | `boolean` | `true` | Capture `fetch` + `XHR` traffic. | | `recordConsole` | `boolean` | `true` | Capture `console.*` output. | | `recordErrors` | `boolean` | `true` | Capture unhandled JS errors. | | `recordPerformance` | `boolean` | `true` | Capture performance vitals. | | `maskAllInputs` | `boolean` | `false` | Mask every text input in replay. | | `fps` | `number` | `1` | Screen snapshot frames per second. | | `wifiOnly` | `boolean` | `false` | Only upload over Wi-Fi. | | `debug` | `boolean` | `false` | Verbose SDK logging. | | `network` | `object` | — | Network capture tuning (see below). | **Network capture options** (`config.network`): | Option | Type | Default | Description | | - | - | - | - | | `captureBodies` | `boolean` | `false` | Capture request/response bodies. | | `maxBodyBytes` | `number` | `4096` | Truncate captured bodies beyond this length. | | `redactHeaders` | `string[] \| boolean` | sensitive denylist | Header names to drop; `true` drops all, `false` keeps all. | | `ignoreUrls` | `Array` | — | URLs to skip entirely (substring for strings, `.test` for RegExp). | ## API reference Reach the client through the default export (`Replay`), or `getClient()`. | Method | Signature | Description | | - | - | - | | `start` | `start(config)` | Boot the SDK and start recording. Idempotent. | | `identify` | `identify(distinctId, traits?)` | Attach a known-user identity, with optional traits as metadata. | | `track` | `track(name, props?)` | Record a custom timeline / funnel event. | | `captureException` | `captureException(error, opts?)` | Report a handled error to the timeline and issues (`handled` defaults to `true`; extra `opts` keys merge into the payload). | | `stopApplicationAndUploadData` | `stopApplicationAndUploadData()` | Flush and upload the current session's buffered data immediately. | | `stop` | `stop()` | Stop recording, flush, and detach the JS observers. | | `screen` | `screen(name)` | Set the current screen name. | | `trackScreens` | `trackScreens(navigationRef)` | Automatic screen tracking for React Navigation. | | `excludeScreen` | `excludeScreen(name)` | Exclude a screen from frame capture **by name** (case-insensitive; matched against the tagged / auto-tagged screen name). While it's foreground the screenshot loop pauses — taps, network, console, and performance events keep flowing — and resumes on the next non-excluded screen. Distinct from `occludeSensitiveScreen`, which records but blanks the frame. | | `unexcludeScreen` | `unexcludeScreen(name)` | Stop excluding a screen — frame capture resumes next time it's shown. | | `setExcludedScreens` | `setExcludedScreens(names)` | Replace the entire excluded-screens list in one call. | | `trackInput` | `trackInput(label, value, masked?)` | Record a `TextInput` value from `onEndEditing`; `masked: true` drops the value (`"***"`). | | `setUserProperty` | `setUserProperty(key, value)` | Set a sticky, user-level property. | | `setSessionProperty` | `setSessionProperty(key, value)` | Set a property for this session only. | | `setMetadata` | `setMetadata(key, value)` | Set sticky metadata. | | `addTagWithProperties` | `addTagWithProperties(tag, props)` | Add a tag with attached properties. | | `pauseRecording` | `pauseRecording()` | Pause capture. | | `resumeRecording` | `resumeRecording()` | Resume capture. | | `startNewSession` | `startNewSession()` | End the current session and begin a new one. | | `cancelSession` | `cancelSession()` | Discard the current session **without uploading** — the server drops whatever already streamed, and a fresh session can start afterward. | | `enableAdvancedGestureRecognizer` | `enableAdvancedGestureRecognizer(enabled)` | Additionally capture **pinch** and **rotate** gestures, on top of the always-on tap / swipe / long-press. Off by default. | | `allowShortBreakForAnotherApp` | `allowShortBreakForAnotherApp(allow, breakWindowMs?)` | Keep the **same** session across a brief switch to another app — a background gap up to `breakWindowMs` (default `30000`) resumes the session; a longer gap starts a fresh session on return. | | `setMultiSessionRecord` | `setMultiSessionRecord(enabled)` | Record multiple sessions per app launch (default), or only one — when disabled, the current/next session records and then no further sessions open this process. | | `isRecording` | `isRecording(): Promise` | Whether the SDK is currently recording. | | `getSessionId` | `getSessionId(): Promise` | The current session id. | | `urlForCurrentSession` | `urlForCurrentSession(): Promise` | Deep link to the current session. | | `urlForCurrentUser` | `urlForCurrentUser(): Promise` | Deep link to the current user. | | `optOut` | `optOut(bool)` | Stop all recording for this user (GDPR). | | `isOptedOut` | `isOptedOut(): Promise` | Whether the user has opted out. | | `markSessionAsFavorite` | `markSessionAsFavorite()` | Flag the current session as a favorite. | | `setAppVersion` | `setAppVersion(name, code)` | Set the app version name and build code. | | `setPushNotificationToken` | `setPushNotificationToken(token)` | Attach a push token to the session. | | `log` | `log(message, level)` | Bridge a log line onto the timeline. | | `setMaskStyle` | `setMaskStyle(style)` | Set masked-region render style (`Blur \| Overlay \| Pixelate`). | | `occludeAllTextFields` | `occludeAllTextFields(bool)` | Hide all text fields from replay. | | `occludeAllTextView` | `occludeAllTextView(bool)` | Hide all text views from replay. | | `occludeSensitiveScreen` | `occludeSensitiveScreen(bool)` | Occlude the entire current screen. | ### React Navigation screen tracking ```tsx theme={null} import { trackScreens } from '@replayfyapp/react-native'; const navRef = useNavigationContainerRef(); trackScreens(navRef)} onStateChange={() => trackScreens(navRef)} />; ``` ## Privacy & masking Replayfy keeps sensitive data off your servers. * **``** — wrap any element to mask it in replay: ```tsx theme={null} import { ReplayMask } from '@replayfyapp/react-native'; ; ``` * **Automatic input masking** — secure/password inputs are masked automatically. Set `maskAllInputs: true` to mask every input. * **Mask style** — choose how masked regions render: ```tsx theme={null} import { ReplayMaskStyle } from '@replayfyapp/react-native'; Replay.setMaskStyle(ReplayMaskStyle.Blur); // Blur | Overlay | Pixelate ``` * **Screen occlusion** — hide fields or entire flows: ```tsx theme={null} Replay.occludeAllTextFields(true); Replay.occludeAllTextView(true); Replay.occludeSensitiveScreen(true); ``` * **Network redaction** — drop sensitive headers or skip URLs via `config.network.redactHeaders` and `config.network.ignoreUrls`; request/response bodies are off by default. For per-field input values, pass `masked: true` to `trackInput` — the value is dropped (recorded as `"***"`) and never leaves the device. Attach identities and traits to power funnels and cohorts. Record custom events for analytics and funnels. Mask, occlude, and redact sensitive data. # Web SDK Source: https://docs.replayfy.app/platforms/web Session replay, product analytics, and error monitoring for the browser. Record pixel-accurate session replays, track product events, and capture every JavaScript error from any web app — with a few lines of code. ## Install ```bash npm theme={null} npm install @replayfyapp/browser ``` ```html Script tag theme={null} ``` ## Initialize Call the initializer as early as possible — recording begins immediately. Only `apiKey` and `apiHost` are required. ```ts npm theme={null} import { initReplay } from "@replayfyapp/browser"; const replay = initReplay({ apiKey: "rpl_pk_YOUR_KEY", apiHost: "https://us.replayfy.app", // or your self-hosted API URL }); ``` ```html Script tag theme={null} ``` `init()` is idempotent — a second call returns the live session instead of starting a second recording. **Why the loader looks like this.** Loading the bundle with `async` means it never blocks your page from rendering, and the small inline stub queues any `init`/`track` calls made before the bundle finishes downloading (they replay in order once it does). The `crossorigin="anonymous"` attribute is what lets the browser hand Replayfy a **full error stack trace** instead of a bare `"Script error."` — without it, the browser's cross-origin security model strips the message, file, and stack from any error thrown by a script served from another origin (the CDN). Replayfy's CDN sends the matching `Access-Control-Allow-Origin` header, so the two work together. If you self-host the bundle on a host that does **not** send that header, drop the `crossorigin` line — otherwise the browser will refuse to load the script. Attach a distinct id and traits so replays and events are tied to a real person. ```ts npm theme={null} replay.identify("user_123", { email: "ada@example.com", plan: "pro" }); replay.track("checkout_started"); ``` ```js Script tag theme={null} Replayfy.identify("user_123", { email: "ada@example.com", plan: "pro" }); Replayfy.track("checkout_started"); ``` Include `picture` (or its alias `avatar`) with a public `https` image URL — either top-level or inside `customProps` — to set the user's avatar in the recording header and Users list; non-URL values are ignored. With the script tag you call these on the `Replayfy` global (no returned controller to hold). **React / Next.js** — call `initReplay(...)` once in a top-level client effect (e.g. a root `useEffect` or a `"use client"` provider) so it runs in the browser, not during server rendering. The single instance persists across route changes. ## Verify Reload your app, click around for a few seconds, then open the **Sessions** view in your Replayfy dashboard — your first session appears within a minute. ## Configuration Pass these options to `initReplay(config)` (npm) or `Replayfy.init(config)` (CDN). Only `apiKey` and `apiHost` are required. | Option | Type | Default | Description | | - | - | - | - | | `apiKey` | `string` | — | **Required.** Your project's publishable API key. | | `apiHost` | `string` | — | **Required.** Replayfy ingest host, e.g. `https://us.replayfy.app` (or your self-hosted API URL). | | `projectId` | `string` | — | Optional project identifier, useful when one key spans environments. | | `distinctId` | `string` | — | Identify the user at startup (equivalent to calling `identify` immediately). | | `revId` | `string` | — | Build / release id of the deployed app, to scope replays and funnels to one release. | | `sessionId` | `string` | auto | Override the generated session id (advanced; normally left unset). | | `flushIntervalMs` | `number` | `3000` | How often, in milliseconds, buffered events are sent. | | `maxBufferSize` | `number` | — | Maximum number of events to hold in memory between flushes. | | `captureConsole` | `boolean` | `true` | Record `console.*` output on the session timeline. | | `captureNetwork` | `boolean` | `true` | Record fetch/XHR requests (method, URL, status, timing). | | `captureErrors` | `boolean` | `true` | Capture unhandled errors and promise rejections. | | `captureHeaders` | `boolean` | `false` | Include request/response headers on captured network events. | | `redactHeaderNames` | `string[]` | — | Extra header names (beyond the built-in deny-list) whose values are masked before sending. | | `maxBodyBytes` | `number` | `8192` | Maximum captured request/response body size, in bytes. | | `captureResourceTimings` | `boolean` | `true` | Capture per-resource timing (images, scripts, CSS, fonts). | | `resourceMinDurationMs` | `number` | `0` | Skip resource-timing entries faster than this many milliseconds to trim volume. | | `maskAllInputs` | `boolean` | `true` | Mask the value of every `` in the replay. | | `maskTextSelector` | `string` | — | CSS selector for text nodes to mask in the replay. | | `blockSelector` | `string` | — | CSS selector for elements to fully block (rendered as a placeholder). | | `redactUrls` | `Array` | — | Patterns whose matches are stripped from captured URLs. | | `excludeUrls` | `string[]` | — | "Don't record this page" — a deny-list of URL **path globs** (`*` matches within a path segment, `**` matches across segments), e.g. `["/settings/billing", "/admin/**"]`. A matching page records nothing and ships nothing. | | `sdk` | `object` | — | Override SDK descriptor fields (name/version) reported with each batch. | | `beforeSend` | `(event) => event \| null` | — | Inspect or mutate each batch before it's sent; return `null` to drop it. | | `fetchImpl` | `typeof fetch` | `window.fetch` | Custom `fetch` implementation (advanced/testing). | Privacy, capture, and sampling settings configured in your Replayfy **dashboard are fetched at startup and take precedence over the values passed to `init()`** — so you can tighten masking or pause recording without shipping a new build. Auto-captured clicks are now labelled with the element's **real text** — its `aria-label`, `title`, associated form-control label, or trimmed visible caption — instead of a raw CSS selector, so heatmaps and click funnels read as human-friendly names (an input's typed value is never used as a label). ## API reference `initReplay()` returns a controller with the methods below. With the CDN global, the same methods are available as `Replayfy.identify(...)`, `Replayfy.track(...)`, etc., after `Replayfy.init(...)`. | Method | Signature | Description | | - | - | - | | `identify` | `identify(distinctId: string, props?: object): void` | Associate the current session with a user. Also accepts a single payload object: `identify({ distinctId, ...traits })`. | | `track` | `track(name: string, properties?: object): void` | Record a custom product event. Use stable `snake_case`/`camelCase` names so they're searchable in funnels. | | `captureException` | `captureException(error: Error, opts?: { handled?: boolean }): void` | Report a handled exception as a first-class issue (name, message, parsed stack). `opts.handled` defaults to `true`; pass `false` to record a fatal error. | | `flush` | `flush(): Promise` | Send any buffered events immediately. | | `stop` | `stop(): Promise` | Stop all capture, end the session, and flush the final batch. | | `sessionId` | `sessionId: string` | The current session's id, handy for correlating with your own logs. | | `urlForCurrentSession` | `urlForCurrentSession(): string \| null` | The dashboard deep link for the current session — `/recordings/`, with the app host derived from `apiHost`. Returns `null` before a session has started. This is the private, authenticated dashboard view, not a public share link. | ```ts npm theme={null} // handled error try { risky(); } catch (e) { replay.captureException(e); } // fatal error replay.captureException(new Error("boom"), { handled: false }); await replay.flush(); await replay.stop(); console.log(replay.sessionId); console.log(replay.urlForCurrentSession()); // → https://app.replayfy.app/recordings/ (or null) ``` ```js Script tag theme={null} // handled error try { risky(); } catch (e) { Replayfy.captureException(e); } // fatal error Replayfy.captureException(new Error("boom"), { handled: false }); await Replayfy.flush(); await Replayfy.stop(); console.log(Replayfy.sessionId); console.log(Replayfy.urlForCurrentSession()); // → https://app.replayfy.app/recordings/ (or null) ``` ## Privacy & masking Replayfy is designed to keep sensitive data in the browser — **every `` value is masked by default**. Tune redaction with these options: * **`maskAllInputs`** (default `true`) — masks the value of every input field in the replay. * **`maskTextSelector`** — CSS selector for text nodes to mask (e.g. `.pii, .account-number`), shown as `●●●●` in playback. * **`blockSelector`** — CSS selector for elements to block entirely; they render as a placeholder box. * **`redactUrls`** — string/`RegExp` patterns stripped from captured URLs, so tokens and ids never leave the page. * **`excludeUrls`** — path globs for whole pages that must never be recorded (e.g. `["/settings/billing", "/admin/**"]`); a matching page captures and ships nothing at all. * **`captureHeaders`** (default `false`) — headers are only captured when explicitly enabled. * **`redactHeaderNames`** — additional header names whose values are masked, on top of the always-on built-in deny-list. * **`maxBodyBytes`** — caps how much of a request/response body is ever captured. ```html theme={null} 4111 1111 1111 1111
``` ```ts npm theme={null} initReplay({ apiKey: "rpl_pk_YOUR_KEY", apiHost: "https://us.replayfy.app", // or your self-hosted API URL maskAllInputs: true, maskTextSelector: ".rpf-mask", blockSelector: ".rpf-block", redactUrls: [/\/reset-password\/[^/]+/], }); ``` ```js Script tag theme={null} Replayfy.init({ apiKey: "rpl_pk_YOUR_KEY", apiHost: "https://us.replayfy.app", // or your self-hosted API URL maskAllInputs: true, maskTextSelector: ".rpf-mask", blockSelector: ".rpf-block", redactUrls: [/\/reset-password\/[^/]+/], }); ``` For full control, `beforeSend` receives each batch before it leaves the browser, so you can drop or scrub anything programmatically. Tie sessions and events to real people with distinct ids and traits. Fire custom product events to power funnels, segments, and retention. Redact inputs, text, elements, and URLs before data leaves the browser. # Alerts Source: https://docs.replayfy.app/products/alerts Get an email when something you care about happens — a watched issue comes back, a dashboard signal recurs, a metric crosses a threshold, or a funnel's conversion drops. Alerts are how Replayfy tells you when something you care about happens again — without you having to keep the dashboard open. Replayfy already detects issues, signals, and conversion trends across your web and mobile sessions; an alert is a standing subscription that says *where to notify you* when one of them fires. Alerts are **email-first**. Every alert can email a list of recipients, and funnel-conversion alerts are delivered by email only. Recurrence and threshold alerts also drop into the in-app notification bell and can fan out to a connected channel like PagerDuty, Slack, or a webhook. You manage alerts on the **Alerts** page at [app.replayfy.app/alerts](https://app.replayfy.app/alerts). Alerts are *born* from the feature you're watching — a funnel, an issue, or a signal — and then live on the Alerts page for you to retune, re-route, pause, or remove. ## Alert types Replayfy has four kinds of alert. Which one you get depends on what you were looking at when you created it. | Type | Watches | Fires when | Delivery | | - | - | - | - | | **Issue recurrence** | A specific issue you asked Replayfy to watch | The issue regresses — it was resolved and has come back | In-app bell · email · connected channels | | **Signal recurrence** | A dashboard signal (incident) | The signal is active again with fresh activity after you set the alert | In-app bell · email · connected channels | | **Metric threshold** | A daily signal metric (crashes, slow APIs, frustration, health score…) | Today's value crosses your threshold (above or below) | In-app bell · email · connected channels | | **Funnel conversion** | A saved funnel's overall conversion rate | Conversion drops, or falls below / rises above a percentage over a window of days | **Email only** | Metric-threshold alerts watch the *same* daily counters the dashboard shows — crashes, backend failures, slow API calls, frustrated sessions, form abandonment, navigation loops, conversion failures, conversion successes, and health score. An alert never watches an invented metric. ## How alerts get created The Alerts page is a management surface, not a builder — you create each alert from the thing it watches. Open a saved funnel and choose **Alert on this funnel** from the builder header. Pick a condition, add recipients, and Replayfy checks the funnel's conversion once a day. See the [Funnels](/products/funnels) guide for building the funnel first. Open an issue and ask Replayfy to watch it, or tell **Replayfy AI** "alert me if this issue comes back." The alert fires the moment the issue regresses (resolved → back again). On a dashboard signal, choose **Create alert**. It's baselined to the signal's current activity, so it only notifies you about *future* recurrence — never the activity you're looking at right now. Ask **Replayfy AI** something like "email me if crashes go above 50 today." The AI can create threshold and recurrence alerts on your behalf; editing, pausing, and deleting them stay with you on the Alerts page. ### Create a funnel-conversion alert Go to [Funnels](/products/funnels), open the funnel you want to watch, and click **Alert on this funnel** in the builder header. The funnel must be saved first. Pick **Drops by** (a relative drop versus the previous window) or **Falls below** (a fixed conversion percentage), then set the threshold. The comparison window comes from the funnel's own window in days. Your account email is pre-filled. Type any additional addresses and press Enter or comma to add each one. Remove anyone you don't want. Click **Create alert**. Replayfy checks conversion once daily off the conversion history and emails everyone on the list when the condition is met. ## The condition model Every alert that isn't a plain "watch this again" subscription is defined by a small, consistent condition: a **comparator**, a **threshold**, and — for funnel alerts — a **window in days**. | Field | Applies to | Values | What it means | | - | - | - | - | | `comparator` | Metric threshold | `ABOVE` · `BELOW` | Fire when today's metric value is above / below the threshold. | | `comparator` | Funnel conversion | `DROP_PCT` · `BELOW` · `ABOVE` | Fire on a relative drop vs the prior window, or when conversion falls below / rises above a fixed percentage. | | `threshold` | Metric threshold | Any number | The count or score to compare today's value against. | | `threshold` | Funnel conversion | `0`–`100` | A percentage — either the relative drop (for `DROP_PCT`) or the conversion rate (for `BELOW` / `ABOVE`). | | `windowDays` | Funnel conversion | `1`–`90` (default `7`) | The comparison window. For `DROP_PCT`, the current window is measured against the equal-length window before it. | Here's how the same funnel alert reads as a stored condition for each comparator: ```json Drops by theme={null} { "comparator": "DROP_PCT", "threshold": 20, "windowDays": 7 } // Conversion drops by more than 20% vs the previous 7 days ``` ```json Falls below theme={null} { "comparator": "BELOW", "threshold": 40, "windowDays": 7 } // Conversion falls below 40% over the last 7 days ``` ```json Rises above theme={null} { "comparator": "ABOVE", "threshold": 65, "windowDays": 14 } // Conversion rises above 65% over the last 14 days ``` Funnel-conversion alerts need enough traffic to be trustworthy. A window with very few entrants won't fire, and a `DROP_PCT` alert also needs a healthy prior window to compare against — so a quiet day never triggers a false alarm. ## Email delivery and recipients Email is the primary channel for alerts, and the only channel for funnel-conversion alerts. * **Multiple recipients.** Funnel-conversion alerts carry a recipient list. Add as many teammates as you need (up to 20); duplicates and malformed addresses are dropped automatically. * **Sensible default.** Leave the recipient list empty and the alert emails **the person who created it**, using their Replayfy account email. The funnel builder pre-fills your own address so there's always at least one recipient. * **What lands in the inbox.** Each email names the alert, describes exactly what happened (for example, *"Checkout conversion is 31.4% — down 22% from 40.1% over the last 7 days"*), and — for funnel alerts — includes a **View funnel** button that deep-links straight back to the dashboard. Email recipients are addresses you or your teammates enter explicitly. Replayfy never emails an address it inferred — an alert only reaches its recipient list or, as a fallback, the creator's account email. ## Delivery channels | Channel | Issue / signal / metric alerts | Funnel-conversion alerts | | - | - | - | | **In-app bell** | Always on — owners and admins see it | — | | **Email** | Optional, to a recipient or the creator | Always on, to the full recipient list | | **PagerDuty / Slack / Webhook** | Optional, if connected | — | For recurrence and threshold alerts you can route to an external channel in addition to the bell and email. A provider only appears as a choice once you've connected it — an alert can't route somewhere that would silently never deliver. Connect PagerDuty, Slack, or a webhook per-workspace under **Settings → Integrations**. See [Integrations](/platform/integrations) to set one up, then pick it from the alert's channel picker. ## Managing alerts on the Alerts page The Alerts page lists every alert in the workspace, newest first, with a stat row at the top (total alerts, how many are watching an issue, and how many are paused). Each row shows what the alert is **watching**, its **channel**, and when it **last fired**. Go to [app.replayfy.app/alerts](https://app.replayfy.app/alerts). Click the **⋯** menu at the end of any alert row. For a **funnel-conversion** alert, choose **Manage alert** to edit the comparator, threshold, window in days, and the email recipient list. For an **issue, signal, or metric** alert, choose **Change channel** to pick which connected channels it routes to (the in-app bell is always on, and the email leg is shown). Choose **Unsubscribe from issue** (for an issue-recurrence alert — the issue itself stays, only the subscription is removed) or **Delete alert**. Both stop the notifications immediately and can't be undone. An alert that has been paused stops firing without being deleted and shows a **Paused** badge in its *Last fired* column — useful for muting a noisy alert during a known incident or a planned change. A row labels itself by exactly what it watches. If a watched issue is later deleted, the alert honestly reads **"Issue unavailable"** rather than inventing a title — so the list never lies about what it's tracking. ## When alerts fire Different alerts are evaluated on different cadences, matched to how quickly their underlying data changes. | Alert | Cadence | Notes | | - | - | - | | Issue recurrence | Every few minutes | Fires shortly after the issue regresses. | | Signal recurrence | Every few minutes | Fires on fresh activity after the alert was set. | | Metric threshold | Every few minutes | Checked against **today's** metric value. | | Funnel conversion | Once daily | Evaluated off the previous day's conversion history. | Every alert has a **cooldown**: once it fires, it won't notify you again for the same ongoing condition for about six hours. A still-breaching alert folds into a single ongoing notification instead of paging you every tick. ## Related Build a conversion funnel, then attach a funnel-conversion alert to it. Connect PagerDuty, Slack, or a webhook to route alerts beyond email. See how Replayfy detects the issues that recurrence alerts watch. # Analytics Source: https://docs.replayfy.app/products/analytics A dedicated analytics workspace — build metric trends, measure retention, rank any dimension, and read Core Web Vitals, all from your real sessions and every number one click from the recordings behind it. The **Analytics** section is Replayfy's dedicated analytical workspace. Where your **Overview** home page gives you Segments and Activity at a glance, Analytics is where you go to ask a specific question and shape the answer — a metric trend, a retention grid, a ranked breakdown, or your Core Web Vitals. Everything here runs on the **same sessions and events** the rest of Replayfy uses, computed live — there are no separate pipelines to configure and nothing is a placeholder. A brand-new workspace shows an install prompt until real sessions arrive. Plot any metric over time, broken down by any dimension, compared to the prior period. A cohort grid showing what share of users come back, day by day or week by week. LCP, INP, and CLS at the 75th percentile, per page, rated good / needs work / poor. Rank any dimension — browser, country, device, path — by sessions or users. Every tracked event with its volume, trend, and the properties it carries. Analytics reads the same real data as the Overview, but before any panel fetches it checks whether your workspace has recordings at all — so an empty workspace goes straight to an install prompt instead of a flash of empty charts. ## Trends **Trends** is a query builder for time series. You pick one or more **series** — a metric to measure — and Replayfy plots them over your selected window. Each series has two parts: | Field | What it is | | - | - | | **Event** | What to measure — **Sessions** (the default), **Pageviews**, or any custom event you `track()`. | | **Measure** | How to count it — total count, unique users, or (for numeric event properties) a sum or average of a property. | Add more than one series to overlay several metrics on the same axes, then shape the query with the controls in the rail: * **Breakdown** — split the first series by a dimension (Platform, Browser, OS, Country, Device, Plan, and any dimension your events actually carry). Each value becomes a legend-toggled line. * **Granularity** — 5-minute, hourly, day, week, or month, whichever fits the range. * **Compare** — overlay the previous period as a faint second line to see whether the number is really up or down. * **Filters** — add any number of `dimension:value` rules to scope the whole query to matching sessions. Sessions is the default series on purpose: it's the one metric every workspace has, including mobile-only apps that don't send pageviews. Switch to Pageviews or a `track()` event once you're instrumenting them. ## Retention **Retention** answers the question at the heart of growth: *do people come back?* It renders a cohort grid — one row per starting cohort, one column per period since — where each cell is the share of that cohort still active. * **Day / Week** — toggle whether a cohort is a day or a week of first-seen users. The toggle sits at the far right of the section. * **Return action** — by default a user "returns" by starting any session. Switch the action to a specific `track()` event to measure retention against a real milestone (e.g. came back and *fired `checkout_completed`*), not just any visit. The header reads the plain-language summary — "% returning by week since first session · N users" — and each row shades from dark (high retention) to light so the drop-off pattern reads at a glance. ## Web Vitals **Web Vitals** surfaces the three [Core Web Vitals](https://web.dev/vitals/) Google ranks on, computed from your real web sessions: | Metric | Measures | | - | - | | **LCP** | Largest Contentful Paint — loading | | **INP** | Interaction to Next Paint — responsiveness | | **CLS** | Cumulative Layout Shift — visual stability | The headline is the **share of page views that pass** all three, weighted by page views, with the weakest metric called out. Below it, each page is listed with its **p75** (75th-percentile) value per metric, ranked worst-first, so you jump straight to the page hurting your scores. Core Web Vitals come from **web (browser) sessions only** — native app sessions don't report LCP / INP / CLS. Filter by device with the segmented control; a mobile-app-only workspace reads an honest empty state here rather than a blank chart. ## Breakdowns **Breakdowns** takes a single dimension and ranks its values by a measure — the "which browsers / countries / pages drive my sessions?" question, as a first-class object rather than a footnote on another chart. Browser, Country, Device type, OS, URL path, Referrer, or Plan. Country values show the full name with a flag; browser values show the real browser logo. Rank by **Sessions** or **Users**. The headline reads the dimension, the period total, and which value leads with what share. Toggle between a ranked bar list and a donut lens; click any value to focus it. ## Events **Events** is the catalogue of everything you `track()`. Each row is one event name with its volume, a trend sparkline, and the count of distinct properties it carries — so you can see at a glance which events fire, how often, and whether their volume is moving. Selecting an event reveals the properties it sends and their values, which is exactly the vocabulary you'll reach for when building a Trends series, a funnel step, or a behavioral cohort. Consistent, `snake_case`, past-tense event names pay off here: they keep the Events list short and make every downstream builder's autocomplete clean. See [Track custom events](/guides/track-events) for the conventions. ## Ask AI Every Analytics view sits next to **Replayfy AI**. Instead of building a query by hand you can ask in plain language — "how did signups trend last week by plan?" — and get an answer grounded in the same real data, with a link to the sessions behind it. See [Replayfy AI](/platform/replayfy-ai). ## Related The events model and the Overview's Segments + Activity. Turn events into step-by-step conversion analysis. Group users by traits and behavior, then reuse them as filters. # Cohorts Source: https://docs.replayfy.app/products/cohorts Save a group of users defined by their traits or their behavior, keep it up to date automatically, and use it to focus every screen in Replayfy on the segment that matters. A **cohort** is a saved, living group of users — "Power users", "Churn risk", "Enterprise trials", "Everyone who dropped at checkout". You define it once, and Replayfy keeps its membership current for you: people join and leave the cohort as their behavior and properties change. From then on, a cohort is a lens you point at your data — open its members, drill into their session replays, and target the exact audience you care about. Cohorts group **users**, not sessions. Every member is an end user you identify from your SDK (or an anonymous-but-tracked visitor). The richer the traits and events you send, the more precisely you can slice your audience — see [Feed cohorts with the right data](#feed-cohorts-with-the-right-data). ## Two ways to define membership Every cohort is either **auto-updated** or **manual**. You choose this when you create it. | Membership | How it works | Best for | | - | - | - | | **Auto-updated** | You write rules. Anyone who matches is a member; anyone who stops matching drops out — automatically, as new data arrives. | Living segments — "active this week", "on the Enterprise plan", "fired `payment_success`". | | **Manual** | You hand-pick a fixed set of users. Membership only changes when you edit it. | Curated lists — VIP accounts, a hand-built beta group, a point-in-time snapshot. | Auto-updated cohorts stay fresh on their own — you never have to press a button to keep them accurate. As sessions and events flow in, membership is re-evaluated continuously (typically within a few minutes). You can still force an immediate refresh with **Recompute** from any cohort's `⋯` menu. ## Attribute vs behavioral cohorts Auto-updated cohorts are built from **rules**. Rules fall into two families, and you can mix them freely in one cohort: * **Attribute cohorts** match on *who a user is* — the traits and properties you send with `identify`. Plan, device, browser, OS, country, city, email, name. These change rarely, so these cohorts settle quickly. * **Behavioral cohorts** match on *what a user does* — their activity and the events you `track`. "Has ≥ 12 sessions", "seen in the last 7 days", "fired `checkout_started`", "currently online". These are re-evaluated as activity happens. ### Supported rule conditions Each rule is a **field**, an **operator**, and a **value**. Add as many rules as you like — a user must match **all** of them to be a member. | Field | Type | Operators | Example | | - | - | - | - | | Plan | Attribute | is / is not | Plan **is** `Enterprise` | | Device | Attribute | is / is not | Device **is** `Mobile` | | Browser | Attribute | is / is not | Browser **is** `Safari` | | OS | Attribute | is / is not | OS **is** `iOS` | | Country | Attribute | is / is not | Country **is** `United States` | | City | Attribute | equals / contains / starts with / ends with | City **contains** `London` | | Email | Attribute | equals / contains / starts with / ends with | Email **ends with** `@acme.com` | | Name | Attribute | equals / contains / starts with / ends with | Name **contains** `Admin` | | Total sessions | Behavioral | ≥ / > / = | Total sessions **≥** `12` | | Last seen | Behavioral | within the last *N* days / more than *N* days ago | Last seen **within the last** `7` days | | Currently online | Behavioral | is true / is false | Currently online **is true** | | Did event | Behavioral | fired / did not fire | Did event **fired** `payment_success` | "Did event" reads straight off the events you send with `track`. Use it for any "users who completed X" question — `fired` for users who did it, `did not fire` for users who never have. ## Feed cohorts with the right data Attribute and behavioral rules only work if your SDK is sending the underlying signal. Identify your users with the traits you want to segment on, and track the events you want to build behavioral cohorts from. ```ts Web (npm) theme={null} import { initReplay } from "@replayfyapp/browser"; const replay = initReplay({ apiKey: "rpl_pk_YOUR_KEY", // publishable key — safe to ship apiHost: "https://us.replayfy.app", // your ingest host }); // Attributes → power "Plan is Pro", "Email ends with @acme.com", etc. replay.identify("user_8f21", { email: "ada@acme.com", name: "Ada Lovelace", plan: "Pro", }); // Events → power "Did event fired payment_success" replay.track("payment_success", { amount: 4900, currency: "usd" }); ``` ```html Web (CDN) theme={null} ``` Only ship the **publishable** key (`rpl_pk_…`) in client apps. Server keys (`rpl_sk_…`) are for backend calls and must never appear in shipped code. See [Track events](/guides/track-events) for naming conventions and [Web setup](/platforms/web) for the full install. ## Create a cohort Go to **Cohorts** and click **New cohort** (or press N then C). You'll land on the template gallery. Pick a ready-made audience to pre-fill the builder, or choose **Start from scratch** for a blank cohort. Templates are grouped by goal: | Category | Templates | | - | - | | Engagement | Power users · Currently online · Recent purchasers | | Lifecycle | Churn risk · Dormant users | | Monetization | Enterprise accounts · Free power users | | Environment | Mobile users · Safari users | Give the cohort a clear **Name** and an optional **Description** ("What is this segment, and how should the team use it?"). Then choose **Auto-updated** or **Manual**. Click **Add rule** and pick a field, operator, and value. Every rule you add narrows the audience — members must match all of them. As you edit, a **live preview** shows exactly how many users match right now, with sample avatars of who they are. Click **Create cohort**. An auto-updated cohort is populated immediately from its rules; a manual cohort starts empty, ready for you to add members. The live preview count is always real — it runs your rules against your actual users. If it reads **0 users match right now**, loosen a rule before creating. ## Build a manual cohort Choose **Manual** membership when you want a fixed, hand-curated list rather than a rule-driven one. Create the cohort first, then add members from anywhere you see a user: * On the **Users** page, open any user's `⋯` menu and choose **Add to cohort**. * In a user's detail panel, use **Add to cohort** and toggle the cohorts they belong to. Only **manual** cohorts accept hand-added members. An auto-updated cohort recomputes from its rules, so a manually added user would be dropped on the next refresh — that's why the picker only lists manual cohorts. ## Use a cohort across Replayfy A cohort is a saved segment, so you reach for it wherever you work with users. From the cohort's row (or its `⋯` menu), choose **View members**. This opens the **Users** list scoped to that cohort — a banner names the cohort so you always know what you're looking at. From the scoped user list, open any member to see their profile and jump straight into their **session replays** — so "show me what churn-risk users are actually doing" is two clicks away. The scoped Users list still honours your other filters — country, platform, online status, last-seen window — so you can drill from a broad cohort down to an exact slice without leaving the page. The **Cohorts** page itself gives you an at-a-glance read of every segment: member count, whether it's **Auto-updated** or **Manual**, and when it was **last computed**. Top-of-page stats sum your active cohorts and total members. ## Create a cohort from a funnel drop-off One of the most useful cohorts is "everyone who abandoned here". You can build it directly from a [funnel](/products/funnels): open a step where users dropped off and choose **Create cohort from drop-off**. Replayfy first shows you how many **identified** users reached the previous step but not this one, then materializes them as a **manual** cohort — a point-in-time snapshot of that exact group. A drop-off cohort is a snapshot: it captures who dropped in the analyzed window and won't change as new users drop off later. It includes only identified users (anonymous visitors can't be added to a cohort), so its size can differ from the session-level drop-off shown on the funnel. ## Cohorts created by Replayfy AI You don't have to open the builder at all. Ask [Replayfy AI](/platform/replayfy-ai) to assemble a segment for you — for example, *"create a cohort of Pro users who fired `payment_success` in the last 7 days"* — and it builds the rules and saves the cohort. Anything the assistant creates carries a **Created with Replayfy AI** badge, both in the Cohorts list and in the scope banner when you view its members, so it's always clear which segments were AI-authored. From there they behave exactly like any other cohort — you can edit, recompute, or delete them. ## Manage and clean up | Action | Where | What it does | | - | - | - | | **Recompute** | Cohort `⋯` menu | Forces an immediate refresh of an auto-updated cohort's membership. | | **View members** | Row click or `⋯` menu | Opens the Users list scoped to the cohort. | | **Search & filter** | Cohorts page | Filter by **Auto-updated** / **Manual**, or search cohorts by name. | | **Delete** | Cohort `⋯` menu | Permanently removes the cohort and its membership. This can't be undone. | Find where users drop off — then turn any step into a cohort. Send the custom events that power behavioral cohorts. Ask the assistant to build a cohort for you in plain English. # Crashlytics Source: https://docs.replayfy.app/products/crashlytics Automatically capture crashes, exceptions, and mobile UI freezes, group them into ranked issues, and jump straight to the session recording where each one happened. Crashlytics turns the errors your app throws into a short, ranked list of **issues** you can act on. Every crash, handled exception, and mobile UI freeze is captured automatically, grouped by signature (so one bug is one row — not a thousand loose events), and linked to the exact session recording where it happened. Instead of reading a raw stack in isolation, you watch the user hit the bug, see the network calls and taps that led up to it, and know how many people it affects. Nothing here is templated or AI-guessed: the occurrence, session, and user counts are exact SQL aggregates over the crashes your SDK reported. Crashlytics is powered by the same session-replay SDK you already install for recordings and analytics. If replay is running, error capture is on by default — there is no separate agent to add. See the platform guides for [Web](/platforms/web), [iOS](/platforms/ios), [Android](/platforms/android), [React Native](/platforms/react-native), and [Flutter](/platforms/flutter). ## How errors are captured Once the SDK is initialized, it hooks the runtime's error paths for you: | Source | Captured automatically | | - | - | | **Web** | Uncaught `window.onerror` exceptions and unhandled promise rejections. Controlled by the `captureErrors` config option (default **on**). | | **iOS / Android** | Fatal crashes (uncaught exceptions, signals) plus native performance vitals. | | **iOS / Android** | **ANR / UI freezes** — when the main thread is blocked long enough that the UI stops responding. | | **Any platform** | Handled errors you report yourself with [`captureException`](#report-handled-errors-from-code). | Each captured error is fingerprinted from its type, message, and stack, then folded into an **issue** — the cross-session aggregate. Repeats inside a single session are counted once toward "sessions affected" but summed toward total events, so a retry loop can't distort your user counts. ### Error categories Every issue is classified into one category, shown as a colored chip on the homepage and as the segmented filter on the Crashlytics page: | Category | What it means | Counts against crash-free? | | - | - | - | | **Crash** | A fatal, unhandled error that ended the session. | Yes | | **Exception** | A handled error you reported with `captureException` (or a caught, recovered error). | No | | **Error** | A non-fatal error the runtime surfaced but the app survived. | No | | **Freeze** | A mobile UI-thread freeze / ANR — the app was unresponsive but didn't crash. | No | A freeze is its own category, not a crash — so a sluggish screen never quietly drags down your crash-free rate. Only true crashes do. ## The Crashlytics page Two surfaces show your errors in the dashboard at [app.replayfy.app](https://app.replayfy.app): * **Homepage stability chips** — a quick pulse of crash-free rate and your top crashes, right on the overview. * **The dedicated Crashlytics page** — the full, filterable investigation surface. Open it from the left nav. At the top of the Crashlytics page a stat strip gives you the live totals for the current filter — **Issues**, **Crashes**, **Exceptions**, and **Freezes**. These are set-based counts across your whole workspace, not a tally of the rows currently on screen, so they stay accurate no matter how far you've scrolled. The page reads top to bottom as one investigation surface: a **metric row** (crashes, exceptions, freezes, and affected users, each with a 30-day sparkline and a period-over-period delta), a **crash trend** over time, **release health** (crashes and affected users per version), a **platform** breakdown, and then the ranked **issues table**. Use the segmented control to switch between **All**, **Crashes**, **Exceptions**, and **Freezes**. The **Filter** button opens a popover to combine: | Filter | Options | | - | - | | **Status** | Open · Regressed · Resolved · Ignored | | **Platform** | Every platform that has reported an issue (web, iOS, Android, …) | | **Release** | Every build/release version seen in your issues | | **Last seen** | 24h · 7d · 30d · Any time | Everything is applied server-side, so the results span the whole workspace. The search box matches issue title, message, culprit, and error type — the text you'd otherwise grep for. It searches every issue in the workspace, not just the loaded page. ### Reading the list Issues are ranked by blast radius — how many distinct users and sessions each one hit, with fatal crashes weighted highest — so the most damaging bug is always at the top. Each row shows: * The **error type and message**, its category icon, platform, and last release. * A **status** badge (see below). * A **14-day trend** sparkline so you can see whether it's spiking or fading. * **Unique users** and **Events** (total occurrences). * When it was **last seen**. The list pages 10 at a time with infinite scroll — a keyset cursor under the hood — so even a workspace with a huge backlog loads smoothly. | Badge | Meaning | | - | - | | **New** | First seen in the last 24 hours. | | **Open** | Active and unresolved — the default view. | | **Regressed** | You resolved it, but it came back in a later session. Regressions reopen automatically so a "fixed" bug can't slip by unnoticed. | | **Resolved** | You marked it fixed. | | **Ignored** | Muted — hidden from the default view but still counted. | By default the list shows what's **actively broken** (Open + Regressed). Add Resolved or Ignored in the filter to see the rest. ## Investigating an issue Click any row to open the investigation drawer. It paints the summary instantly, then fills in the deep context: * **Header** — the error type, message, culprit, platform, release, and a short fingerprint id you can reference. * **Stats** — Events, Unique users, Sessions, First seen, Last seen. * **Occurrences** — the 14-day trend as a bar chart, so you can line up a spike against a deploy. * **Stack trace** — the representative stack for this issue, with your own code (in-app frames) visually separated from framework/system frames, and an "N in app" count so you spot your line first. * **Network** — the failing or slow requests around the crash, with method, status, URL, and duration — often the real root cause. * **Where it happens** — the top browsers, operating systems, and countries the issue is concentrated in, so you know whether it's universal or specific to one platform or region. * **Breadcrumbs** — the last handful of events (screens, taps, console, network, errors) leading up to the crash. The most useful part of the drawer is **Recent occurrences** — each one links straight to the session replay. Click **Replay** on any occurrence to watch that exact user hit the bug, or use **View all recordings** in the footer to open every session where the issue fired. This is the difference between reading a stack trace and *seeing* what the user did. ## Crash-free rate The homepage stability tiles show your **crash-free sessions** rate — the share of sessions in the window that ended without a fatal crash — along with the change versus the previous period. Crash-free rate is only computed once a window has **at least 20 completed sessions**. Below that there's no denominator worth trusting, so the tile shows `—` rather than a misleading "0.00%". Freezes and handled exceptions never count against this number — only crashes do. On mobile, an **ANR rate** tile appears alongside it. Web-only workspaces simply won't see the ANR row. ## Report handled errors from code Automatic capture only sees errors that reach the runtime's top level. For anything you catch — a failed API call, a recovered parse error, a `try/catch` around risky work — call `captureException` so it becomes a first-class issue too. Reported errors are parsed identically to automatic ones, so they show the same stack, breadcrumbs, and linked recording. The `handled` flag decides the category: **`handled: true`** (the default) files it as an **Exception**; **`handled: false`** marks it fatal and files it as a **Crash**. ```ts npm (web) theme={null} import { initReplay } from "@replayfyapp/browser"; const replay = initReplay({ apiKey: "rpl_pk_YOUR_KEY", apiHost: "https://us.replayfy.app", captureErrors: true, // automatic window errors (default on) revId: "1.4.2", // associate this build with its issues }); try { await checkout(cart); } catch (err) { // handled defaults to true → files as an "Exception" replay.captureException(err); } ``` ```html CDN (web) theme={null} ``` ```swift iOS theme={null} import Replay do { try sync() } catch { // handled defaults to true → "Exception" Replay.captureException(error, properties: ["where": "sync"]) } // Mark a caught error as fatal → "Crash" Replay.captureException(error, handled: false) ``` ```kotlin Android theme={null} import com.replayfy.android.Replay try { upload() } catch (e: Throwable) { // handled = true (default) → "Exception" Replay.captureException(e, handled = true, properties = mapOf("screen" to "checkout")) } ``` ```dart Flutter theme={null} import 'package:replayfy_flutter/replayfy_flutter.dart'; try { await upload(); } catch (e, stack) { // handled defaults to true → "Exception" Replay.captureException(e, stackTrace: stack, properties: {'screen': 'checkout'}); } // Mark a caught error as fatal → "Crash" Replay.captureException(e, handled: false); ``` `rpl_pk_` keys are **publishable** — safe to ship inside a web bundle or mobile app. Keep `rpl_sk_` server keys out of client code. ## Readable stack traces (symbolication) Release builds ship obfuscated or stripped stacks — R8-renamed class names on Android, raw program counters in native code. Replayfy deobfuscates them **at render time**, when you open an issue, against symbols you upload for that build. Because symbolication is deferred, you can upload symbols *after* a crash spike has already arrived and the old crashes light up retroactively. ### Android Symbol uploads need a **server key** (`rpl_sk_…`), not the publishable key (`rpl_pk_…`) your app ships with. Uploads made with the publishable key are rejected with a 403. Create one in **Settings → Install → Generate key → Server** and store it in your CI secrets, for example as `REPLAYFY_SERVER_KEY`. See [API keys](/platform/api-and-keys). The `app.replayfy.symbols` plugin uploads the R8/ProGuard `mapping.txt` and, for native code, the unstripped `lib..so` debug binaries after every `assembleRelease`. It's published on Maven Central, so make sure `mavenCentral()` is in your plugin repositories: ```kotlin settings.gradle.kts theme={null} pluginManagement { repositories { google() mavenCentral() gradlePluginPortal() } } ``` Then apply it to your **app** module, next to the Android plugin: ```kotlin app/build.gradle.kts theme={null} plugins { id("com.android.application") id("app.replayfy.symbols") version "0.1.0" } replaySymbols { apiKey = providers.environmentVariable("REPLAYFY_SERVER_KEY").getOrElse("") // apiHost = "https://replay.example.com" // only if you self-host; defaults to Replayfy Cloud // uploadOnAssemble = false // to upload only via ./gradlew uploadReplaySymbolsRelease } ``` A release build then runs `uploadReplaySymbolsRelease` automatically. If the key is missing or wrong, that task fails with the reason, so a misconfigured CI build is easy to spot. Prefer a plain CI step? POST each file to `/v1/replay/symbols/{platform}/{version}/{build}/{filename}` with the server key in the `x-replay-api-key` header and a JSON body `{ "dataUrl": "data:;base64," }`. Symbols are stored per **version + build**, so those must match what the SDK reported with the crash. The SDK auto-detects your app version and build; override them with `setAppVersion(version, build)` if you ship white-label or wrapper builds. When you expand a crash in the dashboard, the stack is deobfuscated on the fly. Re-uploading an updated mapping after a hotfix just works — no migration, and the same crash re-symbolicates against the new file. Uploads are idempotent and capped at 50 MB per file. If a symbol file is larger than that, strip third-party and unneeded debug symbols in your build before uploading. ### iOS iOS crashes arrive **already partially symbolicated** on-device, so you get readable frames without uploading dSYMs. Full dSYM-based deobfuscation is on the roadmap; for now, no upload step is required to read iOS stacks. ### Associating a build or release Tagging every session with its build unlocks the **Release** filter and lets you pin a crash spike to a specific deploy: * **Web** — set `revId` in your init config. * **iOS / Android** — the app version and build are auto-detected; override with `setAppVersion(...)` when needed. Once builds are flowing, use the Crashlytics **Release** filter to answer "did my last deploy regress?" in one click. ## Managing issues From any row's actions menu or the drawer footer you can: * **Resolve** — mark it fixed. It leaves the default view. If a matching error shows up in a later session, it automatically reopens as **Regressed**. * **Ignore** — mute a known-benign or third-party issue without deleting its history. * **Reopen** — bring a resolved or ignored issue back to Open. Resolving an issue here also updates the homepage stability chips and the category counts — one action, reflected everywhere. ## Related Watch the exact session where any crash happened. Add context so breadcrumbs tell the full story. Get notified when a new or regressed issue spikes. # Funnels Source: https://docs.replayfy.app/products/funnels Build a funnel from your tracked events, measure step-by-step conversion and completion time, dig into who dropped off, and get alerted when conversion moves. A funnel is an **ordered sequence of steps** — a page view, a click, a custom event, a mobile screen — and Replayfy tells you how many people made it from one step to the next, how long it took, and exactly where they fell out. Because every step is a real event your SDK already sends, you can jump straight from any step (or drop-off) into the session recordings behind the numbers. Funnels live under **Funnels** in the dashboard at [app.replayfy.app](https://app.replayfy.app). Open one and you get conversion rate, per-step drop-off, median and p95 completion time, a breakdown by any dimension, and conversion over time — all computed live from the date range you pick. A funnel counts sessions that hit **every step in order** inside a **conversion window**. A session that reaches step 3 before step 2 does not count as converting through step 2 — order matters. ## Build a funnel Go to **Funnels → New funnel**. Start from a blank builder, or pick a ready-made template (e.g. *Signup*, *Checkout*) and edit it. Nothing is saved until you name it and click **Save**. Each step has two parts: the **event type** (what kind of action) and a **match condition** on its value. Click the step to open the editor, choose the event type, then choose an operator and type a value. As you type a value, Replayfy suggests the **event names actually seen in your workspace** — page URLs, click text, custom event names, or mobile screens — most-common first, with a live count next to each. Pick a suggestion, or type any value and choose **Use "…"** to match a name that hasn't been recorded yet. Click **Add step** (or the **+** between steps) to extend the flow. Drag the grip to reorder. Analytics appear once the funnel has **at least two steps** with a value. Give the funnel a name and click **Save**. Saved funnels can be pinned to the dashboard, alerted on, and used to build cohorts. ### Step types A step matches one kind of event. The condition operates on the field shown in the last column. | Step type | What it matches | Matches on | Platform | | - | - | - | - | | **Viewed page** | A visited page URL | URL | Web | | **Clicked element** | An element the user clicked | Text | Web | | **Custom event** | An event you send from code | Event name | All | | **Viewed screen** | A screen the user opened | Screen name | Mobile | | **Tapped element** | An element the user tapped | Text | Mobile | ### Match conditions | Operator | Behavior | | - | - | | **contains** | Value appears anywhere in the field | | **is exactly** | Field equals the value | | **starts with** | Field begins with the value | | **matches regex** | Field matches a regular expression | Leave a step's value blank to match **any value** of that event type — useful for a step like "viewed any screen" or "clicked anything" as a loose gate. ## Feed funnel steps from your SDK Page views, clicks, taps, and screens are captured automatically once the SDK is installed. **Custom events** are the ones you send yourself — call `replay.track()` with a stable name, and that name becomes selectable as a **Custom event** step (it shows up in the step autocomplete). ```ts Web / React Native theme={null} // Emit a custom event — the name is what a "Custom event" step matches. replay.track("checkout_completed", { plan: "pro", amount: 4900 }); ``` ```swift iOS theme={null} Replay.track("checkout_completed", properties: ["plan": "pro"]) ``` ```kotlin Android theme={null} Replay.track("checkout_completed", mapOf("plan" to "pro")) ``` ```dart Flutter theme={null} Replay.track('checkout_completed', properties: {'plan': 'pro', 'amount': 4900}); ``` Use a small set of **stable, human-readable** event names (`checkout_completed`, not `evt_9f2`). The step picker lists what you've actually sent, so consistent names make funnels far easier to build. See [Track custom events](/guides/track-events). ## The conversion window and date range Two different time controls shape every funnel: * **Conversion window** — how long a session has to get from the first step to the last and still count as converting. Set it per funnel between **1 and 90 days** (the default is 7). A checkout might use 1 day; an onboarding flow might use 30. * **Date range** — the span of history the funnel is computed over, chosen from the date picker in the top-right. Presets (Last 7 / 14 / 30 days, and more) are rolling windows ending now; you can also pick a **custom** start and end. These are independent. The **date range** decides *which sessions* are analysed; the **conversion window** decides *how much time each session gets* to complete the flow. Widening the date range shows more history — it does not give users longer to convert. ### Compare to the previous period Open the date picker and switch on **Compare to previous period**. Every headline number — entered, conversion, converted, biggest drop — gains a ▲/▼ delta versus the immediately preceding window of equal length, so you can see whether the flow is improving or regressing. ## Read the results Once a funnel has two or more valid steps, the summary row and step bars fill in with real counts. | Metric | Meaning | | - | - | | **Entered** | Count reaching step 1 (the top of the funnel) | | **Conversion** | Share of entrants who completed **all** steps | | **Converted** | Count reaching the final step | | **Median time** | Median time to get from step 1 to the last step, with **p95** alongside | | **Biggest drop** | The single largest step-to-step fall, and where it happens | Select any step to see its own detail: **Reached** (count at that step), **Step conversion** (share carried over from the previous step), **Dropped here** (count and percent lost at this transition), and **Time to reach** — the median and **p95** time to move from the previous step to this one. **Median and p95 completion times are real**, measured over the sessions that actually made each transition. When too few sessions completed a step to measure a time, Replayfy shows `—` rather than a fabricated number. ### Sessions or users Use the **Sessions / Users** toggle to change the count unit. **Sessions** counts every qualifying session; **Users** counts **distinct identified users** (anonymous visitors are excluded, since they can't be de-duplicated across sessions). Call `replay.identify()` so more of your traffic is attributable in *Users* mode. ### Other views * **Breakdown** — split conversion by a dimension (platform, browser, OS, device, country, plan, release, UTM source/medium/campaign) to see which segment converts best. * **Conversion over time** — a daily line of conversion rate across the range, to spot a regression the day it started. * **Metric** — just the headline conversion number, large, for a quick read or a pinned dashboard tile. ### Filter the funnel's sessions Use **+ Add filter** to scope the whole funnel to a subset of sessions — "how does this flow convert for Chrome users on the Pro plan?" Every result, breakdown, and drop-off then reflects only the matching sessions. | Filter | How it works | | - | - | | **Browser · OS · Device · Plan** | Values autocomplete from what your workspace has actually sent, so the list covers whatever real browsers/devices your users are on — not a fixed set. | | **Country** | Pick from the full country list (shown with flags). | | **URL path · Referrer** | Free-text `contains` match on the landing URL or referrer. | | **Session duration** | A numeric comparison (`≥`, `>`, `≤`, `<`) against session length. | | **Error · Rage click · Dead click** | A single **is true** / **is false** choice — `is true` keeps sessions that had the signal, `is false` keeps sessions without it. | Combine filters freely — they apply together (AND). To turn a filtered slice into a reusable group, build the same conditions as a [Cohort](/products/cohorts) and filter by that cohort everywhere. ## Drop-off analysis The most valuable part of a funnel is *who left and why*. Every step is a doorway into the sessions behind it. ### Watch the sessions that reached a step On any step's detail, click **View sessions** to open the recordings list scoped to the sessions that reached that step, over the same date range the funnel is using. For a saved funnel this is a server-resolved, paged scope (up to the newest 5,000 reached sessions) — so you can scroll through real recordings of people who got exactly that far. ### Turn a drop-off into a cohort From **step 2 onward**, the step detail shows **Create cohort**. This builds a cohort of the **identified users who reached the previous step but not this one** — the people who dropped out right here. Select the step where the drop-off happens and click **Create cohort**. The funnel must be **saved** first (the cohort is built from the saved definition). Replayfy previews how many **identified** users dropped at this step over the current window before you commit. Give the cohort a name and create it. You'll get a link straight to its members on the Users page. A drop-off cohort is a **point-in-time snapshot** — it captures who dropped as of now and won't update as new users fall out. It includes only **identified** users, so its size can differ from the session-level drop-off shown above (which includes anonymous visitors). Re-create it to refresh. ## Get alerted when conversion moves Click **Alert** in the funnel header (available on a saved funnel) to be emailed when overall conversion changes. Funnel-conversion alerts are **email-only** and evaluated **once daily** off the conversion history. | Condition | Fires when | | - | - | | **Drops by** | Conversion falls by more than *X%* relative to the previous equal-length window | | **Falls below** | Conversion drops under a fixed *X%* over the funnel's window | Add **multiple recipients** — it defaults to your account email, and you can add anyone else on your team (press Enter or comma between addresses). Manage or delete funnel alerts anytime from the [Alerts](/products/alerts) page. Alerts read the same conversion history the funnel shows, so a threshold you set here means exactly what the dashboard displays. ## Built by Replayfy AI You don't always have to build a funnel by hand. Ask **Replayfy AI** to create one — *"build a signup funnel from landing to activated"* — and it assembles the ordered steps for you. Funnels the assistant creates carry a **Created with Replayfy AI** badge next to the title, so it's always clear where a definition came from. You can edit an AI-built funnel exactly like any other. Learn more in [Replayfy AI](/platform/replayfy-ai). ## Pin to the dashboard Click **Pin to dashboard** to surface a funnel's conversion on your Overview. The pinned widget computes over the funnel's saved conversion window, so the number on Overview always matches the funnel page. Send the named events your Custom event steps match on. Manage conversion alerts and every other alert in one place. Let the assistant build funnels and investigate drop-off. # Product Analytics Source: https://docs.replayfy.app/products/product-analytics Turn identify() and track() into live breakdowns of who your users are, how they behave, and where they drop off — all linked back to the exact session recordings. Replayfy's analytics suite is built on one idea: every number should be one click away from the sessions behind it. When you tell Replayfy who a user is with `identify()` and what they did with `track()`, that data powers **Segments**, **active-user and retention trends**, **Funnels**, and **Cohorts** — and every band, tile, and step deep-links straight into the matching recordings. This page is the map. It covers the events model that feeds everything, the two analytics views that live on your **Overview** home page (Segments and Activity), and how those connect to Funnels and Cohorts. You don't need any extra SDK to get started. The moment the Replayfy SDK is recording, platform / browser / country / device breakdowns and active-user trends populate on their own. `identify()` and `track()` make them far richer. ## The events model Two SDK calls are the raw material for every analytic in Replayfy. | Call | What it does | Powers | | - | - | - | | `identify(userId, traits)` | Attaches a stable user id and a set of traits (email, plan, name, and any custom keys) to the current session and everyone it links to. | Users list, Segments, Cohorts, per-user journeys | | `track(name, properties)` | Records a named custom event with optional properties at the moment it happens. | Funnels, event breakdowns, behavioral Cohorts | ### identify() — who the user is Call `identify()` as soon as you know who someone is (typically right after login). Replayfy promotes `email`, `name`, `plan`, and `picture` (the user's avatar URL, alias `avatar`) to first-class fields and keeps every other trait as a searchable property on the user. ```js Web theme={null} // user.id is your own stable identifier for this person replay('identify', user.id, { email: user.email, name: user.name, plan: user.plan, // "free" | "pro" | "team" | "enterprise" picture: user.avatarUrl, // public https image URL shown as the user's avatar signup_date: user.createdAt, }); ``` ```swift iOS theme={null} Replay.identify( id: user.id, traits: ["email": user.email, "plan": user.plan] ) ``` ```kotlin Android theme={null} Replay.identify( user.id, mapOf("email" to user.email, "plan" to user.plan) ) ``` ```dart Flutter theme={null} Replay.identify(user.id, traits: { 'email': user.email, 'plan': user.plan, }); ``` Sessions that happen **before** `identify()` runs aren't lost. When you later identify a person, Replayfy links their earlier anonymous sessions to the same profile, so you see their full journey — not just the sessions after they logged in. ### track() — what the user did Use `track()` for the moments that matter to your product: a signup, a checkout, a plan upgrade, a feature used for the first time. Each event has a **name** and an optional bag of **properties**. ```js Web theme={null} replay('track', 'checkout_completed', { plan: 'pro', amount: 49, currency: 'USD', items: 3, }); ``` ```swift iOS theme={null} Replay.track("checkout_completed", [ "plan": "pro", "amount": 49 ]) ``` ```kotlin Android theme={null} Replay.track("checkout_completed", mapOf( "plan" to "pro", "amount" to 49 )) ``` ```dart Flutter theme={null} Replay.track('checkout_completed', properties: { 'plan': 'pro', 'amount': 49, }); ``` Tracked event names are attached to the session they fire in, so you can later filter recordings by "sessions that fired `checkout_completed`" and build Funnels and Cohorts from those events. For the full guide to instrumenting events, see [Track custom events](/guides/track-events). The SDK is configured with your **publishable** key (`apiKey: "rpl_pk_YOUR_KEY"`) and your ingest host (`apiHost: "https://us.replayfy.app"`). The publishable key is safe to ship in client apps. Grab yours from **Settings → Install** in the dashboard. Server-side keys (`rpl_sk_…`) are only for backend annotation and never belong in client code. ## Segments **Segments** live on your Overview page and answer "where do my sessions come from?" as three distribution bands over the selected time window: * **Platform** — web vs. iOS vs. Android vs. the rest * **Browser** — Chrome, Safari, Firefox, and so on * **Country** — resolved from each session, shown with its flag Each band shows every value's **share of sessions** and the absolute **session count** behind it. Hover a slice to isolate it; the legend below lists each value with its percentage and count. ### Jump from a band to the recordings Segments aren't a dead-end chart — they're a way into the sessions. Click a band (Platform, Browser, or Country) to open its breakdown drawer — a complete table of every value with its share and session count, not just the top slices shown inline. Click any legend row — say the **web** platform row, or **Nigeria** in the Country band — and Replayfy takes you straight to the recordings list, pre-filtered to exactly those sessions (`platform:web`, `country:NG`, and so on). From there you're in the standard recordings view: sort, add more filters, and open any session to watch it. See [Session Replay](/products/session-replay) for the player. A brand-new workspace with no sessions yet shows "No platform data reported yet" rather than a fabricated chart. Bands appear as soon as real sessions arrive. ## Active users & retention The **Activity** section on your Overview turns engagement into a set of small-multiple tiles plus one focused trend chart. Every value is computed from your real session data — nothing here is a placeholder. ### The tiles | Tile | Meaning | | - | - | | **DAU** | Daily active users | | **WAU** | Weekly active users | | **MAU** | Monthly active users | | **New** | First-time users in the window | | **Returning** | Users who came back | | **Retention** | Share of users who returned | Beneath the tiles, four derived stats summarize health at a glance: * **Stickiness** — DAU ÷ MAU * **Sessions per user** — over the window * **Avg. session** — mean session length * **New : returning** — the split of active users Any stat without a real measured source reads `—` rather than inventing a figure. ### The trend chart Click a tile to drive the chart below it, then use the **Filter** button to shape a single analytics query. Every control queries live data: | Control | Options | | - | - | | **Metric** | Active users, Sessions, New users, Returning users, Avg session | | **Breakdown** | Platform, Browser, OS, Country, Device, Device model, App version, Plan, Entry page | | **Time** | Last hour, Last 24 hours, Last 7 days, Last 30 days, Last 90 days | | **Granularity** | 5-minute, Hourly, Day, Week, Month (whichever fits the range) | | **Compare** | Off, or vs. the previous period | | **Segment** | All users, Anonymous, Logged in, Paying, Enterprise, Power users (5+ sessions) | | **Filter rules** | Any number of `dimension:value` rules to narrow the query | Turn on **Compare → Previous period** to overlay the prior window as a faint second line — the fastest way to see whether this week's active users are actually up or down versus last week. The chart leads with the total and layers each breakdown value as a legend-toggled overlay line, so a "WAU by Plan" or "New users by Country" view is two clicks away. ## Where the suite connects Segments and Activity are the top of the funnel — literally. The same events feed the two deeper tools: Chain your `track()` events (and page visits) into an ordered funnel to see step-by-step conversion, drop-off, and the time between steps — then watch the sessions of the people who dropped. Group users by `identify()` traits (e.g. `plan = enterprise`) or by behavior (e.g. fired `checkout_completed` in the last 7 days) and reuse those cohorts as filters everywhere. A useful mental model: * **Segments** answer *what kinds of sessions do I have right now?* * **Activity** answers *is engagement growing, and are people coming back?* * **Funnels** answer *where in a flow are people dropping off?* * **Cohorts** answer *which people should I focus on?* ## Event naming best practices Good analytics start with disciplined event names. Because names and properties become filters, funnel steps, and cohort rules, a little consistency up front pays off everywhere. Pick a name once and keep it. `checkout_completed` should mean the same thing forever. Renaming an event splits its history into two, and any funnel or cohort built on the old name silently stops matching. Lowercase `snake_case` (`plan_upgraded`, `invite_sent`) keeps names readable and avoids the casing drift you get from mixing `checkoutDone`, `Checkout Done`, and `checkout-complete`. Prefer `object_verb` in the past tense — `signup_completed`, `project_created`, `file_exported`. It reads naturally in a funnel ("signup\_started → signup\_completed") and keeps related events sorted together in autocomplete. Send one `plan_upgraded` event with a `{ plan: "pro" }` property, not separate `upgraded_to_pro` / `upgraded_to_team` events. Properties keep the event count small and let you break a single event down by any dimension later. Reuse the same property keys and value shapes across events (`plan` is always the same set of strings) so breakdowns line up. A handful of well-named events beats hundreds of one-off ones. Agree on the names with your team, document them, and instrument the same event from web and mobile with the identical name so cross-platform reports are apples to apples. Never put secrets or sensitive personal data in event names or properties — they're stored and displayed as-is. Use the SDK's masking options for anything that shouldn't be captured. Full instrumentation walkthrough: [Track custom events](/guides/track-events). ## Related The complete guide to `track()` and `identify()`. Turn events into step-by-step conversion analysis. Group users by traits and behavior. # Session Replay Source: https://docs.replayfy.app/products/session-replay Watch pixel-accurate replays of real web and mobile sessions, with the console, network, and performance data behind every moment. Session Replay records what your users actually did — every click, tap, screen change, and page view — and pairs it with the technical context behind it: the console, network requests, performance vitals, and any errors that fired. When a customer hits a bug or drops out of a flow, you open their recording and watch it happen, then step through the exact request that failed or the rage-click that gave up. Recordings capture automatically once the SDK is installed. There's nothing to tag per-page — you enrich them with [`identify()` and `track()`](/guides/track-events) so each replay carries the user and the product events that matter to you. Recordings live at **app.replayfy.app/recordings**. The list is on the left, the player fills the center, and the investigation panel (Events, Console, Network, Performance…) sits on the right. ## What a recording captures Every recording is a faithful, reconstructed timeline of the session — not a screen-grab video, but a lightweight stream that replays the real DOM (web) or a per-session frames archive (mobile) at a fraction of the bandwidth. | Captured | Detail | | - | - | | **Visual replay** | Pixel-accurate playback of the real page, reconstructed from the session timeline | | **Interactions** | Clicks, keystrokes, scrolls, text input, page navigation | | **Frustration signals** | Rage clicks and dead clicks, flagged on the timeline | | **Console** | `console.log` / `warn` / `error` output, with stacks | | **Network** | fetch + XHR — method, URL, status, timing, and optional headers/bodies | | **Performance** | Core Web Vitals (LCP, CLS, INP), loading (FCP, TTFB), JS heap, long tasks | | **Errors** | Unhandled exceptions and promise rejections | | Captured | Detail | | - | - | | **Visual replay** | Per-session frames archive played back inside a device shell | | **Interactions** | Native taps (with ripples) and screen-to-screen navigation | | **Logs** | Console / logcat output | | **Network** | Native requests — method, URL, status, timing | | **Device vitals** | CPU, memory, thermal state, and battery, sampled while foregrounded | | **Diagnostics** | Crash and ANR reports with symbolicated stacks | ## Turn on recording Recording starts the moment the SDK initializes. All you need is your **publishable** API key (`rpl_pk_…`, safe to ship in your app) and your ingest host. In **Settings → Install → API keys**, copy the publishable key for your project (`rpl_pk_YOUR_KEY`) and note your ingest host, e.g. `https://us.replayfy.app`. ```ts npm theme={null} import { initReplay } from "@replayfyapp/browser"; const replay = initReplay({ apiKey: "rpl_pk_YOUR_KEY", apiHost: "https://us.replayfy.app", }); ``` ```html CDN theme={null} ``` Load a page (or open your app), click around for a few seconds, then check **Recordings** in the dashboard. New sessions appear at the top of the list. `init()` is idempotent — a second call returns the live session instead of starting a second recording. See [Install on web](/platforms/web) and the per-platform guides for mobile. ## Browse the Recordings list The left rail lists sessions newest-first, each row showing the identified user (name + email), platform, OS, country, duration, and error / rage counts. Type in the search bar to build **filter chips** — each chip narrows the list server-side, and multiple chips are ANDed together. | Filter | What it matches | Example | | - | - | - | | `has:` | Sessions containing a signal | `has:error`, `has:rage`, `has:dead click`, `has:slow lcp`, `has:long tasks` | | `user:` | An identified user | `user:ada@example.com` | | `page:` | A visited path | `page:/checkout` | | `browser:` | Browser name | `browser:Chrome` | | `device:` | Device type | `device:Desktop`, `device:Mobile` | | `model:` | Hardware model | `model:iPhone 15` | | `platform:` | `web` / `ios` / `android` | `platform:web` | | `country:` | Geo country | `country:United States` | | `duration:` | Minimum session length | `duration:>2m` | Value suggestions for `user`, `page`, `browser`, `device`, `model`, and `country` come from your real data as you type — so you're never offered a browser or a customer this workspace has never seen. Recordings are also reachable **scoped** to a context you clicked in from elsewhere in the product. A dismissible banner names the scope, and **Clear** returns you to all recordings: * **Issue** — every session affected by a specific error (from the issue's investigation). * **Incident** — the sessions behind an Overview signal. * **Funnel step** — the sessions that reached a given step of a [funnel](/products/funnels). * **Playlist** — a curated set of recordings you (or a filter) added. ## Open a replay Click any row to open its replay in the center player. The **scrubber** underneath the screen is a real timeline: each mark is an actual event from the session, so you can see where the errors, navigations, and rage clicks cluster before you even press play. Hovering a mark highlights the matching row in the Events panel, and clicking anywhere on the bar seeks there. The player is built for fast review with keyboard transport: | Key | Action | | - | - | | `Space` / `K` | Play / pause | | `←` / `→` | Step back / forward (hold `Shift` for 5s jumps) | | `J` / `L` | Slow down / speed up (0.5× · 1× · 2×) | | `[` / `]` | Previous / next recording | | `F` | Focus (theatre) mode — hide the rails; `Esc` exits | Web replays reconstruct the live DOM, so text stays crisp at any zoom and the cursor is rendered as a playback overlay (it never modifies the recording). ## Inspect the session The right-hand panel is the investigation surface. Its tabs adapt to the platform, and each one is synced to the playhead — click a row to jump the video to that exact moment. The full activity log — clicks, navigation, custom `track()` events, and errors, in order. The row at the playhead is highlighted as playback advances; click any event to seek to it and expand its details. Every `console.*` line, filterable by level (Errors · Warn · Info · Log · Debug). Expand a row to read its stack trace, structured arguments, and the timestamp it fired at. A DevTools-style request table — Time · Method · URL · Status · Duration — with quick filters for `errors`, `GET`, `POST`, `PUT`, `DELETE`. Open a request to inspect **Headers · Payload · Response · Timing**; clicking a row also parks the playhead on that request. On web: **Core Web Vitals** (LCP, CLS, INP) each rated Good / Needs improvement / Poor, a **Loading** section (FCP, TTFB), the **JS heap** series, a **Long tasks** summary (total blocking time + count), and a network summary with total requests and the slowest one. On mobile: **device vitals** (CPU, memory, thermal), a resource timeline, and slow-frame breakdowns. The screen-navigation flow of a mobile session — each screen with its entry time and duration. Tap one to seek the replay to when the user landed there. Crash and ANR reports captured during the session, with app version/build and symbolicated stack traces. The user traits and session properties you attached via `identify()` — plan, role, account id, feature flags, or anything else you send. ## Enrich recordings with identify() and track() Out of the box, recordings are captured anonymously. Two SDK calls turn a raw session into one you can find and reason about. **`identify()`** attaches a user to the session. The distinct id, email, name, and plan surface on the recording row and header — as does `picture` (or its alias `avatar`), a public https image URL shown as the user's avatar on the recording row and header — and any extra traits land in the **Custom properties** tab, so you can later filter with `user:` or search for everyone on a given plan. ```ts npm theme={null} replay.identify("user_123", { email: "ada@example.com", name: "Ada Lovelace", plan: "pro", picture: "https://cdn.example.com/u/123.png", }); ``` ```js Script tag theme={null} Replayfy.identify("user_123", { email: "ada@example.com", name: "Ada Lovelace", plan: "pro", picture: "https://cdn.example.com/u/123.png", }); ``` **`track()`** drops a named product event onto the session timeline, where it becomes a marker on the scrubber and a row in the Events panel. Use stable event names (no spaces) so the same events power your [funnels](/products/funnels) and segments. ```ts npm theme={null} replay.track("checkout_started"); replay.track("plan_upgraded", { from: "free", to: "pro" }); ``` ```js Script tag theme={null} Replayfy.track("checkout_started"); Replayfy.track("plan_upgraded", { from: "free", to: "pro" }); ``` Caught an error you want to see in context? `captureException(err)` — on your `initReplay()` controller, or `Replayfy.captureException(err)` with the script tag — pins it to the session timeline and promotes it to a first-class issue with its name, message, and parsed stack. ## Share a recording Every recording can become a public link — handy for looping in a teammate, attaching to a bug report, or sending to someone without a Replayfy account. Click **Share** in the player toolbar (or right-click a row in the list → **Share recording**). Toggle exactly which panels travel with the link — Timeline events, Console logs, Network requests, Performance, and (on mobile) Screens and Crashes. Everything is on by default except **Comments**, which stays internal to your team. Pick **24 hours**, **7 days**, or **30 days**, then **Generate link**. The URL is copied to your clipboard automatically. Anyone with a share link can view that recording without signing in. Links respect the expiry you set and can be regenerated at any time to invalidate an old one. Only the panels you enabled are exposed — the rest stay private. ## Leave comments Pause on the exact frame that matters and drop a note in the **Comments** tab. Each comment is pinned to the current timestamp, so a teammate opening the recording later can click **Open at** and jump straight to the moment you flagged — no "go to about 0:42" needed. The player badge keeps a running comment count. ## Mobile replay Mobile recordings (iOS, Android, React Native, and Flutter) are reconstructed from a per-session **frames archive** — a compact bundle of screen frames the SDK captures as the app runs — played back inside a realistic device shell. On top of the frames, native **taps** render as ripples, **screen navigation** appears in the Screens tab, and crashes and ANRs land in Crashes. Playback, the timeline, `identify()`, `track()`, sharing, and comments all work exactly as they do on web. Mobile capture and playback follow a shared, reference frames-archive approach across all four mobile SDKs, so a recording behaves the same whichever platform produced it. ## Privacy recap Replay is built to record real sessions without leaking sensitive data. By default the web SDK **masks every input value**, and you can add `maskTextSelector` to mask specific text, `blockSelector` to fully block elements, and `redactUrls` to strip patterns out of captured URLs. Network header capture is **off by default**, and a built-in deny-list masks sensitive header values when you do enable it. Masking happens **in the SDK, before anything leaves the device** — masked content is never transmitted or stored. Review your masking rules before rolling out to production. See [Privacy & masking](/guides/privacy-and-masking) for the full list of controls and recommended defaults. Send the custom events that enrich recordings and power funnels. Control exactly what gets recorded and what stays masked. Get recording live on web and mobile in a few minutes. # Quickstart Source: https://docs.replayfy.app/quickstart Get Replayfy recording real sessions in under two minutes. Pick your platform, paste two snippets, reload. Recording takes three steps on every platform: **install**, **initialize**, **verify**. Grab your **project key** from the dashboard: **app.replayfy.app → Settings → Install → API keys**. It looks like `rpl_pk_…` and is safe to ship in your app — it's a *publishable* key, not a secret. Replace `rpl_pk_YOUR_KEY` below with yours. ```bash npm theme={null} npm install @replayfyapp/browser ``` ```html Script tag theme={null} ``` Use the tab that matches how you installed. ```ts npm theme={null} import { initReplay } from "@replayfyapp/browser"; initReplay({ apiKey: "rpl_pk_YOUR_KEY", apiHost: "https://us.replayfy.app", // or your self-hosted API URL }); ``` ```html Script tag theme={null} ``` Reload your site, click around, then open **Recordings** in the dashboard — your session appears within seconds. ```ruby CocoaPods theme={null} pod 'Replayfy', '~> 0.0.4' ``` ```swift Swift Package Manager theme={null} // File → Add Packages… → https://github.com/replayfy/ios-sdk (from: 0.0.4) ``` Start recording from your `App` / `AppDelegate`: ```swift theme={null} import Replay Replay.start(with: ReplayConfig( apiKey: "rpl_pk_YOUR_KEY", apiHost: "https://us.replayfy.app" // or your self-hosted API URL )) ``` Run the app, tap around, then open **Recordings** in the dashboard. Add the dependency — it resolves from Maven Central, so no extra repository is needed (`mavenCentral()` is already in the default Android template): ```kotlin theme={null} // app/build.gradle.kts implementation("app.replayfy:android-sdk:0.0.4") ``` Start recording from `Application.onCreate`: ```kotlin theme={null} import com.replayfy.android.Replay import com.replayfy.android.ReplayConfig Replay.init( this, ReplayConfig( apiKey = "rpl_pk_YOUR_KEY", apiHost = "https://us.replayfy.app", // or your self-hosted API URL ), ) ``` Launch the app, tap around, then open **Recordings** in the dashboard. ```bash theme={null} npm install @replayfyapp/react-native cd ios && pod install && cd .. ``` Call once, as early as possible (e.g. `App.tsx`): ```tsx theme={null} import Replay from '@replayfyapp/react-native'; Replay.start({ apiKey: 'rpl_pk_YOUR_KEY', apiHost: 'https://us.replayfy.app', // or your self-hosted API URL }); ``` Rebuild the app, tap around, then open **Recordings** in the dashboard. ```bash theme={null} flutter pub add replayfy_flutter ``` Start recording in `main`, before `runApp`: ```dart theme={null} import 'package:replayfy_flutter/replayfy_flutter.dart'; await Replay.start(const ReplayConfig( apiKey: 'rpl_pk_YOUR_KEY', apiHost: 'https://us.replayfy.app', // or your self-hosted API URL )); ``` Run the app, tap around, then open **Recordings** in the dashboard. ## That's it You're recording. Next, make the data yours: Need the full API and config for your platform? See the per-SDK pages under **SDKs**. # Enable AI Source: https://docs.replayfy.app/self-hosting/ai Turn on Storylines, signals, investigations, and the Ask assistant with your own model key. One env var reaches every provider. The full agentic AI ships in the open-source build — you bring your own model key. On a self-host the key lives on the **server** (in the environment), shared by every workspace, and is **unmetered**: you pay your provider directly, nothing is metered by Replayfy. AI is optional and off until you give it a provider. Set three variables and restart the API. ## Any provider, one key (recommended) Point `LLM_PROVIDER` at **OpenRouter** and you reach every provider by model id — no per-provider setup: ```bash theme={null} LLM_PROVIDER=openrouter OPENROUTER_API_KEY=sk-or-... LLM_MODEL=anthropic/claude-sonnet-4.5 ``` Swap `LLM_MODEL` for any model OpenRouter offers: | Provider | Example `LLM_MODEL` | | - | - | | Anthropic | `anthropic/claude-sonnet-4.5` | | OpenAI | `openai/gpt-4o` | | Google | `google/gemini-2.5-pro` | | xAI | `x-ai/grok-4` | | DeepSeek | `deepseek/deepseek-chat` | | Mistral | `mistralai/mistral-large` | | Groq (Llama) | `groq/llama-3.3-70b-versatile` | ## Anthropic directly If you'd rather call Anthropic without a gateway: ```bash theme={null} LLM_PROVIDER= # blank = Anthropic direct ANTHROPIC_API_KEY=sk-ant-... LLM_MODEL=claude-sonnet-4-5 # bare model id, no vendor prefix ``` ## What it powers A narrated summary of what happened across your product. Surfaced issues, with a grounded root-cause pass on demand. Ask about a metric, funnel, or session in plain language. The Overview's "why did this move" explanations. ## No key set? Nothing crashes. AI features tell you they need a key: the Ask panel shows a "set up AI" notice instead of a broken chat, and **Settings → AI** reports `Not configured` with the exact env vars to set. Add the key, restart, done. The key is server-side by design — one key for every workspace, and it stays out of the application database. There is no per-workspace key entry in the self-hosted dashboard. # Configuration Source: https://docs.replayfy.app/self-hosting/configuration Every environment variable for a self-hosted Replayfy — with working local defaults, so you only change what you need. Everything is env-driven. `cp .env.example .env` and edit. Each variable has a working local default in `docker-compose.yml`, so a bare `docker compose up` runs; you only set what a real deployment needs. ## Security (required) Session-token signing secret. The API refuses to start if it's unset or shorter than 16 chars. Generate one: `node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"` ## Public URLs For a real deployment, point these at your domain (behind HTTPS). Public origin of the dashboard, e.g. `https://replayfy.example.com`. Public origin of the API, e.g. `https://api.example.com`. The dashboard image reads this at runtime, so one image works for any host. Comma-separated allowlist of browser origins. Set it to your dashboard origin. ## Datastores The compose defaults wire these to the bundled containers. Override only to point at external/managed datastores. Must be a **replica set** — Prisma requires one. The bundled Mongo self-initiates `rs0`; a managed MongoDB (e.g. Atlas) already is one. ## Object storage (S3-compatible) Stores session assets, thumbnails, and media. Any S3-compatible store works — MinIO (the default), AWS S3, Cloudflare R2, Backblaze B2. `true` for MinIO. The browser-reachable read URL. Path-style stores include the bucket, e.g. `http://localhost:9002/replayfy`. Cloudflare R2 shortcut: set `R2_ACCOUNT_ID` + `R2_ACCESS_KEY_ID` + `R2_SECRET_ACCESS_KEY` + `R2_BUCKET` and the endpoint is derived for you. ## Email Defaults to the built-in **Mailpit** catcher — read what the app sends at `http://localhost:8025`. For real delivery: `smtp`, `resend`, or `console` (logs to stdout). Defaults to the Mailpit SMTP. Your relay, when `EMAIL_PROVIDER=smtp`. ## AI (optional) See [Enable AI](/self-hosting/ai) for the full setup. In short: `openrouter` (reaches every provider by model id) or blank for Anthropic direct. The model id, e.g. `anthropic/claude-sonnet-4.5` (OpenRouter) or `claude-sonnet-4-5` (Anthropic direct). ## First run `1` (default) seeds a demo workspace + the `admin@local` / `admin` login. Set `0` to start empty. `true` lets `/signup` work without a mail server (new accounts are marked verified on creation). See [First login](/self-hosting/first-login). Keep this **off** on an internet-facing instance — it lets anyone create verified accounts. # Deploy to the cloud Source: https://docs.replayfy.app/self-hosting/deploy Run Replayfy on a managed platform instead of your own server — Render, Railway, and Brimble, with the honest caveats for each. The tested path is `docker compose up` on any VPS. You can also deploy to a managed platform — but read this first, because Replayfy uses **five datastores** and no platform manages all of them. **Postgres and Redis** are the only datastores these platforms manage. **MongoDB, ClickHouse, and object storage** you point at externally (e.g. MongoDB Atlas, ClickHouse Cloud, Cloudflare R2). MongoDB must be a **replica set** — a single node won't work. All of this runs **paid** instances; free tiers won't hold the stack. | Datastore | Render | Railway | Brimble | | - | - | - | - | | Postgres | ✅ managed | ✅ managed | ✅ managed | | Redis | ✅ managed | ✅ managed | ✅ managed | | MongoDB | ⚠️ external | ✅ managed | ✅ managed | | ClickHouse | ⚠️ external | ⚠️ external | ⚠️ external | | Object storage | ⚠️ external (R2/S3) | ⚠️ external (R2/S3) | ⚠️ external (R2/S3) | ## Render The repo ships a [`render.yaml`](https://github.com/replayfy/replayfy/blob/main/render.yaml) blueprint that provisions the API + dashboard + managed Postgres + Redis. You supply the three external datastore URLs (Mongo, ClickHouse, S3) as environment variables after the blueprint loads. [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/replayfy/replayfy) Render reads `render.yaml` and previews the services + managed Postgres/Redis. Set the `sync: false` vars: `DATABASE_URL_MONGO` (Atlas), `CLICKHOUSE_URL`, the `S3_*` block (R2/S3), and — after the first deploy assigns your `*.onrender.com` URLs — `APP_BASE_URL`, `API_BASE_URL`, `CORS_ORIGINS`, then redeploy. `render.yaml` is an **experimental starting point** — review it before you deploy. It provisions paid services, and you own the external datastores. ## Railway Railway manages Postgres, Redis, **and** MongoDB (three of the four), so only ClickHouse and object storage are external. There's no repo blueprint file — you build a project once (the two app services + the managed databases), then **Generate Template from Project** and publish it; the "Deploy on Railway" button points at that published template. Railway does not run `docker-compose.yml` directly; map each compose service to a Railway service. ## Brimble Brimble has **no one-click deploy button**. Deploy with its CLI and attach managed datastores from the dashboard: ```bash theme={null} npm i -g @brimble/cli brimble deploy --prod ``` Then provision managed Postgres / MongoDB / Redis from the Brimble dashboard, and point `CLICKHOUSE_URL` + the `S3_*` vars at external services. Brimble is a good fit for the static dashboard + a Node API; ClickHouse, object storage, and full orchestration are on you. ## The reliable path If a clean one-click matters more than a managed control plane, put `docker compose up` on a single VPS — it runs all five datastores together, is the path we test, and needs no external services. See [Self-hosting](/self-hosting/overview). # First login Source: https://docs.replayfy.app/self-hosting/first-login How to sign in to a fresh self-hosted instance — with the seeded demo account, or by signing up on an empty one. How you get your first account depends on `SEED_DEMO`. ## With demo data (default) `SEED_DEMO=1` (the default) seeds a demo workspace, **Loop, Inc.**, with a ready-to-use owner account. Open **[http://localhost:8080](http://localhost:8080)** and sign in: * **email** `admin@local` * **password** `admin` Change this password immediately on anything reachable from the internet, and set `SEED_DEMO=0` for a real deployment so the demo account is never created. ## On an empty instance With `SEED_DEMO=0`, no account exists yet. Sign-up is **open** (not invite-only), and the account you create becomes the **owner** of the workspace it sets up. Go to **[http://localhost:8080/signup](http://localhost:8080/signup)** and create an account. Sign-up sends a verification **link** — no login is issued until you click it. On the default stack that email lands in the **Mailpit catcher** at **[http://localhost:8025](http://localhost:8025)**. Open it and click the link. Onboarding walks you through naming your first workspace. You own it. There is **no instance-wide super-admin**. Roles are per-workspace — every user owns the workspaces they create. ### No mail server? Skip verification If you run without a mail server (or before you've configured one), the verification link can never arrive and sign-up would dead-end. Set: ```bash theme={null} AUTH_AUTOVERIFY=1 ``` New sign-ups are then marked verified on creation and you go straight to onboarding — no email needed. `AUTH_AUTOVERIFY=1` + a publicly reachable instance means **anyone** can create verified accounts. Treat it as a bootstrap switch: enable it long enough to create your first owner on a private/local box, then turn it off and rely on the emailed link (configure `EMAIL_PROVIDER` for real delivery). # Self-hosting Replayfy Source: https://docs.replayfy.app/self-hosting/overview Run the whole Replayfy platform on your own infrastructure — unlimited, unmetered, AGPL-3.0. Session replay, analytics, funnels, crashlytics, and the agentic AI, all with one command. Replayfy is **open core**. The [`replayfy/replayfy`](https://github.com/replayfy/replayfy) repository is the full product, and when you self-host it is **unlimited and unmetered** — no project cap, no seat cap, no feature flags behind a paywall. The AI assistant is included; you bring your own model key. Only subscription billing and the fully-managed AI live in [Replayfy Cloud](https://replayfy.app). Prefer not to run infrastructure? [Replayfy Cloud](https://replayfy.app) is the same product, hosted and managed for you. Self-hosting is free and complete — Cloud is a convenience, not a paywall. ## What you run A single `docker compose up` brings up the API, the dashboard, and every datastore they need: | Component | Role | | - | - | | **API** (NestJS) | Ingestion, analytics, funnels, crashlytics, the AI agent, all reads | | **Dashboard** (React) | The web app, served by nginx | | **Postgres** | Workspaces, users, config, issues | | **MongoDB** | Web replay timelines (rrweb) — single-node replica set | | **ClickHouse** | The analytics / event store (everything that must scale) | | **Redis** | Queues and caches | | **Object storage** | Session assets + backups (MinIO locally; any S3-compatible store in prod) | | **Mailpit** | A local email catcher (swap for your SMTP relay in prod) | ## Requirements * **Docker** (Docker Desktop, OrbStack, or Docker Engine + Compose v2). * \~4 GB RAM free for the full stack. * For a real deployment: a Linux host, a domain, and HTTPS in front. ## Quick start **No clone, no build** — grab two files and go. `docker compose up` pulls the pre-built images from GHCR: ```bash theme={null} mkdir replayfy && cd replayfy curl -O https://raw.githubusercontent.com/replayfy/replayfy/main/docker-compose.yml curl -o .env https://raw.githubusercontent.com/replayfy/replayfy/main/.env.example # change JWT_SECRET in .env before exposing it docker compose up ``` Open **[http://localhost:8080](http://localhost:8080)**. See [First login](/self-hosting/first-login) for how to sign in. Pin a version with `REPLAYFY_IMAGE_TAG` in `.env` (defaults to `latest`) — see [Versions](#versions). Working on the code instead? Clone the repo and build from source: `docker compose -f docker-compose.yml -f docker-compose.build.yml up --build`. Every environment variable — URLs, datastores, storage, email. The demo account, or signing up on an empty instance. Bring your own key — one env var reaches every provider. Render, Railway, Brimble — and the honest caveats. ## Versions `docker compose up` pulls **multi-arch** (amd64 + arm64) images from GHCR. Pin a version with `REPLAYFY_IMAGE_TAG` in `.env` — it defaults to `latest`: ```bash theme={null} REPLAYFY_IMAGE_TAG=0.1.0 ``` Tags follow [semver](https://semver.org): `0.1.0`, `0.1`, and `latest` all resolve to published images. To know exactly which build you're on — handy for a bug report — check the footer under any **Settings** tab, or query the API: ```bash theme={null} curl https://your-host/version # {"version":"0.1.0","commit":"…","builtAt":"…"} ``` ## Upgrading Pull the newer images and re-run — migrations are idempotent and run on every boot: ```bash theme={null} docker compose pull docker compose up -d ``` Back up your datastores before upgrading a production instance. The volumes to snapshot are Postgres, MongoDB, ClickHouse, and your object-storage bucket. ## Licence The server and dashboard are **AGPL-3.0**; the capture SDKs are **MIT**. See [`LICENSE`](https://github.com/replayfy/replayfy/blob/main/LICENSE). # Social login Source: https://docs.replayfy.app/self-hosting/social-login Add Continue with Google, GitHub, or GitLab to your self-hosted Replayfy. Set a provider's client credentials and its button appears. Replayfy supports social login with **Google, GitHub, and GitLab**. Each is optional and off until you provide its OAuth app credentials. Buttons appear only for providers you've configured. A fresh self-host shows no social buttons at all (not dead ones) — email + password just works. ## How it works For each provider you register an OAuth app, then set two environment variables: `_CLIENT_ID` and `_CLIENT_SECRET`. Restart the API and the "Continue with …" button shows up on the login and sign-up screens. The **callback URL** you register with the provider is always: ``` /v1/auth/oauth//callback ``` For example, if your API is at `https://api.example.com`: * Google → `https://api.example.com/v1/auth/oauth/google/callback` * GitHub → `https://api.example.com/v1/auth/oauth/github/callback` * GitLab → `https://api.example.com/v1/auth/oauth/gitlab/callback` `API_BASE_URL` must be set to your real API origin — the callback URL is built from it. If it's wrong, the provider redirects to the wrong place after login. ## GitHub GitHub → **Settings → Developer settings → OAuth Apps → New OAuth App**. Set the **Authorization callback URL** to `/v1/auth/oauth/github/callback`. ```bash theme={null} GITHUB_CLIENT_ID=Iv1.xxxxxxxx GITHUB_CLIENT_SECRET=xxxxxxxx ``` Restart the API. "Continue with GitHub" now appears. ## Google Google Cloud Console → **APIs & Services → Credentials → Create credentials → OAuth client ID → Web application**. Add `/v1/auth/oauth/google/callback` under **Authorized redirect URIs**. ```bash theme={null} GOOGLE_CLIENT_ID=xxxxxxxx.apps.googleusercontent.com GOOGLE_CLIENT_SECRET=xxxxxxxx ``` ## GitLab GitLab → **Preferences → Applications** (or a group/instance application). Redirect URI: `/v1/auth/oauth/gitlab/callback`. Scope: `read_user`. ```bash theme={null} GITLAB_CLIENT_ID=xxxxxxxx GITLAB_CLIENT_SECRET=xxxxxxxx ``` ## In Docker Add the variables to your `.env` — the compose file already passes them through to the API: ```bash theme={null} # .env GITHUB_CLIENT_ID=Iv1.xxxxxxxx GITHUB_CLIENT_SECRET=xxxxxxxx ``` ```bash theme={null} docker compose up -d # picks up the new env ``` Only set the providers you want. There's no need to configure all three — each is independent, and unconfigured ones simply don't show. # Community & support Source: https://docs.replayfy.app/support Get help, talk to the team, report a security issue, and contribute to these docs. However you're stuck — setting up an SDK, reading a funnel, or chasing a crash — here's the fastest way to reach a human. ## Get help Questions about setup, billing, or your data — email **[support@replayfy.app](mailto:support@replayfy.app)** and we'll get back to you. Most answers are one click away — sessions, funnels, and settings all live in **app.replayfy.app**. Including a **session link** (the shareable URL from any recording) with your question is the single fastest way for us to help — we can watch exactly what you saw. ## Report a security issue If you've found a vulnerability, please **do not** open a public issue. Email **[security@replayfy.app](mailto:security@replayfy.app)** with the details and we'll respond quickly. Report security problems privately to **[security@replayfy.app](mailto:security@replayfy.app)** — not on GitHub or in a support ticket — so we can fix them before they're disclosed. See the `SECURITY.md` in any of our SDK repositories for the full policy and what to include in a report. ## Join the community Our SDKs are open source. The best way to shape where Replayfy goes is to get involved. Web, iOS, Android, React Native, and Flutter — all on GitHub. Hit a bug or missing feature in an SDK? Open an issue on that repo. Spotted something unclear here? Suggest an edit — these docs are open too. ## Status & updates For the latest SDK versions and release notes, check the **Releases** tab on each SDK's GitHub repository. New capture features and dashboard settings roll out continuously — and because SDK settings are fetched from the dashboard at startup, most improvements reach you without shipping a new build. Get an SDK installed and recording. Session replay, analytics, crashes, alerts, and AI.