/Documentation

Bot Detection power-up

Updated Jul 30, 2026

How to set up Bot Detection

Select your sGTM container from the dashboard
Bot Detection panel.
Toggle the Bot Detection switch
Click Save changes
Enter the name X-Device-Bot
Add this variable as an additional condition to your GA4 trigger

How to prevent webhooks from being blocked

  1. 1.
  2. 2.
Add path
Add a specific path
Wordpress example

Testing

Add request headers option: 

Incoming HTTP Request
If X-Device-Bot headers are present in the Request Headers section, the power-up is working correctly.

Block requests from bots option

Block requests from bots option

Use case

Was this article helpful?

Comments

Can’t find what you are looking for?