Google Tag Manager loader for web apps
bower install googletagmanager
npm install googletagmanager
or
package.json
"dependencies": {
"googletagmanager": ""
}
<script src="googletagmanager.js"></script>
// Using CommonJS
var googletagmanager = require('googletagmanager');
// or AMD
define(['googletagmanager'], function (googletagmanager) {
// ...
})
// Invoking the GTM script loader
googletagmanager('GTM-ABC123');