PHPackages                             robole/last-visited-pages - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. robole/last-visited-pages

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

robole/last-visited-pages
=========================

1.1.0(6mo ago)6198MITPHP

Since Jan 9Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/robole-dev/LastVisitedPages)[ Packagist](https://packagist.org/packages/robole/last-visited-pages)[ RSS](/packages/robole-last-visited-pages/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (3)Used By (0)

 [![](icon.svg)](icon.svg)Last Visited Pages
==================

[](#last-visited-pages)

> Statamic addon that stores the most recently visited pages of a visitor.

[![GitHub release](https://camo.githubusercontent.com/4c1120f5f1e9b4f929ef7d4bb75a9ce63237daa6af7660b4ad23bc00cd14e074/68747470733a2f2f666c61742e62616467656e2e6e65742f6769746875622f72656c656173652f726f626f6c652d6465762f4c617374566973697465645061676573)](https://camo.githubusercontent.com/4c1120f5f1e9b4f929ef7d4bb75a9ce63237daa6af7660b4ad23bc00cd14e074/68747470733a2f2f666c61742e62616467656e2e6e65742f6769746875622f72656c656173652f726f626f6c652d6465762f4c617374566973697465645061676573)[![Supports Statamic 5 or later](https://camo.githubusercontent.com/db48703b3bcb2bf847b494af0ea6958907b45ca3df20948f737f7fac9113b79c/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f53746174616d69632f352e302b2f4646323639453f69636f6e3d706870)](https://camo.githubusercontent.com/db48703b3bcb2bf847b494af0ea6958907b45ca3df20948f737f7fac9113b79c/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f53746174616d69632f352e302b2f4646323639453f69636f6e3d706870)

Features
--------

[](#features)

- Save the most recently visited pages of visitors in their session
- Customizable limits for the number of saved pages
- Multisite compatibility to save and filter pages by site or across sites
- Flexible inclusion and exclusion of collections
- Provides the `{{ last_visited_pages }}` tag to display the saved pages in templates

Note: This addon will skip non-entry-like page types (e.g. `LocalizedTerm`).

Installation
------------

[](#installation)

Install this addon via Composer:

```
composer require robole/last-visited-pages
```

Configuration
-------------

[](#configuration)

The addon includes several configuration options that allow you to tailor its behavior. To publish the configuration file, run:

```
php artisan vendor:publish --tag=last-visited-pages-config
```

### Available Configuration Options

[](#available-configuration-options)

The published configuration file allows you to adjust the following settings:

**Maximum Saved Pages**

- Key: **max\_saved\_pages**
- Default: 5
- Description: Defines how many of the most recently visited pages will be saved in the session. If site\_sensitive is enabled, this number is applied per site.

**Site Sensitivity**

- Key: **site\_sensitive**
- Default: true
- Description: (Only relevant for multi-site mode) If enabled, only pages from the same site as the current one will be saved and displayed by the {{ last\_visited\_pages }} tag.

**Collections**

- Keys: **include\_collections**, **exclude\_collections**
- Default: ```
    'include_collections' => ['*'],
    'exclude_collections' => [],
    ```
- Description: Use `include_collections` to specify which collections should be tracked. Set to `['*']` to include all collections. Use `exclude_collections` to define collections that should be ignored from tracking.
- Example: ```
    'include_collections' => ['blog', 'products'],
    'exclude_collections' => ['drafts'],
    ```

**Templates**

- Key: **exclude\_templates**
- Default: ```
    'exclude_templates' => [],
    ```
- Description: Use `exclude_templates` to define templates that should be ignored from tracking.
- Example: ```
    'exclude_templates' => ['service', 'article'],
    ```

Templating
----------

[](#templating)

To display the last visited pages of the current fronted user, you can use the `{{ last_visited_pages }}` tag anywhere in your template:

```
{{ nocache }}
    {{ if {last_visited_pages:count} > 0 }}
        {{ last_visited_pages }}

                {{ title }}

        {{ /last_visited_pages }}
    {{ /if }}
{{ /nocache }}
```

Support
-------

[](#support)

If you encounter any issues or have questions, please open an issue in the [GitHub repository](https://github.com/robole-dev/LastVisitedPages).

License
-------

[](#license)

This addon is open-source and available under the MIT license.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance67

Regular maintenance activity

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~292 days

Total

2

Last Release

194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cbcbb2f84ada4496a48f0531d9dec069f7dcb239e88d06629824cf50a941632f?d=identicon)[kappaj](/maintainers/kappaj)

---

Top Contributors

[![FlxRobole](https://avatars.githubusercontent.com/u/142887197?v=4)](https://github.com/FlxRobole "FlxRobole (6 commits)")[![martinwilmer](https://avatars.githubusercontent.com/u/3020641?v=4)](https://github.com/martinwilmer "martinwilmer (3 commits)")

### Embed Badge

![Health badge](/badges/robole-last-visited-pages/health.svg)

```
[![Health](https://phpackages.com/badges/robole-last-visited-pages/health.svg)](https://phpackages.com/packages/robole-last-visited-pages)
```

###  Alternatives

[statamic/ssg

Generate static sites with Statamic.

254302.4k](/packages/statamic-ssg)[statamic/seo-pro

65440.7k](/packages/statamic-seo-pro)[jacksleight/statamic-bard-texstyle

17172.5k](/packages/jacksleight-statamic-bard-texstyle)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

13128.3k](/packages/withcandour-aardvark-seo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
