PHP code example of hamaka / silverstripe-matomo-ai-tracking
1. Go to this page and download the library: Download hamaka/silverstripe-matomo-ai-tracking 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/ */
hamaka / silverstripe-matomo-ai-tracking example snippets
use Hamaka\MatomoAiTracking\AiBotDetector;
use SilverStripe\Core\Config\Config;
Config::modify()->set(AiBotDetector::class, 'user_agent_patterns', ['ChatGPT-User', 'Claude-User']);