Skip to content

Recent Logins

Menu Location: Customers > Reports > Recent Logins

Access Level: Staff accounts only, with an access level of admin, cust_service, warehouse, driver, courier, stats, routing, accounting, recipes, inventory_ad, adminorders, warehouseapp, or barcodescano.

Last Updated: 2026-07-26


Overview

The Recent Logins page is a live activity panel, not a historical login report. It shows customers who have had any tracked activity on your site in the last 48 hours (browsing pages, logging in, logging out, and other tracked events), one row per customer, refreshing automatically every 30 seconds. Each row shows that customer's single most recent tracked event.

Primary Functions:

  • See which customers are on your site right now
  • See each customer's most recent tracked activity and when it happened
  • Jump straight to a customer's account from the list

Page Layout

Header Section

A banner explains the refresh behavior: "This data updates automatically every 30 seconds and displays all logins from the past 48 hours. Customers are considered offline if they are idle for 60 seconds or if they have logged out."

There are no filters, search box, or export button on this page.

Main Content Area

Table displaying one row per customer with columns:

  • Online - A green dot if the customer's most recent event happened in the last 60 seconds and wasn't a logout; otherwise a hollow gray dot (offline/idle)
  • Customer - Customer's name, linked to their customer detail page (customer_info.php)
  • Last seen - Date of the customer's most recent tracked event
  • (unlabeled time column) - Time of day of that event
  • (unlabeled event column) - The raw text of the event itself (for example "Browsing Shop", "Viewing [page]", "Logged in", "Logged out")

If no customer has had activity in the last 2 days, the table shows "No results found from the last 2 day(s)" instead.


How Online/Offline Status Works

A customer shows as online (green dot) only when their most recent tracked event happened within the last 60 seconds and that event was not a logout. Anything older than 60 seconds, or a logout event, shows as offline (gray dot) even though the row still appears for up to 48 hours after the event.

Because the row reflects whatever a customer did most recently (not specifically a login), a customer near the top of the list may be showing a page view, not an actual login.


Common Use Cases

Use Case 1: Confirm a Customer Is Currently on the Site

Goal: Check whether a specific customer is actively browsing right now (for example, while reviewing a support ticket from them)

Steps:

  1. Open Recent Logins
  2. Find the customer's name in the list
  3. Check the Online column - a green dot means they were active in the last 60 seconds

Use Case 2: See a Customer's Most Recent Activity

Goal: See what a customer was last doing on the site

Steps:

  1. Open Recent Logins
  2. Find the customer's name in the list
  3. Read the event text and the Last seen date/time next to their name

Troubleshooting

Customer Doesn't Appear in the List

Symptoms: A customer you expect to see isn't showing up

Check:

  1. The list only includes customers with at least one tracked event in the last 48 hours - if they haven't visited or logged in during that window, they won't appear
  2. The page auto-refreshes every 30 seconds - wait for the next refresh
  3. Confirm you're looking at the right customer (search by name on the Customers page if unsure)

Customer Shows Offline but Says They're on the Site Right Now

Symptoms: Gray dot next to a customer who reports they're actively browsing

Explanation: The green "online" dot only lights up if their last tracked event was within the last 60 seconds. Between page loads there can be small gaps, so a customer can flicker between online and offline even while actively using the site.


  • Customers (customers.php) - Main customer management
  • Customer Detail (customer_info.php) - Individual customer account, linked from each row
  • Customer Activity Log (customer-log.php) - Full historical activity log for a single customer, beyond the 48-hour window shown here

Quick Reference Card

Task Action/Location
See who's active on the site right now Open Recent Logins, check the Online column
See a customer's last tracked activity Find their row, read the event and Last seen time
View a customer's full activity history Click their name to open the account, or see Customer Activity Log

FAQs

Does this show login history, or something broader?

Broader. Each row is a customer's single most recent tracked event in the last 48 hours, which could be a login, a logout, or simply viewing a page. It is not a dedicated login log.

Can I filter by date range, export the list, or search it?

No. The page has no filters, search box, or export option. It always shows the same rolling 48-hour window, refreshed automatically.

Why did a customer's dot go from green to gray while I was watching?

The green "online" dot requires their most recent event to be within the last 60 seconds. Once a minute passes without a new tracked event (or if their last event was a logout), the dot turns gray, even though the row stays visible for up to 48 hours.

Where do I see a customer's full login/activity history, not just the last 48 hours?

Use Customer Activity Log (customer-log.php) for a given customer's complete history.


Change Log

2026-07-26

  • Rewrote documentation to match the actual page: a live 48-hour activity/presence panel, not a historical login analytics report
  • Removed invented filters, export, search, login-count metrics, engagement-tier categories, and campaign workflows not present in the code
  • Corrected the access-level description to the real staff role check

2026-03-01

  • Initial documentation created

End of Documentation