Count your own monitor or in-house crawler as a bot in Outlinks click counts
Outlinks counts a click as a bot, shown as a filtered click rather than a person, when the visitor’s user agent contains any of a bundled list of patterns: search crawlers, chat and social link previews, monitoring services, command-line tools and HTTP libraries. Add your own uptime monitor or in-house crawler through benecaster_outlinks_bot_ua_list so its visits stop counting as people. A bot click is still redirected normally, and the user agent itself is never stored.
The filter runs on every click of a link whose show has Outlinks switched on. A show where Outlinks is off, or a lapsed site, records no clicks.
Code
<?php
add_filter( 'benecaster_outlinks_bot_ua_list', function ( array $ua_patterns ): array {
$ua_patterns[] = 'acme-uptime'; // Append: the array you return REPLACES the list.
return $ua_patterns;
} );
Hooks Used
Need this built rather than just documented? See our services →