PHP code example of tirreno / tirreno-php-tracker
1. Go to this page and download the library: Download tirreno/tirreno-php-tracker 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/ */
tirreno / tirreno-php-tracker example snippets
// Load object
"https://example.tld";
$trackingId = "XXX";
// Create object
$tracker = new TirrenoTracker($tirrenoUrl, $trackingId);
// Override defaults of setLastName($currentUser->lastname) // Doe
->setEmailAddress($currentUser->email); // [email protected]
// Track event
$tracker->sendEvent();
composer