I just migrated some of my code over to snippet injection to help prevent my local builds a hugo site sending bad data through Google Anayltics. I did this as one would expect, by adding my Google tag manager code to the appropriate snippet injection.
I am, however, still seeing the tags being fired on my staging branch subdomain.
Is there a way via the toml file to disable this? Or can I edit the toml file on the production branch to only add this code on the productions branch?
Appreciate you taking the time to write in. Unfortunately, it’s not something that I can recall being able to do. However, you may wish to chime in on this feature request!