Title: Visitor Lens
Author: recorp
Published: <strong>5 Tháng 8, 2026</strong>
Last modified: 19 Tháng 10, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/visitor-lens/assets/banner-772x250.png?rev=3634957)

![](https://ps.w.org/visitor-lens/assets/icon-256x256.png?rev=3634957)

# Visitor Lens

 Bởi [recorp](https://profiles.wordpress.org/recorp/)

[Tải về](https://downloads.wordpress.org/plugin/visitor-lens.1.0.10.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/visitor-lens/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/visitor-lens/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/visitor-lens/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/visitor-lens/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/visitor-lens/)

## Mô tả

**See VisitorLens in action — watch the overview:**

**VisitorLens** is a powerful yet lightweight visitor analytics and session replay
plugin built natively for WordPress. Stop guessing why visitors leave and start 
_watching_ their real journeys — every click, scroll, and mouse movement recorded
and replayed directly inside your dashboard.

Whether you run a WooCommerce store, a membership site, or a content blog, VisitorLens
gives you the UX data you need to increase conversions and fix friction points —
without sending any data to third-party servers.

### Why VisitorLens?

Most analytics tools tell you **what** happened. VisitorLens shows you **why**. 
Watch session recordings to discover rage clicks, form drop-offs, confusing navigation,
and missed conversion opportunities — then fix them with confidence.

### Core Features (Free)

**Session Recording & Replay**
 * Record every visitor session: mouse movements,
clicks, scrolls, form interactions * Replay sessions in a built-in visual player
inside your WP admin * Filter replays by date, duration, page URL, device type, 
rage clicks, and error count * Input masking enabled by default — sensitive form
fields are never recorded * Automatic session pruning (configurable retention: 1–
90 days)

**Visitor Analytics Dashboard**
 * Real-time visitor count with auto-refresh * Daily,
weekly, and monthly visitor trends (interactive line chart) * Top pages ranked by
page views * Recent visitor log with location, browser, and device

**Statistics Page**
 * Overview KPIs: total visitors, sessions, page views, bounce
rate, avg. session duration * Pages report: top landing pages, exit pages, most 
visited URLs * Audience report: browser breakdown, OS/platform, device type, screen
resolution * Traffic sources: direct, organic, referral, social — with search engine
and keyword breakdown * Real-time active visitors with live page list

**Geo-Location**
 * Country, region, and city detection via ip-api.com (free tier,
optional) * GeoIP lookup can be disabled in Settings  General

**Privacy & Consent**
 * Consent gate: show a banner before recording begins (opt-
in or opt-out mode) * Cookie-based consent persistence with configurable cookie 
name * GDPR-compliant: privacy policy content auto-added to WP Privacy Policy page*
Personal data export and erasure via WP Tools  Export/Erase Personal Data * Honour
Do Not Track (DNT) browser signal (optional) * Exclude logged-in administrators,
specific IP ranges, URLs, and user roles

**Data Management**
 * Export sessions as CSV or JSON directly from the Replay page*
Bulk-delete filtered sessions * Storage usage card in Settings showing DB table 
sizes * Configurable automatic cleanup via WP-Cron

### Who Is This For?

 * **eCommerce store owners** — find cart abandonment causes, fix checkout friction
 * **Agency & freelance developers** — include analytics in every client site build
 * **Bloggers & content sites** — understand how readers consume content
 * **SaaS & membership sites** — improve onboarding flows and feature discovery
 * **CRO specialists** — validate A/B test hypotheses with real session evidence

### Privacy & GDPR

VisitorLens is built with privacy at its core:

 * **Minimal third-party use** — only ip-api.com for optional GeoIP (can be disabled
   in Settings)
 * **IP hashing** — visitor IPs are hashed with a secret salt by default
 * **Input masking** — form fields are masked and never sent to the server
 * **Consent tools** — built-in opt-in/opt-out consent gate
 * **Data export & erasure** — full WordPress personal data tools integration
 * **Configurable retention** — auto-delete old sessions on a schedule

### Performance

 * Tracker script: ~4 KB gzipped
 * Recorder script: ~9 KB gzipped
 * All recording data is batched and sent asynchronously — zero impact on page load
   scores
 * Uses WordPress REST API for all communication — no custom AJAX endpoints
 * No external JavaScript libraries loaded on the frontend

### Command-line & AI access

VisitorLens keeps every record in your own WordPress database, so you do not need
a browser to analyse your visitors. The **ReCorp Ops CLI (`rc`)**, built by the 
VisitorLens team, reads VisitorLens data directly and answers in plain text or `--
json`. It is made for AI assistants as much as for humans: hand **ChatGPT, Claude,
Codex, Gemini, Cursor or any agent that can run shell commands** an SSH login to
your server plus the `rc` command, and it can analyse your site’s visitors in seconds—“
who is on my site right now”, “which pages lose visitors”, “show me today’s frustrated
sessions” — instead of clicking through dashboards.

#### Connect a site

**SSH + WP-CLI** — give the `rc` CLI read access to your site’s database over your
own SSH login:
 rc sites add-ssh </path/to/wordpress> –host= –port=22 –key= then`
rc sites check <alias>` to confirm the connection and detect the VisitorLens tables.

#### Visitor commands

 * `rc visitors online <site>` — visitors active in the last 5 minutes
 * `rc visitors summary <site> --days=7` — visitors and pageviews per day
 * `rc visitors recent <site> --limit=50` — latest page views
 * `rc visitors pages <site> --days=30` — top pages with average load time
 * `rc visitors sources <site> --days=30` — traffic sources and UTM campaigns
 * `rc visitors sessions <site> --frustrated` — recorded sessions (only rage-click/
   error sessions with `--frustrated`)
 * `rc visitors session <site> <id> --all` — one recording as an event timeline (
   clicks, scrolls, inputs, errors)
 * `rc visitors visitor <site> <id>` — one visitor: device, pages viewed, recordings
 * `rc visitors tables <site>` — VisitorLens tables with approximate row counts
 * `rc visitors sql <site> "SELECT …"` — ad-hoc read-only query (`{p}` expands to
   the VisitorLens table prefix; SELECT/SHOW/DESCRIBE/EXPLAIN only)
 * `rc insights digest <site> --days=7 --json` — AI-ready digest: traffic leaks,
   best landing pages, frustration hot-spots and where to add conversion hooks

Every visitor command is read-only. Add `--json` for machine-readable output and`--
limit=n` / `--days=n` to control the window. IP addresses are masked by default;`--
ip` shows them.

#### A prompt that works

“You have the `rc` CLI and SSH access to my site `<alias>`. Run `rc visitors summary
<alias> --days=7`, `rc visitors sessions <alias> --frustrated` and `rc insights 
digest <alias> --json`, then tell me where visitors drop off, which sessions I should
watch, and the three fixes to make first.”

### External services

This plugin optionally connects to **ip-api.com** to perform GeoIP lookups (country,
region, city) for each tracked visitor.

**What is sent:** The visitor’s IP address.
 **When it is sent:** On every page-
view tracking request, if the GeoIP setting is enabled (Settings  General  GeoIP
Lookup). No data is sent if GeoIP is disabled. **Why:** To display geographic location
of visitors in the analytics dashboard and session list. **Service provider:** ip-
api.com (ip-api.com) * Terms of Service: https://ip-api.com/docs/legal * Privacy
Policy: https://ip-api.com/docs/legal

You can disable GeoIP under **VisitorLens  Settings  General  GeoIP Lookup** at 
any time.

### Privacy Policy

VisitorLens collects the following data about your site visitors when activated:

 * Hashed IP address and approximate geographic location (country, city, region)
 * Browser, operating system, device type, and screen resolution
 * Pages visited, referrer URL, UTM campaign parameters
 * Session recordings: mouse movements, clicks, scroll depth (form inputs are masked
   by default)
 * WordPress user ID (only for logged-in users)

All data is stored in your WordPress database. Nothing is sent to external servers.

You are responsible for disclosing your use of session recording technology to your
visitors in your site’s Privacy Policy. VisitorLens automatically adds a suggested
privacy policy text to your WordPress Privacy Policy page (Settings  Privacy).

## Ảnh màn hình

[⌊Dashboard — KPI cards, visitor trend chart, top pages, and live visitor count.⌉⌊
Dashboard — KPI cards, visitor trend chart, top pages, and live visitor count.⌉[

**Dashboard** — KPI cards, visitor trend chart, top pages, and live visitor count.

[⌊Session Replay — Filter and watch recorded visitor sessions in a visual player.⌉⌊
Session Replay — Filter and watch recorded visitor sessions in a visual player.⌉[

**Session Replay** — Filter and watch recorded visitor sessions in a visual player.

[⌊Statistics – Overview — Key metrics with trend sparklines and date range selector.⌉⌊
Statistics – Overview — Key metrics with trend sparklines and date range selector
.⌉[

**Statistics – Overview** — Key metrics with trend sparklines and date range selector.

[⌊Statistics – Audience — Browser, OS, device type, and screen resolution charts.⌉⌊
Statistics – Audience — Browser, OS, device type, and screen resolution charts.⌉[

**Statistics – Audience** — Browser, OS, device type, and screen resolution charts.

[⌊Statistics – Traffic Sources — Referrer breakdown including search engine and 
keyword data.⌉⌊Statistics – Traffic Sources — Referrer breakdown including search
engine and keyword data.⌉[

**Statistics – Traffic Sources** — Referrer breakdown including search engine and
keyword data.

[⌊Settings – General — Configure tracking, recording, exclusions, and sampling rate.⌉⌊
Settings – General — Configure tracking, recording, exclusions, and sampling rate
.⌉[

**Settings – General** — Configure tracking, recording, exclusions, and sampling
rate.

[⌊Settings – Privacy — Consent gate configuration, DNT, IP hashing, and input masking.⌉⌊
Settings – Privacy — Consent gate configuration, DNT, IP hashing, and input masking
.⌉[

**Settings – Privacy** — Consent gate configuration, DNT, IP hashing, and input 
masking.

## Cài đặt

 1. Upload the `visitor-lens` folder to `/wp-content/plugins/`.
 2. Activate the plugin through **Plugins  Installed Plugins**.
 3. Navigate to **VisitorLens  Dashboard** in your admin menu.
 4. Visit your site in an incognito/private window (or as a non-admin) to record your
    first session.
 5. Return to **VisitorLens  Session Replay** to watch it back.

**Note:** Logged-in administrators are excluded from tracking by default. Test tracking
in a private browser window or by temporarily logging out.

## Hỏi đáp

### Can an AI assistant (ChatGPT, Claude, Codex) analyse my visitors?

Yes. Give the assistant SSH access to your server plus the ReCorp Ops CLI (`rc`),
and it can query live and historical visitor data directly — see the _Command-line&
AI access_ section above for the full command list.

### Does VisitorLens send data to any external server?

All session recording data is stored exclusively in your own WordPress database.
When the optional GeoIP feature is enabled (disabled by default), the visitor’s 
IP address is sent to ip-api.com to look up their country/city. You can enable GeoIP
under Settings  General; if it is disabled, no data is sent externally.

### Will session recording slow down my website?

No. The recording scripts are tiny (< 15 KB combined, gzipped) and all data is sent
asynchronously in batches after the page has loaded. Page load speed and Core Web
Vitals are unaffected.

### Is VisitorLens GDPR compliant?

Yes. VisitorLens includes a built-in consent gate, IP address hashing, input masking,
and full integration with WordPress’s personal data export and erasure tools. It
also auto-populates your Privacy Policy page with a detailed data usage description.
You are responsible for disclosing the use of session recording in your own privacy
policy.

### Does it work with WooCommerce?

Yes. The free version tracks all pages including WooCommerce shop, product, cart,
and checkout pages. The Pro version adds dedicated WooCommerce analytics including
revenue attribution, cart abandonment tracking, and checkout funnel analysis.

### How do I stop recording certain pages or users?

Go to **VisitorLens  Settings  General**. You can exclude specific URLs (with wildcard
support), IP addresses, logged-in user roles, and bots. You can also set a sampling
rate to record only a percentage of sessions.

### Can I export or delete session data?

Yes. From the **Session Replay** page, use the Export button (CSV or JSON) for any
filtered set of sessions. Use the Bulk Delete button to remove sessions. For GDPR
erasure requests, use **Tools  Erase Personal Data** — VisitorLens will automatically
erase all sessions linked to that user’s WordPress account.

### Where is session data stored?

All data is stored in your WordPress database in dedicated tables prefixed with `{
wp_prefix}vs_`. No files are written to the filesystem.

### How long is session data kept?

By default, sessions are deleted after 7 days. You can change this to anywhere from
1 to 90 days under **VisitorLens  Settings  Data Management**.

### Does it work with page builders like Elementor, Divi, or Beaver Builder?

Yes. VisitorLens records at the DOM level and works with any theme or page builder
without any configuration.

### Can I see who is currently on my site?

Yes. The Dashboard shows a real-time active visitor count that auto-refreshes. The
Statistics page has a dedicated Real-Time section showing live visitor count and
the pages they are currently viewing.

### Is there a multisite / network version?

Not yet — multisite support is planned for a future release. Currently, the plugin
must be activated per-site.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Visitor Lens” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ recorp ](https://profiles.wordpress.org/recorp/)

[Dịch “Visitor Lens” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/visitor-lens)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/visitor-lens/), check out
[SVN repository](https://plugins.svn.wordpress.org/visitor-lens/), hoặc theo dõi
[nhật ký phát triển](https://plugins.trac.wordpress.org/log/visitor-lens/) qua [RSS](https://plugins.trac.wordpress.org/log/visitor-lens/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0.10

 * Improvement: refined the highlighted VisitorLens entry in the admin sidebar menu
   for a cleaner, more premium look.

#### 1.0.9

 * New: added an overview video to the plugin description.

#### 1.0.8

 * Maintenance: internal code cleanup and reliability improvements.

#### 1.0.6

 * Security: `/track` and `/record` public REST endpoints now reject cross-origin
   forgery attempts (Origin/Referer must match the site) and are rate-limited per
   IP, preventing anonymous flooding/pollution of visitor and session data. Tracker/
   recorder scripts retry once instead of dropping data if a request is ever rate-
   limited.
 * Fix: Annotated remaining dynamic-WHERE SQL queries in `class-rest-replay.php`
   with explicit prepared-fragment justification comments, consistent with the rest
   of the codebase (queries were already built from `wpdb->prepare()`d fragments—
   no functional change).
 * Update: Bundled Chart.js updated from v4.5.0 to v4.5.1.

#### 1.0.2

 * Fix: Text domain corrected to `visitor-lens` throughout all PHP files.
 * Fix: Added `Domain Path: /languages` to plugin header.
 * Fix: Sanitized `$_GET['vs_replay']` with `sanitize_text_field()` + `wp_unslash()`.
 * Fix: SVG icon output in admin nav now passes through `wp_kses()` for safe output.
 * Fix: Active nav link class attribute now properly escaped with `esc_attr()`.
 * New: Added `class-privacy.php` — GDPR privacy policy content registration, personal
   data exporter, and personal data eraser.
 * Improvement: `VSR_VERSION` constant now matches plugin header version.

#### 1.0.1

 * Fix: Deprecated `%f`/`%d` with null values in `wpdb::prepare()` — lat/lon and
   screen dimensions now default to `0` instead of `null`.
 * Fix: `daily_summary.visitors` now only increments for genuinely new unique visitors
   using `$wpdb->rows_affected`.
 * New: Session export (CSV/JSON) and bulk delete on the Replay page.
 * New: Storage usage card in Settings  Data Management.

#### 1.0.0

 * Initial release.
 * Visitor analytics dashboard with Chart.js line chart.
 * Session recording and replay.
 * GeoIP location detection (local database).
 * Statistics page: overview, pages, audience, traffic sources, real-time.
 * Settings: general, privacy/consent, data management.
 * REST API: `/vsr/v1/track`, `/vsr/v1/record`, `/vsr/v1/replay/*`, `/vsr/v1/stats/*`,`/
   vsr/v1/settings`.

## Meta

 *  Phiên bản **1.0.10**
 *  Cập nhật lần cuối **3 tuần trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 6.2 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.0.8**
 *  Phiên bản PHP ** 7.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/visitor-lens/)
 * Thẻ
 * [click tracking](https://vi.wordpress.org/plugins/tags/click-tracking/)[heatmap](https://vi.wordpress.org/plugins/tags/heatmap/)
   [session replay](https://vi.wordpress.org/plugins/tags/session-replay/)[user recording](https://vi.wordpress.org/plugins/tags/user-recording/)
   [Visitor analytics](https://vi.wordpress.org/plugins/tags/visitor-analytics/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/visitor-lens/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

[Your review](https://wordpress.org/support/plugin/visitor-lens/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/visitor-lens/reviews/)

## Những người đóng góp

 *   [ recorp ](https://profiles.wordpress.org/recorp/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/visitor-lens/)