GTM Code Visibility Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
Allows admins to add Google Tag Manager code to your site and use it only when site is switched to “Search Engine Visibility”.
Use Settings->Reading: check/uncheck “Search Engine Visibility” and add code to “GTM code fields”.