Manage Google Tag Manager easily with Layer Handler

Due to the fact that in one of the last projects I've been involved I had to manage many events with Google Tag Manager, in order to make this easy I started to develop a very tiny Javascript library which I called Layer Handler.


For now it's very simple, but I'm planning to extend the functionality to add more features. If you want to try it, just go to the Github repository, download the dist/layer-handler.min.js file, and simply add the .js file to your web. From here, you could start to use it adding this line to your Javascript:


You could check the behavior and the complete documentation here. Feel free to clone it, fork it and do whatever you want with this, and keep in mind that this is a work in progress library.

So try it and enjoy! :D