<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kitbrennan90 / php-ga-measurement-protocol example snippets
use GaMeasurementProtocol\Client;
$trackingId = 'GA-123456-1'; // Take the tracking/property ID from your Google Analytics account
$client = new Client($trackingId);
$trackingId = 'GA-123456-1'; // Take the tracking/property ID from your Google Analytics account
$client = new Client($trackingId);
$params = [
'dl' => 'http://foo.com/home?a=b' // Document location,
$trackingId = 'GA-123456-1'; // Take the tracking/property ID from your Google Analytics account
$client = new Client($trackingId);
$params = [
'dl' => 'http://foo.com/home?a=b' // Document location,
$trackingId = 'GA-123456-1'; // Take the tracking/property ID from your Google Analytics account
$client = new Client($trackingId);
$params = [
'dl' => 'http://foo.com/home?a=b', // Document location,
$trackingId = 'GA-123456-1'; // Take the tracking/property ID from your Google Analytics account
$client = new Client($trackingId);
$params = [
'dl' => 'http://foo.com/home?a=b' // Document location,
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.