Hacker News new | ask | show | jobs
by enomar 3920 days ago
If you want to integrate GTM with your internal source control system, they have a programmatic API that you can tie into your build process:

https://developers.google.com/tag-manager/api/v1/

And if you want to lock down what kinds tags can run on your site, they have a nice whitelisting/blacklisting system that lets you block capabilities (e.g. customScripts to block arbitrary JS):

https://developers.google.com/tag-manager/devguide?hl=en#res...

1 comments

Thanks for those links. Am I missing something in them or would using managing GTM programmatically via their API kind of defeat the entire purpose of giving business users like myself the ability to add/manage tags?

Seems like a case where there's no good way to have our cake and eat it too in terms of usability for business users and testing/security for our engineers.