We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f37405e commit 9dc23d0Copy full SHA for 9dc23d0
classes/WpMatomo/AIBotTracking.php
@@ -108,7 +108,7 @@ public function do_ai_bot_tracking( $url = null ) {
108
$response_code = http_response_code();
109
$request_elapsed_ms = null;
110
111
- if ( empty( $GLOBALS['MATOMO_IN_AI_ESI'] ) ) {
+ if ( empty( $GLOBALS['MATOMO_IN_AI_ESI'] ) && function_exists( 'timer_float' ) ) {
112
$request_elapsed_ms = (int) ( \timer_float() * 1000 );
113
}
114
0 commit comments