Download the PHP package benemohamed/analytics without Composer
On this page you can find all versions of the php package benemohamed/analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download benemohamed/analytics
More information about benemohamed/analytics
Files in benemohamed/analytics
Download benemohamed/analytics
More information about benemohamed/analytics
Files in benemohamed/analytics
Vendor benemohamed
Package analytics
Short Description Google Analytics library for PHP
License Apache-2.0
Homepage https://github.com/benemohamed
Package analytics
Short Description Google Analytics library for PHP
License Apache-2.0
Homepage https://github.com/benemohamed
Please rate this library. Is it a good library?
Informations about the package analytics
Google Analytics library PHP
Google Analytics library for:
- Analyze your API
- Analyze your image and other file type
- Analyze all server
- Analyze the user how block
127.0.0.1 google-analytics.com 127.0.0.1 www.google-analytics.com
Getting Started
Requirements
- PHP >= 7.1
- JSON PHP Extension
- CURL PHP Extension
- GMP PHP Extension
Installation
Installing Google Analytics library using Composer:
How to Use
usage is quite simple:
with default we set User agent,user IP,Geographical Override,hostname,path,title
include this file
work with available methods
Work with only method
lists all of the parameters for the Measurement Protocol.
Note check Required parameters
Work with php.ini
file_name now in all file
Work with javascript
check if google-analytics.com is load in the client side if not make your action in server side
Error handling
List methods
Name | Description |
---|---|
set_hit | Set Hit Type |
set_ds | Set Data source e.x(web ) |
set_ip | Set IP address e.x(1.1.1.1 ) |
set_uagt | Set User Agent e.x(Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/75.0.3770.90 Chrome/75.0.3770.90 Safari/537.3 ) |
set_location | Set Geographical e.x(DZ ,MA ,TN ) |
set_host | Set hostname e.x(google.com ) |
set_path | Set path start with / |
set_title | Set title e.x(google.com ) |
set_event_tra | Set Event tracking |
set_event_act | Set Event Action |
set_event_lab | Set Event Label |
set_parms | Set your Parameters |
Supported Hits
- pageview
- event
- screenview
- transaction
- item
- social
- exception
- timing
use method parms(array())
method to pass Required Parameter to other hits
Running the tests
other
- See the IPFidner documentation.
- See the guzzlephp documentation
License
All versions of analytics with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
ext-gmp Version *
ext-json Version *
ext-curl Version *
guzzlehttp/guzzle Version ^6.3
ipfinder/ipfinder Version ^1.0
ext-gmp Version *
ext-json Version *
ext-curl Version *
guzzlehttp/guzzle Version ^6.3
ipfinder/ipfinder Version ^1.0
The package benemohamed/analytics contains the following files
Loading the files please wait ....