Product analytics: replays, pages, errors, insights
Guidely's SDK can also capture how people use your product, not just how they respond to guides:
| Capability | What you get | Dashboard |
|---|---|---|
| Session replay | DOM recordings of real sessions (rrweb), with console output, network requests, page views, clicks, errors and guide events on the timeline | Replays |
| Heatmaps | Click, mouse-movement and scroll heatmaps drawn over a snapshot of the real page, per viewport size | Pages → Heatmap |
| Page analytics | Automatic page views, time on page, scroll depth, entries/exits, bounce rate, referrers, devices, top clicked elements | Pages |
| Error tracking | Uncaught errors and unhandled promise rejections, grouped into issues, with stack traces, affected users and a link to the replay | Errors |
| Insights | Ordered conversion funnels and retention cohorts over any event, saved for later | Insights |
| Pages & Features | Named (tagged) pages and features over the same events, product areas, core events, the Product Engagement Score, feature adoption, tag health, suggestions and AI tagging — see pages-and-features.md | Pages & Features |
Everything is stored in Guidely and tied to the same end users, sessions and guides as the rest of the product. You can, for example, watch replays of people who dropped out of a tour, or see which guide a user saw just before an error.
Customer app ── @guidelytech/* SDK
│ page_view · page_leave · click · rage_click · exception → POST /sdk/events → events
│ (exceptions also → error issues)
└ rrweb recorder (lazy chunk, only when replay is on) → POST /sdk/replay → recordings
Dashboard: Replays · Pages · Errors · Insights
Turning it on
Settings → Privacy & data (admins):
- Autocapture: page views, page leave (time on page and scroll depth), clicks and rage clicks. On by default.
- Error tracking: on by default.
- Session replay: off by default. Choose a sample rate (percentage of sessions recorded), whether console output and network requests are recorded (and whether request headers and bodies are), whether all text is masked, extra block selectors, and how many days recordings are kept (default 30).
No code changes are needed. Every Guidely SDK (React, Next.js, Svelte, SvelteKit, script tag) reads these settings from its configuration and starts capturing within one refresh. A developer can switch a capability off for one installation, but cannot switch on what the project turned off:
createGuidely({
projectId: "pk_…",
autocapture: { clicks: false }, // or autocapture: false
captureErrors: false,
sessionReplay: false, // or { maskAllText: true, blockSelectors: [".billing"] }
});
All capture follows the existing analytics switches: nothing is sent when Analytics enabled is off, when the SDK is created with analytics: false, or until consent is granted (consent: "pending" → setConsent("granted")).
Session replay
- Recording. The recorder (rrweb) is a separate chunk that is downloaded only when the project has replay on and the session is sampled in. Bundlers code-split it automatically. The script-tag build loads
guidely-recorder.jsfrom the same directory asguidely.js. - Sampling is decided once per session, so a session is either fully recorded or not at all.
guidely.startSessionRecording()records the current session regardless of the sample rate (useful for "record when a user reports a problem");stopSessionRecording()stops it. - Sessions end after the project's session timeout of inactivity (default 30 minutes) or after 24 hours. The SDK session id is shared by events and recordings, so every event in the Events explorer can open the matching replay.
- Uploads go out every few seconds, gzip-compressed in the browser (
CompressionStream), and are flushed when the page is hidden. Multi-page apps produce one recording that spans page loads. - Mobile apps. The iOS and Android SDKs record too, when the app also turns on
sessionReplayin its SDK options (opt-in per app). They upload rrweb events to the same endpoint: each frame is a masked JPEG screenshot shown as an<img>(a keyframe on every screen change), plus touches and Guidely events. Ingestion, storage, alerts and the player are shared with the web. See mobile.md. - Player. Replays → open a recording. Space plays and pauses, ←/→ jump 10 seconds, and you can change speed and skip inactivity. The timeline marks page views, rage clicks, errors and guide events (and failed network requests); click one to jump to it. Side tabs show the activity list, console output, network requests (including WebSocket connections and their messages) and session details.
?t=<ms>opens a recording at a point in time (error occurrences link there). Recordings stream like a video: playback starts as soon as the first snapshot has downloaded, the timeline shows the whole length with the downloaded part shaded, and seeking past it shows "Buffering…" until the data arrives. A?t=link downloads from the page load (or app screen) on show at that moment first, then the rest. - Filters. User, duration, URL, "has errors", "has rage clicks", a guide (sessions that interacted with it), or an error issue (sessions in which it occurred).
- Console search. Find recordings whose console output contains some text, optionally limited to levels (errors, warnings, …). Each result lists its matching lines; click one to open the player at the moment it was logged. Inside the player, the Console tab has its own search that jumps between matches.
- Search covers up to 500 distinct console lines per recording (each with a count). The full output stays in the recording.
Replay alerts
Replays → Alerts notifies you by email or Slack when a finished recording matches conditions. Use it to hear about a rage-click storm on checkout, or a session that logged "payment declined", without watching recordings all day.
- Conditions (every condition you set must match): rage clicks ≥ N; errors ≥ N, or a specific error issue; failed network requests ≥ N (5xx, network errors and failed WebSockets); console output containing some text, optionally by level; a visited URL; interaction with a guide; minimum duration.
- Timing: a recording is checked once it has been quiet for 5 minutes. A rule alerts at most once per recording, and recordings older than a day aren't checked.
- Rate limit: each rule sends at most N alerts an hour (default 10). Further matches are counted and reported in the next alert as "+N more recordings matched".
- Channels: email and Slack, the same as error alerts. The message names the user, says what matched, and has Watch replay, which opens the recording just before the first matching moment.
- Shortcuts: Create alert from these filters on the Replays list turns your current search into a rule.
Privacy in recordings
- Inputs are always masked: typed text, passwords and select values never leave the browser.
- Text inside elements matching the project's masked selectors,
[data-guidely-mask]or.guidely-maskis replaced with*. Turn on Mask all text to mask every text node. - Elements matching
[data-guidely-block]or the block selectors are not recorded at all; the player shows an empty box of the same size. - Canvas, fonts and cross-origin iframes are not recorded.
- Network requests (on by default) record only metadata: method, URL, status, type, timing and size. Values of query parameters with sensitive names (
token,key,secret,password,auth,code,sig, …) are replaced with[redacted], and requests to Guidely's own API are never recorded. - WebSockets are recorded with network requests: each connection (redacted URL, protocol, open and close times, close code and reason) and its frames' direction, time and size. Up to 200 frames per connection per page load are listed; totals keep counting beyond that.
- Headers and bodies are only recorded with Include headers and bodies on, which is off by default. Even then:
Authorization,Cookie,Set-Cookieand API-key headers are always redacted;- bodies are kept only for text, JSON and form data, up to 10 KB each;
- JSON fields with sensitive names are masked;
- WebSocket frame contents are kept only for text frames, up to 2 KB, with the same JSON masking; binary frames show only their size.
- Developers can redact or drop any request with
sessionReplay: { maskNetworkRequest: (req) => req | null }, or switch network recording off withsessionReplay: { recordNetwork: false }. - Admins can delete a single recording; deleting a user's data removes their recordings too.
Page analytics
| Metric | Definition |
|---|---|
| Page views | page_view events (one on load, one on every SPA navigation) |
| Visitors | distinct users (endUserId, else anonymousId) with a page view |
| Sessions | distinct SDK session ids with a page view |
| Avg time on page | mean durationMs of page_leave: visible time only, paused while the tab is hidden |
| Scroll depth | mean of the deepest point reached, 0–100% of the page height |
| Entries / exits | sessions whose first / last page view was the path |
| Bounce rate | sessions with exactly one page view ÷ sessions with a page view |
Group dynamic segments folds numeric, UUID and hash-like path segments into :id, so /contacts/42 and /contacts/77 appear as /contacts/:id. Open a page to see its trend, most clicked elements (with rage clicks), the errors that happen on it, and its replays. From there, Tag this page and the tag button on a clicked element turn them into named pages and features (pages-and-features.md).
Paths come from the event URL. With Collect page URLs off, the server stores no paths, titles, referrers or link targets, and page analytics stay empty.
By default a path drops the query string. Apps that switch screens through it (one /dashboard route showing ?section=billing, ?section=drivers, …) can list those parameters under Settings → Privacy & data → Page query parameters. Listed parameters stay in the path (/dashboard?section=billing), in the order configured; every other parameter is still dropped. This applies to Pages, heatmaps, funnels, Reports and the dashboard. Saving a change re-files the project's stored events in the background (Pages shows a notice until it finishes). A funnel step on /dashboard matches every section; use /dashboard?section=billing for one. When a path's page views carry a parameter with 2–30 values (tracking, search, sorting, paging and date parameters excluded), Pages suggests splitting by it.
Autocaptured events
| Event | Properties |
|---|---|
page_view | path (pathname, no query), title, referrer (first page of a session, other origins only, origin + path), deviceType, browser, os, screenWidth, viewportWidth |
page_leave | path, durationMs, scrollDepth |
click | tag, text (≤100 chars, never from inputs or masked elements), selector, href (links), x, y, el (compact element snapshot for CSS feature rules), elh (element hash, set by the server); fa (feature-attribute value) and ep (DOM properties of tagged pages / features) when configured |
rage_click | as click, plus count: 3+ clicks within 1 s within 30 px, on any element (one event per burst) |
exception | type, message, frames[] (fn, file, line, col), source, handled, fingerprint (set by the server) |
heatmap | path, viewportWidth, viewportHeight, pageHeight, points[] (k click/rage/move, x, y, s selector, rx, ry, w weight of a movement bin) |
| app_install / app_update | Mobile SDKs: appVersion, build (previousVersion, previousBuild for updates) | | app_open / app_background | Mobile SDKs: appVersion, build, coldStart / foregroundMs |
Mobile SDKs send the same page_view (per screen()), page_leave, click, rage_click and heatmap events with platform: "ios" | "android"; their selector comes from the element's Guidely id (#id) or native identifiers, see mobile.md. The Heatmap page's platform menu switches between web pages and app screens.
page_leave is sent when the URL changes and when the page is hidden, at most once per page. scrollDepth is 100 for a page that fits in the viewport. Page views wait for consent like other events; clicks, page leave, errors and recordings are only captured once consent is granted.
Clicks are recorded for links, buttons, form controls, [role=button|link|tab|menuitem|…] and anything marked data-guidely-track or the project's feature attribute (data-guidely-feature by default). Add data-guidely-ignore to an element to skip it and its children. Clicks inside Guidely's own UI are never autocaptured.
Heatmaps
- Capture. With Heatmaps on (Settings → Privacy & data → Autocapture, on by default), the SDK records every click on a page, not only clicks on buttons and links. Clicks are sent in batches as
heatmapevents: up to 40 points per batch, and a batch is also sent when the page changes or is hidden. Each point stores page coordinates and the selector of the element it landed on (the surrounding button or link for clicks on an icon), plus its relative position inside that element. Points therefore stay on the right element even when the layout differs between visitors. No text or content is captured. Clicks that are part of a rage-click burst are marked. - Mouse movement (Mouse movement, on by default, desktop pointers only) samples the pointer at most every 200 ms while it moves. Samples are binned in the browser, against the element under the pointer (at a 10% grid of its size) or else a 16 px page grid, and only the weighted bins are sent with the click batches. A minute of movement adds a few dozen points, not thousands, and movement never keeps a session alive.
- Viewing. Pages → open a page → Heatmap. Choose desktop (≥1280 px), tablet (768–1279 px) or mobile (<768 px). Clicks shows a heat layer plus the most-clicked elements (hover one to highlight it on the page); Movement shows where the pointer lingers and the most-hovered elements; Scroll shows how many visitors reached each depth, based on the
page_leavescroll depth. - The page behind the heatmap comes from a session recording that visited the page in that viewport size. The recording is replayed to just after the page view and paused. Without recordings the points are drawn on a blank canvas of the page's size.
- Tagged features outlines each tagged feature clicked on the page, coloured by its share of the page's clicks (the feature heatmap).
- Heatmap points follow the event retention, and with Collect page URLs off they carry no path.
Error tracking
- The SDK listens for
errorandunhandledrejectiononwindow. Resource-load errors and opaque cross-originScript error.messages are ignored. Report handled errors yourself withguidely.captureException(error, { area: "checkout" }). With error tracking off for the project nothing is stored, manual reports included; the SDK optioncaptureErrors: falseonly stops the automatic handlers. - Flood control: the same error is reported at most 5 times per page load, and at most 100 errors per session. Errors thrown by Guidely's own SDK are not reported as yours.
- Breadcrumbs, context and causes. Each error carries the last 100 breadcrumbs (clicks, navigation,
console.warn/error,fetch/XHR, guide events), browser/OS/device contexts, the tags, extra data and user fields set withsetTag/setExtra/setContext/setUser, and itserror.causechain. The issue page shows them under the stack trace. They travel as the event'sdetail(up to 64 KB, outside the 8 KB property budget) and are kept with the occurrence until the events expire.captureMessage(text, level)reports a message;errors: { sampleRate, ignoreErrors, denyUrls, allowUrls, beforeSend, beforeBreadcrumb }filters and edits what is sent. The mobile and server SDKs do the same, crashes included, see error-monitoring/sdks.md. - Grouping. The server fingerprints each exception by its type, its message with volatile parts (numbers, quoted strings, UUIDs) replaced, and the innermost stack frame's file (build hash removed) and function. Line numbers are left out so an issue survives redeploys.
- Issues are open, resolved or ignored. A resolved issue that happens again reopens and is marked Regressed. Ignored issues stay ignored but keep counting.
- An issue shows its occurrence trend, the latest stack trace, affected users, the pages and browsers it happens on, and Watch replay, which opens the recording a few seconds before the error.
Source maps
Upload your build's source maps and the Errors page shows original file names, lines, function names and the surrounding source instead of minified code.
- Create an upload key in Settings → Source maps (admins). Keys look like
gly_sk_…, are shown once, are stored hashed, and can only upload maps (sourcemaps:write). Unlike the publicpk_keys, they're secrets: keep them in your CI secret store. - Build with source maps (Vite
build.sourcemap: true; Next.jsproductionBrowserSourceMaps: true). - Upload in CI, after the build and before deploying:
``
bash npx @guidelytech/sourcemaps upload --dir dist --url-prefix / --release "$GIT_SHA" --delete-after # Next.js: --dir .next/static --url-prefix /_next/static/ # env: GUIDELY_SOURCEMAP_KEY=gly_sk_… GUIDELY_API_URL=https://<your Guidely API>``The CLI finds every
*.mapnext to its minified file, works out the URL path the file is served at, and uploads in batches.--delete-afterremoves the local maps so they aren't deployed publicly;--dry-runshows what would be uploaded. - Tell the SDK the release (optional but recommended):
createGuidely({ …, release: "<same value>" }). With a release, only that release's maps are used. Without one, the most recent map uploaded for the file's path is used, which is safe when file names contain content hashes (Vite, Next.js).
How it's used:
- Grouping. When a map resolves an error's innermost frame, the issue fingerprint uses the original file and function name. Issues then keep grouping across deploys even when the minifier renames functions. Occurrences recorded before the maps were uploaded keep their old issue.
- Deterministic grouping. If a map exists but can't be read in time, the exception isn't grouped by its minified frame. The SDK is asked to retry the batch (its other events are stored right away), so one error never splits into two issues because of a slow download. A map that is missing or can't be parsed is treated as no map.
- Display. Stack traces are mapped when you open an issue, so older occurrences benefit too. Vendor frames are collapsed, and Minified shows the raw frames.
- Storage. Maps are stored privately and are never served to browsers. Guidely never downloads maps from your site. Maps are deleted 180 days after upload; upload them again with each build.
- Limits. 100 MB per map (uncompressed; the CLI gzips uploads) and 200 maps per request (the CLI batches for you). The CLI uploads a larger map without
sourcesContentwhen that fits, and fails the run when it still doesn't.
Native debug files (iOS, Android, Flutter)
Native crashes and obfuscated Android builds need their debug files to show function names, files and lines: iOS dSYMs, ELF symbols (Android NDK, Flutter --split-debug-info) and ProGuard / R8 mappings. Upload them in CI with npx @guidelytech/sourcemaps upload-dif <dir> / upload-proguard <mapping.txt>, or sentry-cli debug-files upload / upload-proguard, using a key with the debug-files:write scope. Frames are matched by debug id (dSYM UUID, ELF build id, mapping UUID, else the newest mapping for the event's app version) and symbolicated at ingest, so issues group by the original function; opening an issue symbolicates again, so files uploaded after a crash still help. Files are deleted 180 days after their last use. See error-monitoring/sdks.md.
Alerts (email and Slack)
Errors → Alerts (editors and above). A rule decides when to notify, and who: a new issue, a regression, an escalating issue or a spike, filtered by level, tag, release and more, sent by email, to Slack, Microsoft Teams, Discord, PagerDuty, Opsgenie or a webhook, or as a Linear / Jira ticket, at most once per issue in the interval you pick. Metric alerts watch a number (errors, latency, crash-free sessions) against thresholds. The full reference is error-monitoring/alerts.md.
Slack. Add the Guidely Slack app (Integrations → Slack → Add to Slack) and pick its channels in the rule, or paste an incoming webhook URL per channel. Each alert is a message with the error, culprit, occurrences and affected users, plus View issue and Watch replay; through the app it also gets buttons to resolve, ignore and assign the issue. See Connect Slack.
Every alert is logged with its delivery status in the Activity tab (failed posts are retried up to 5 times). Send test notification checks a rule's channels without waiting for a real error.
App versions
Every event, error and recording can carry the version of your app it came from, so you can see who is on which release and whether a release made things worse.
- Sending it. Web:
Guidely.init({ …, appVersion: "2.4.1" }),createGuidely({ appVersion })ordata-app-version="2.4.1"on the script tag. iOS, Android and Flutter report the app's version automatically (CFBundleShortVersionString/versionName/ the package version; theappVersionoption overrides it); React Native takes theappVersionprop. Server-sidetrackcalls takeappVersionper message (the Node, Java and PHP SDKs also as a client option), and Segment-compatible sources usecontext.app.version. Events that carryproperties.appVersion(older mobile SDKs' lifecycle events) count too. Any string up to 64 characters is kept as sent (2.4.1,v2.4.1,2026.10.26, a commit SHA); versions are ordered numerically (2.10.0after2.9.1). - Insights → App versions: visitors, sessions, events, errors and error-free visitors per version, newest first, plus daily visitors of the four most used versions. Visitors who updated during the range count for each version they used.
- Filters: Errors, Replays and Events have an app-version filter (
?appVersion=2.4.1,(not set)for events without one); an error's page lists the versions it happened in, with the first time each was seen. The Data Explorer can break any metric down by App version. - Dashboards and reports: the shared report filter (dashboards, Pages, Accounts, Paths, Workflows, the Data Explorer, active users) has an app-version picker too; see analytics.md.
- Breakdowns: the Pages report, a page's detail and every tagged page and feature show visitors per app version, split by platform (iOS, Android or web, from the SDK's
platform). The Pages & Features lists filter by version. - Stored in
ProductEvent.appVersionandReplaySession.appVersion.release(source maps) is a separate option; Electron'selectronOptions()sets both.
Insights
Funnels. Pick 2–8 steps. A step is an event (any built-in or custom event, a tagged page's views (page:<id>), a tagged feature's clicks (feature:<id>), or any event) with optional filters: a path pattern (/contacts/*), click text, or a guide. A user converts when they complete the steps in order, each within the conversion window (1 hour to 90 days) of their first step-1 event in the date range. Results show users per step, conversion from the previous and the first step, drop-off, and median time between steps. Users are identified people where known, otherwise anonymous visitors.
Retention. Users enter the cohort of the day or week in which they first did the start event in the range. A cohort's columns show the share who did the return event in each following period. Periods that haven't finished yet are left blank, and the average row is weighted by cohort size.
Save an insight to reuse it; editors can rename and delete saved insights.
Paths, workflows and Data Explorer are the other Insights tabs: Sankey paths forward from or backward to a page or event, workflows (multi-step journeys with a completion window and a status per visitor or account), and the Data Explorer query builder (up to five sources, a metric, interval, breakdown and previous-period comparison). They save as insights too, can go on dashboards, and any selection in them (a path node, a workflow status, a bar) can become an audience. Definitions: analytics.md.
Pages: per-page breakdowns. A page's detail also lists its top visitors and accounts, the previous and next page within sessions, and the referrers, devices and browsers of its views. The Pages report takes a segment / account filter and exports as CSV.
How-to workflows. How-tos → Optimize measures each recorded how-to against this data: a session-based funnel over its steps, time between steps, rage clicks and errors on the way, and replays of sessions that dropped off. Its Open the funnel in Insights opens the same steps here as an unsaved funnel. See how-tos.md.
Data, storage and retention
- Recordings are deleted after the project's replay retention (default 30 days). Events, including exceptions, follow the event retention. Issues that haven't occurred within the event retention are deleted.
- Recordings are stored privately and encrypted, typically 50–300 KB per minute of activity. The dashboard never links to the stored files: recordings are streamed only to signed-in members of your workspace, so access follows workspace roles.
- Deleting a recording, a user's data or a project deletes the recordings too. Anything older than 366 days is removed as a backstop.
- Limits: 2 MB compressed / 16 MB uncompressed per replay upload; the usual SDK rate limits. An upload that can't be stored is answered with 503, so the SDK retries it.
API
SDK: POST /api/v1/sdk/replay (see api.md). Management (session cookie): GET /projects/:id/replays, GET|DELETE /replays/:id, GET /replays/:id/recording, GET /projects/:id/pages, GET /projects/:id/pages/detail, GET /projects/:id/heatmaps, GET /projects/:id/errors, GET|PATCH /errors/:id, POST /projects/:id/insights/funnel|retention, GET|POST /projects/:id/insights, PATCH|DELETE /insights/:id, GET|POST /projects/:id/alert-rules, PATCH|DELETE /alert-rules/:id, POST /alert-rules/:id/test, GET /projects/:id/alert-rules/deliveries, GET|POST /projects/:id/api-keys, PATCH|DELETE /api-keys/:id, GET|DELETE /projects/:id/sourcemaps, DELETE /sourcemaps/:id, GET|POST /projects/:id/replay-alert-rules, PATCH|DELETE /replay-alert-rules/:id, POST /replay-alert-rules/:id/test, GET /projects/:id/replay-alert-rules/deliveries. Upload key: POST /api/v1/sourcemaps/upload, GET /api/v1/sourcemaps/whoami.
Paths, workflows, Data Explorer, dashboards and accounts (bodies are the *Definition types in apps/web/src/lib/analytics-breadth-types.ts): POST /projects/:id/paths, POST /projects/:id/workflows, POST /projects/:id/workflows/entities, GET /projects/:id/explore/catalog, POST /projects/:id/explore, POST /projects/:id/explore/export.csv, GET /projects/:id/active-users, GET /projects/:id/kpi, GET|POST /projects/:id/dashboards, POST /projects/:id/dashboards/reset-default, GET|PATCH|DELETE /dashboards/:id, GET /projects/:id/accounts, GET /projects/:id/accounts/:accountId, PUT /projects/:id/accounts/:accountId/parent, GET /projects/:id/users/:userId/timeline, GET /projects/:id/users/:userId/metadata, GET /projects/:id/pages/breakdowns, GET /projects/:id/pages/export.csv, GET|POST /projects/:id/exclusions, DELETE /projects/:id/exclusions/:exclusionId, POST /projects/:id/cohorts (audience from a selection). GET /projects/:id/insights?kind= filters saved insights by kind.
Not yet included
Fetching source maps from your site automatically, and Server-Sent Events / WebRTC recording in replays. (Trend charts over arbitrary events: Insights → Data Explorer.)