Over the past few weeks, I’ve been coding like crazy. The three biggest results of this madness were the new blog design (which finally switched away from WordPress and re-plunged back into the world’s static sites with Hugo), a new Google Sheets add-on for managing Google Tag Manager containers and assets, and Slack’s integration into GTM tools . In this article, I’ll quickly introduce the last two, as I’m writing a separate article on site redesign.
Simmer . Newsletter
Subscribe to the Simmer newsletter to get the latest news and content from Simo Ahava right in your inbox!
GTM Tools is a free suite of web tools for managing Google Tag Manager containers, tags, triggers, and variables. There are a bunch of things you can do with the toolkit, and I urge you to follow the link at the beginning of this paragraph to learn more, or simply go to https://www.gtmtools.com/ to get started with the tool.
Anyway, the recent addition inspired by Jeffrey Gomez’s idea of #measure Slack has been Slack’s integration with your GTM container. What this means in practice is that once the integration is enabled, the bot is called GTME Tools It will enter the channel of your choice. Every 15 minutes, it will check if there is a new version published for the container in which you performed the integration, and if one is found, it will inform the channel.
To enable the integration, you need to browse to a container page in GTM Tools, then click File Click here to enable integration Link. A modal dialog opens, instructing you to add the email address of the GTM Tools service account as a file is reading user to the respective GTM container. You are Should Do this for the integration to work – GTM tools must be allowed to query the published version if you want to be notified when a published version is created.
Once you have added the user, you will need to click Activate now Add to Slack button, which will take you to Slack’s private portal. There you will need to select the workspace and channel in which the file will be played GTME Tools The bot will be added.
And then you’re good to go! You can test the integrity by deploying the container, then waiting for the next 15 minute period to pass. The bot checks the container every 15 minutes on the clock, so: 00, :15, :30, :45 and so on.
At some point, I hope to develop the bot further, perhaps adding conversational capabilities to it.
Add new Google Sheets
One of the things I’ve been using the Google Tag Manager API for since its introduction is documentation. Until recently, I was using a simple command line Python script to output a CSV file of all relevant fields.
However, GTM has a great integration with Apps Script, which means you can access the Google Tag Manager API using the Google Sheets Script Editor, for example. And what better way to create and manage documents than spreadsheets? Well, honestly, I’m sure there are many better ways to do this, but Google Sheets has proven to be a good fit for most of my documentation needs.
Anyway, I have written and published a Google Sheets add-on which allows you to automatically create documents from any container you have access to. In addition to creating documents, you can also Comprehensive update Notes field in all tags, triggers and variables. So far, there are no excuses left for not thoroughly documenting what each tag, operator, and variable does.
You can read all about the add-on from its dedicated tools page in this blog.
I would really like to get feedback on all my tools, so please leave me a comment in this article or on the related tools page.