PHP code example of lvengine / analytics

1. Go to this page and download the library: Download lvengine/analytics library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lvengine / analytics example snippets




use \Analytics\Ga;
use \Analytics\Audience;
use \Analytics\Conversion;
use \Analytics\Behavior;

$behavior_report = new Behavior();
$behavior_report->setViewId("XXXXXXXX");
$behavior_report->setDate("2017-08-01", "2017-08-07");

$output = $behavior_report->internalSearches();