PHPackages                             cloudcommerce/admin-activity-tracker - 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. [Admin Panels](/categories/admin)
4. /
5. cloudcommerce/admin-activity-tracker

ActiveMagento2-module[Admin Panels](/categories/admin)

cloudcommerce/admin-activity-tracker
====================================

Magento 2 module for comprehensive admin user activity tracking and auditing

1.0.1(11mo ago)0191MITPHPPHP &gt;=8.0

Since Sep 8Pushed 11mo agoCompare

[ Source](https://github.com/ybrajendra/admin-activity-tracker)[ Packagist](https://packagist.org/packages/cloudcommerce/admin-activity-tracker)[ RSS](/packages/cloudcommerce-admin-activity-tracker/feed)WikiDiscussions main Synced 4w ago

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

CloudCommerce Admin Activity Tracker
====================================

[](#cloudcommerce-admin-activity-tracker)

A comprehensive Magento 2 module for tracking and auditing admin user activities in the backend panel.

Features
--------

[](#features)

- **Complete Activity Tracking**: Monitors admin login/logout, entity creation, updates, and deletions
- **Change Detection**: Compares current data with snapshots to identify specific changes
- **Configurable Exclusions**: Exclude specific sections from tracking (products, orders, customers, etc.)
- **Data Retention Management**: Automatic cleanup of old activity logs based on configurable retention period
- **Comprehensive Logging**: Custom logger with automatic log rotation and compression
- **Admin Grid Interface**: View and filter activity logs through dedicated admin grid
- **Security Focused**: Tracks IP addresses, user agents, and timestamps for security auditing

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

[](#installation)

### Method 1: Composer Installation (Recommended)

[](#method-1-composer-installation-recommended)

1. Install via Composer:

    ```
    composer require cloudcommerce/admin-activity-tracker
    ```
2. Enable the module:

    ```
    php bin/magento module:enable CloudCommerce_AdminActivityTracker
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento cache:flush
    ```

### Method 2: Manual Installation

[](#method-2-manual-installation)

1. Copy the module to your Magento installation:

    ```
    app/code/CloudCommerce/AdminActivityTracker/

    ```
2. Enable the module:

    ```
    php bin/magento module:enable CloudCommerce_AdminActivityTracker
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento cache:flush
    ```

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

[](#configuration)

Navigate to **Admin Panel &gt; Admin Activity Tracker &gt; Configuration**

### General Settings

[](#general-settings)

- **Enable Admin Activity Tracker**: Enable/disable the module
- **Exclude Sections from Tracking**: Select sections to exclude (products, categories, orders, CMS, customers, attributes)
- **Data Retention Period**: How long to keep activity data (1-36 months)
- **Cleanup Cron Schedule**: Cron expression for automatic cleanup (default: daily at 2 AM)

Usage
-----

[](#usage)

### Viewing Activity Logs

[](#viewing-activity-logs)

1. Go to **Admin Panel &gt; Admin Activity Tracker &gt; Activity Log**
2. Use filters to search by:
    - Admin user
    - Action type (login, logout, create, update, delete)
    - Entity type
    - Date range

### Tracked Activities

[](#tracked-activities)

- **Authentication**: Admin login/logout events
- **Entity Operations**: Create, update, delete operations on:
    - Products and categories
    - Orders and invoices
    - Customers and addresses
    - CMS pages and blocks
    - System configurations
    - And more...

Database Tables
---------------

[](#database-tables)

- `admin_activity_log`: Main activity log records
- `admin_activity_entity_snapshot`: Entity snapshots for change comparison

Permissions
-----------

[](#permissions)

Ensure admin users have the following ACL permissions:

- `CloudCommerce_AdminActivityTracker::admin`: Access to main module
- `CloudCommerce_AdminActivityTracker::activity_log`: View activity logs
- `CloudCommerce_AdminActivityTracker::config`: Modify module configuration

Technical Details
-----------------

[](#technical-details)

### Architecture

[](#architecture)

- **Repository Pattern**: `ActivityLogRepository` for data persistence
- **Observer Pattern**: Tracks model save/delete events
- **Plugin Pattern**: Intercepts specific operations (auth, config, etc.)
- **Snapshot System**: `SnapshotManager` for change detection
- **Custom Logger**: Dedicated logging with rotation

### Key Components

[](#key-components)

- **Observers**: `ModelSaveObserver`, `ModelDeleteObserver`, `InvoiceRegisterObserver`
- **Plugins**: `AdminAuthPlugin`, `ConfigPlugin`, `DesignConfigPlugin`, etc.
- **Models**: `ActivityLog`, `ActivityLogRepository`, `SnapshotManager`
- **Helpers**: `Config` for centralized configuration access

Troubleshooting
---------------

[](#troubleshooting)

### Common Issues

[](#common-issues)

1. **Permission Errors**: Ensure proper ACL permissions are assigned
2. **Database Errors**: Check database table creation and permissions
3. **Performance**: Use exclusions to reduce tracking overhead
4. **Log Size**: Configure appropriate retention periods

### Debugging

[](#debugging)

- Check logs in `var/log/admin_activity.log`
- Enable Magento developer mode for detailed error messages
- Use module's custom logger for debugging specific issues

Requirements
------------

[](#requirements)

- Magento 2.4.x
- PHP 8.0+

SEO Keywords
------------

[](#seo-keywords)

magento 2 admin activity tracker, magento admin audit log, magento user activity monitoring, magento backend tracking, magento admin security, magento activity logger, magento admin audit trail, magento user behavior tracking, magento admin session tracking, magento security module, magento admin monitoring extension, magento activity log extension, magento admin user tracking, magento backend audit, magento admin activity monitoring, magento security audit, magento admin login tracking, magento user activity log, magento admin change tracking, magento security logging

License
-------

[](#license)

Proprietary - CloudCommerce

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance52

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

2

Last Release

331d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23187081?v=4)[Brajendra](/maintainers/ybrajendra)[@ybrajendra](https://github.com/ybrajendra)

---

Top Contributors

[![ybrajendra](https://avatars.githubusercontent.com/u/23187081?v=4)](https://github.com/ybrajendra "ybrajendra (5 commits)")

### Embed Badge

![Health badge](/badges/cloudcommerce-admin-activity-tracker/health.svg)

```
[![Health](https://phpackages.com/badges/cloudcommerce-admin-activity-tracker/health.svg)](https://phpackages.com/packages/cloudcommerce-admin-activity-tracker)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.5M1](/packages/fastly-magento2)[hyva-themes/module-magento2-admin

This module aims to make creating grids and forms in the Magento 2 adminhtml area for developers joyful and fast

178395.6k15](/packages/hyva-themes-module-magento2-admin)[magepal/magento2-guest-to-customer

Quickly and easily convert existing guest checkout customers to registered customers.

71181.9k](/packages/magepal-magento2-guest-to-customer)[markshust/magento2-module-ordergrid

The Order Grid module adds more details to the order grid in the admin.

9292.3k](/packages/markshust-magento2-module-ordergrid)[checkoutcom/magento2

Checkout.com Payment Gateway for Magento 2

34280.5k3](/packages/checkoutcom-magento2)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1861.2k](/packages/myparcelnl-magento)

PHPackages © 2026

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