PHP code example of automattic / jetpack-a8c-mc-stats
1. Go to this page and download the library: Download automattic/jetpack-a8c-mc-stats 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/ */
automattic / jetpack-a8c-mc-stats example snippets
$stats = new Automattic\Jetpack\A8c_Mc_Stats();
$stats->add( 'group', 'name' );
$stats->do_stats();
// or
$stats->do_server_side_stats();
$stats = new Automattic\Jetpack\A8c_Mc_Stats( false );
$stats->use_transparent_pixel = false;