PHP code example of da41b94c / traffic-source-capture
1. Go to this page and download the library: Download da41b94c/traffic-source-capture 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/ */
da41b94c / traffic-source-capture example snippets
use Da41b94c\TrafficSource\TrafficSourceCapture;
TrafficSourceCapture::Capture();
$TrafficText = TrafficSourceCapture::GetHuman(); // строка для уведомлений/CRM
$TrafficData = TrafficSourceCapture::GetLeadData(); // массив для БД/CRM
// useCookieBackup=true, ttlSeconds=0 (по умолчанию)
TrafficSourceCapture::Capture(null, null, true, 0);
// Пример: разрешить перезапись first-touch через 30 дней
TrafficSourceCapture::Capture(null, null, true, 2592000);