Download the PHP package mansi/analytics without Composer
On this page you can find all versions of the php package mansi/analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package analytics
User Analytics
Installation
Run a command,
To publish configurations,
To run testcases
Usage
Track user's activity on your website Run below command.
Use seperate database for analysis
-
Difine new connection in Database.php config file
- Difine connection variables in .env file
Run Migration
Information
session table contain the data and type
| name | datatype |
|---|---|
| id | bigint unsigned Auto Increment |
| session_id | varchar(32) |
| ip_address | varchar(20) |
| device_name | varchar(50) |
| brand | varchar(50) NULL |
| model | varchar(50) NULL |
| os | varchar(20) |
| browser | varchar(20) |
| country | varchar(20) NULL |
| state | varchar(20) NULL |
| city | varchar(20) NULL |
visited_pages table contain the data and type
| name | datatype |
|---|---|
| id | bigint unsigned Auto Increment |
| page_url | varchar(255) |
| website | varchar(50) |
| status | enum('running','failed') |
| time_spent | int |
page_activities table contain the data and type
| name | datatype | |
|---|---|---|
| id | bigint unsigned Auto Increment | |
| clicked_element | varchar(255) | |
| timestamp | varchar(50) | |
| visited_page_id | int | |
| session_id | varchar(32) | |
| action | varchar(50) | Ex:- 'buy now','opened','closed','favorite','unfavorite','other' |
-
whenever configuration will be published , analytics.js & 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.
- If you want skip any pages (do not want to track) , then write that url in ignoreUrl.php (config) file.
All versions of analytics with dependencies
laravel/framework Version ^10.0
matomo/device-detector Version ^6.1
guzzlehttp/guzzle Version ^7.7
geoip2/geoip2 Version ^2.12