Custom Variable Template for Google Tag Manager
Detection for Known Rendering Bot User Agents
More info can be found in the readme for the server-side template that does exactly the same as this template - only on the server instead of in a client-side GTM: https://github.com/mbaersch/simple-bot-detector