PHPackages                             mansi/analytics - 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. mansi/analytics

ActiveLibrary

mansi/analytics
===============

This package is used to track user's activity on our website.

v7(2y ago)02MITPHPPHP ^8.0

Since Oct 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/manshi-t/user_analytics)[ Packagist](https://packagist.org/packages/mansi/analytics)[ RSS](/packages/mansi-analytics/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

User Analytics
==============

[](#user-analytics)

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

[](#installation)

Run a command,

```
composer require mansi/analytics

```

To publish configurations,

```
php artisan vendor:publish --tag=analysis

```

To run testcases

```
php artisan test --testsuite=Feature

```

Usage
-----

[](#usage)

Track user's activity on your website Run below command.

Use seperate database for analysis

1. Difine new connection in Database.php config file

    ```
    Ex:
        'analysis_mysql' => [
            'driver' => 'mysql',
            'url' => env('DATABASE_URL'),
            'host' => env('PACKAGE_DB_HOST', '127.0.0.1'),
            'port' => env('PACKAGE_DB_PORT', '3306'),
            'database' => env('PACKAGE_DB_DATABASE', 'forge'),
            'username' => env('PACKAGE_DB_USERNAME', 'forge'),
            'password' => env('PACKAGE_DB_PASSWORD', ''),
            'unix_socket' => env('PACKAGE_DB_SOCKET', ''),
            'charset' => 'utf8mb4',
            'collation' => 'utf8mb4_unicode_ci',
            'prefix' => '',
            'prefix_indexes' => true,
            'strict' => true,
            'engine' => null,
            'options' => extension_loaded('pdo_mysql') ? array_filter([
                PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
            ]) : [],
        ],

    ```
2. Difine connection variables in .env file

    ```
    Ex:
        PACKAGE_DB_CONNECTION=analysis_mysql
        PACKAGE_DB_HOST=127.0.0.1
        PACKAGE_DB_PORT=3306
        PACKAGE_DB_DATABASE=analysis
        PACKAGE_DB_USERNAME=root
        PACKAGE_DB_PASSWORD=admin

    ```

Run Migration

```
php artisan migrate

```

Information
-----------

[](#information)

session table contain the data and type

namedatatypeidbigint unsigned Auto Incrementsession\_idvarchar(32)ip\_addressvarchar(20)device\_namevarchar(50)brandvarchar(50) NULLmodelvarchar(50) NULLosvarchar(20)browservarchar(20)countryvarchar(20) NULLstatevarchar(20) NULLcityvarchar(20) NULLvisited\_pages table contain the data and type

namedatatypeidbigint unsigned Auto Incrementpage\_urlvarchar(255)websitevarchar(50)statusenum('running','failed')time\_spentintpage\_activities table contain the data and type

namedatatypeidbigint unsigned Auto Incrementclicked\_elementvarchar(255)timestampvarchar(50)visited\_page\_idintsession\_idvarchar(32)actionvarchar(50)- whenever configuration will be published , analytics.js &amp; ignoreUrl.php (config) file will be published in public/js directory.Then analytics.js will be used as other js file is used.
- For using analytics.js file in all pages of website,include file in header layout file or other layout file which is used in all file.

    ```
        Ex:

                var base_path = "{{ url('/') }}/";

    ```
- If you want skip any pages (do not want to track) , then write that url in ignoreUrl.php (config) file.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~2 days

Total

7

Last Release

929d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2832de7b4fa0b3476425199a8e93dd230cd332793aee7c6fd5e0ce549f71f065?d=identicon)[mansi.t](/maintainers/mansi.t)

---

Top Contributors

[![manshi-t](https://avatars.githubusercontent.com/u/148344003?v=4)](https://github.com/manshi-t "manshi-t (9 commits)")

---

Tags

phplaravelanalysis

### Embed Badge

![Health badge](/badges/mansi-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/mansi-analytics/health.svg)](https://phpackages.com/packages/mansi-analytics)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235321.4k](/packages/laracraft-tech-laravel-xhprof)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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