Skip to content

Customer Activity Tracking

The Advanced Reporting addon automatically tracks what your customers do when they visit your galleries. Every gallery view, favorite, cart addition, and search is recorded so you can understand how clients interact with your photos.

What Gets Tracked

The following customer actions are recorded automatically:

  • Gallery views — when a customer opens a gallery
  • Image views — when a customer views an individual image (including in the lightbox)
  • Favorites — when a customer adds or removes a favorite
  • Comments — when a customer leaves a comment on an image
  • Add to cart — when a customer adds an item to their cart
  • Cart updates — when a customer modifies their cart
  • Shares — when a customer shares an image
  • Searches — what a customer searches for within a gallery, including the search term and number of results
  • Free downloads — when a customer downloads a free image or gallery
  • Orders — when a customer completes an order
  • Logins — when a customer logs in

How It Works

Tracking starts as soon as the addon is activated. There's nothing to configure — it runs in the background whenever a customer interacts with your galleries.

A few details worth knowing:

  • Admin users are not tracked. If you're logged in as an administrator, your activity won't appear in the reports. This keeps your data clean.
  • Gallery and image views are counted once per visit. If a customer views the same gallery or image several times in one visit, it's only recorded once. A visit ends after 30 minutes. Views are counted by the visitor's browser after the page loads, so views of cached pages count too, and counting a guest doesn't stop your galleries from being cached.
  • You can limit how many view records are kept. Views make up most of the activity log and can take up a lot of database space on busy sites. See Limiting Stored View Records below.
  • Cookie banners are followed. If your cookie banner works with the WP Consent API (like Complianz), activity is only tracked once a visitor allows statistics, and not at all if they decline.
  • Guest activity is linked when they log in. If a customer browses as a guest and then logs in or creates an account, their earlier activity is connected to their customer profile.

Limiting Stored View Records

You can limit view records by how many there are, how old they are, or both.

  1. Go to Sunshine > Settings > Privacy & Data
  2. Under Customer Activity, enter a number in Maximum view records to keep, a time in Keep view records for (like 6 months), or both
  3. Save your settings

The setting shows how many view records you have now. Once a day, Sunshine removes views over your limits. For the number limit, guest views go first, then views by customers who have never ordered. These are always kept:

  • Views by customers who have placed an order
  • Views from a visit that ended in an order, guests included, so you can look back at the path to each sale. On a log with more than a million records, this starts once the cleanup brings it under a million
  • Views from the last 30 days, since that visit could still end in an order
  • All other customer activity, like favorites, cart additions and searches
  • The view totals shown on your galleries

Leave both fields blank to keep every view. New installs start with a limit of 250,000. Sites that already had Advanced Reporting keep everything until you set a limit.

Reports that count views say when older views were removed by your limits, so lower numbers before that date make sense.

Removing a large backlog at once

The daily cleanup works through a batch at a time. If your site has built up millions of view records, you can remove everything over your limits in one sitting:

  1. Set your limits as described above and save
  2. Go to Sunshine > Tools and open Clean Up Customer Activity
  3. Click Clean up customer activity and leave the page open until it says the cleanup is complete

Make a backup first, since removed records can't be brought back. Your database keeps the space from removed records until the table is optimized, so ask your host to optimize the sunshine_actions table to get that disk space back.

Seeing What Happened Before an Order

Each order has a Journey tab that shows what the customer did before ordering, oldest first: the galleries and photos they viewed, their favorites, what they added to the cart and more. It works for guests too. Orders placed before you updated to Advanced Reporting 3.5, and orders from visitors who declined tracking, have no journey.

Viewing the Customer Timeline

To see a specific customer's activity history:

  1. Go to Sunshine > Customers in your WordPress admin
  2. Click on a customer's name to open their profile
  3. Look for the Timeline section

The timeline shows the customer's 100 most recent actions, grouped by date. Each entry includes the action type, the gallery or image involved, and the time it happened. Click Load more at the bottom to see older activity.

Notes

  • Tracking data is stored in your WordPress database and does not send any information to external services.
  • The timeline only includes activity that occurred after the addon was activated. It won't retroactively track past visits.

Still need help?

If you have not yet found your answer in the documentation articles, please contact support

Sunshine Photo Cart for WordPress