Articles on: Getting Started & Setup

How "Send Info" Mode Works

While "Hide GTM" mode is the simplest and easiest mode to implement it doesn't meet the needs of all users.

In "Send Info" mode, when a visitor hits your website, Bot Badger assesses if the visitor is a bot. Bot Badger will always fire Google Tag Manager (GTM), but will pass a dataLayer variable into Google Tag Manager indicating whether the visitor is (or is not) a bot.

You can easily pick up that dataLayer variable on the Google Tag Manager side and choose to only trigger tags for humans (or bots), or pass whether the visitor is a bot into other systems, including Google Analytics. If you choose to pass that info into Google Analytics, you'll want to create a custom dimension for it.

The name of the dataLayer variable is is_bot and the code Bot Badger generates to set it looks something like this:
dataLayer = dataLayer || [];
dataLayer.push({
  is_bot: false // indicates this is not a bot
});


To read the value inside Google Tag Manager, you'll need to create a user-defined variable like this:
custom dataLayer Variable inside GTM for is_bot value set by Bot Badger

If you wanted to create a custom trigger that worked just like "All Pages", but only for humans, that would look like this:
Replacement for "All Pages" Trigger in Google Tag Manager that doesn't fire for bots

"Send Info" mode is perfect for advanced users who have more complex needs, but here's why you might need to select another mode.

You might need "Hide GTM" mode if:


You want to get Bot Badger set up quickly and without risk of errors
You don't understand a bunch of what's written above and need a little time to up your skills
Learn more about "Send Info" mode here.

You might need "Load Alternate" mode if:


A service you use is trying to check for the installation of a tag and can't see it
You'd like to load an alternate Google Analytics account for bots
You'd like to use tags in tag manager to put additional restrictions on forms for suspected bots to reduce form spam
Learn more about "Load Alternate" mode here

Updated on: 22/01/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!