Highlighted

Does Tealium have user-agent based rules/firing events to prevent BOT execution?

Rookie Contributor

How do you prevent GoogleBots (and other bots) from executing an event and therefore sharing information? Do you have user-agent filtering/blocking?

1 REPLY 1
Highlighted

Does Tealium have user-agent based rules/firing events to prevent BOT execution?

Employee Emeritus

@erik_skurka

No, however, if you add the following as a JavaScript Extension scoped to Pre Loader, it will stop Tealium from loading for the bots listed in the Regular Expression.

 

utag_cfg_ovrd = window.utag_cfg_ovrd || {};
utag_cfg_ovrd.user_agent_regex = new RegExp('bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex', 'i');
if(utag_cfg_ovrd.user_agent_regex.test(navigator.userAgent)){
	utag_cfg_ovrd.noload = true;
}

 

 

I pulled the list of bots in the regex from this article: 
http://stackoverflow.com/questions/20084513/detect-search-crawlers-via-javascript